Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001381, allocations: 110.6 kB / 16.62 MB, free: 6.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1993/0.1993, allocations: 38.04 MB / 329.4 MB, free: 9.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 61.78 kB / 398.4 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.0884, allocations: 58.06 MB / 456.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009035/0.09746, allocations: 9.23 MB / 465.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004609/0.1021, allocations: 2.82 MB / 468.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006843/0.1028, allocations: 59.62 kB / 468.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002031/0.1049, allocations: 0.8154 MB / 469.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.106, allocations: 473.9 kB / 469.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.1071, allocations: 407.3 kB / 470.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.1087, allocations: 1.27 MB / 471.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001056/0.1098, allocations: 0.7246 MB / 472.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008636/0.1107, allocations: 0.5524 MB / 472.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.1118, allocations: 0.7124 MB / 473.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002269/0.1121, allocations: 72 kB / 473.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006347/0.1127, allocations: 215.7 kB / 473.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005801/0.1133, allocations: 494.8 kB / 474.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006805/0.114, allocations: 0.5364 MB / 474.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.1152, allocations: 1.223 MB / 476 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1152, allocations: 0 / 476 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1152, allocations: 0 / 476 MB, free: 4.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.801e-05/0.1153, allocations: 0 / 476 MB, free: 4.699 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002321/0.1176, allocations: 1.302 MB / 477.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1176, allocations: 11.89 kB / 477.3 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001783/0.1178, allocations: 139.7 kB / 477.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008833/0.1187, allocations: 171.4 kB / 477.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.1198, allocations: 0.6882 MB / 478.3 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.44e-05/0.1199, allocations: 62.38 kB / 478.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.12, allocations: 87.84 kB / 478.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1217, allocations: 1.175 MB / 479.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.55e-05/0.1217, allocations: 11.88 kB / 479.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.813e-05/0.1218, allocations: 35.98 kB / 479.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.544e-05/0.1219, allocations: 53.98 kB / 479.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.1234, allocations: 0.9327 MB / 480.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005547/0.1289, allocations: 4.799 MB / 485.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.13, allocations: 0.664 MB / 486.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004906/0.1305, allocations: 379.8 kB / 486.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.876e-05/0.1306, allocations: 20.55 kB / 486.5 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005589/0.1312, allocations: 439.7 kB / 487 MB, free: 9.297 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.675e-06/0.1312, allocations: 0 / 487 MB, free: 9.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005024/0.1362, allocations: 2.436 MB / 489.4 MB, free: 6.793 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.908e-05/0.1363, allocations: 166.8 kB / 489.6 MB, free: 6.594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.1369, allocations: 0.5939 MB / 490.2 MB, free: 5.988 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.137, allocations: 41.7 kB / 490.2 MB, free: 5.941 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003123/0.1373, allocations: 486.5 kB / 490.7 MB, free: 5.457 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.1375, allocations: 224.9 kB / 490.9 MB, free: 5.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.1377, allocations: 162.4 kB / 491 MB, free: 5.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.1379, allocations: 386.8 kB / 491.4 MB, free: 4.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004193/0.1383, allocations: 281.8 kB / 491.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005766/0.1389, allocations: 0.5563 MB / 492.3 MB, free: 3.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.14, allocations: 0.9611 MB / 493.2 MB, free: 2.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.14, allocations: 4 kB / 493.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001927/0.1419, allocations: 1.215 MB / 494.4 MB, free: 1.395 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.142, allocations: 37.7 kB / 494.5 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.142, allocations: 8.844 kB / 494.5 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009814/0.143, allocations: 349.5 kB / 494.8 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004594/0.1434, allocations: 151.7 kB / 495 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005565/0.149, allocations: 5.387 MB / 0.4886 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.1495, allocations: 32.03 kB / 0.4887 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/0.1496, allocations: 43.98 kB / 0.4887 GB, free: 11.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004251/0.15, allocations: 355.2 kB / 0.489 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.1501, allocations: 79 kB / 0.4891 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.1519, allocations: 1.04 MB / 0.4901 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.1519, allocations: 8 kB / 0.4901 GB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1519, allocations: 4 kB / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.1519, allocations: 11.98 kB / 0.4902 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.1549, allocations: 2.051 MB / 0.4922 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.155, allocations: 4 kB / 0.4922 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.1553, allocations: 71.91 kB / 0.4922 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008459/0.1561, allocations: 317.6 kB / 0.4925 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.1562, allocations: 19.92 kB / 0.4926 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005444/0.1616, allocations: 5.324 MB / 0.4978 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1617, allocations: 0 / 0.4978 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.1634, allocations: 1.119 MB / 0.4988 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.1637, allocations: 148.2 kB / 0.499 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.1638, allocations: 12 kB / 0.499 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.1642, allocations: 19.98 kB / 0.499 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.1644, allocations: 64.34 kB / 0.4991 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.1644, allocations: 20 kB / 0.4991 GB, free: 15.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005181/0.1649, allocations: 423 kB / 0.4995 GB, free: 15.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1649, allocations: 0 / 0.4995 GB, free: 15.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009131/0.1659, allocations: 264 kB / 0.4998 GB, free: 15.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002022/0.1679, allocations: 1.687 MB / 0.5014 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.1699, allocations: 1.258 MB / 0.5026 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1699, allocations: 0 / 0.5026 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.171, allocations: 0.7673 MB / 0.5034 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009193/0.1719, allocations: 179.7 kB / 0.5035 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.1824, allocations: 7.872 MB / 0.5112 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009037/0.1833, allocations: 1.099 MB / 0.5123 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005299/0.1839, allocations: 182.3 kB / 0.5125 GB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/0.1843, allocations: 331.3 kB / 0.5128 GB, free: 1.363 MB / 398.1 MB Notification: Performance of SimCode: time 5.72e-07/0.1843, allocations: 0 / 0.5128 GB, free: 1.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2103/0.3946, allocations: 17.87 MB / 0.5303 GB, free: 68.53 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.3949, allocations: 238.3 kB / 0.5305 GB, free: 68.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.207/2.602, allocations: 0 / 0.5305 GB, free: 68.28 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches