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: translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001781/0.001781, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.001611/0.001611, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.328/1.328, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1761/0.1761, allocations: 38.04 MB / 329.4 MB, free: 9.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 56.42 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1179, allocations: 58.07 MB / 456.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01144/0.1294, allocations: 9.229 MB / 465.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005896/0.1353, allocations: 2.808 MB / 468.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.1366, allocations: 67.56 kB / 468.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002341/0.1389, allocations: 0.8047 MB / 469.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001439/0.1404, allocations: 481.9 kB / 469.7 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.1417, allocations: 411.3 kB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001634/0.1433, allocations: 1.274 MB / 471.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001091/0.1444, allocations: 0.7284 MB / 472.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.1454, allocations: 0.5524 MB / 472.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.1467, allocations: 0.6969 MB / 473.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.1469, allocations: 76 kB / 473.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005674/0.1474, allocations: 219.7 kB / 473.7 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005208/0.148, allocations: 498.8 kB / 474.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008156/0.1488, allocations: 0.5247 MB / 474.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001466/0.1503, allocations: 1.23 MB / 475.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1503, allocations: 0 / 475.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1503, allocations: 0 / 475.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.422e-05/0.1504, allocations: 0 / 475.9 MB, free: 4.785 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.002818/0.1532, allocations: 1.306 MB / 477.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1532, allocations: 11.89 kB / 477.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009916/0.1542, allocations: 171.4 kB / 477.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.1555, allocations: 0.6805 MB / 478.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.731e-05/0.1555, allocations: 74.3 kB / 478.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.1557, allocations: 88.03 kB / 478.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.1576, allocations: 1.171 MB / 479.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/0.1576, allocations: 11.94 kB / 479.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-05/0.1577, allocations: 35.94 kB / 479.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.287e-05/0.1578, allocations: 53.98 kB / 479.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.1593, allocations: 0.9288 MB / 480.4 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005857/0.1652, allocations: 4.799 MB / 485.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.1663, allocations: 0.6667 MB / 485.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005248/0.1669, allocations: 387.8 kB / 486.3 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.564e-05/0.1669, allocations: 8.562 kB / 486.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006446/0.1676, allocations: 443.7 kB / 486.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.755e-06/0.1676, allocations: 0 / 486.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005291/0.1729, allocations: 2.443 MB / 489.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.173, allocations: 166.8 kB / 489.3 MB, free: 6.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006741/0.1737, allocations: 0.5978 MB / 489.9 MB, free: 6.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.1737, allocations: 37.7 kB / 490 MB, free: 6.164 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003516/0.1741, allocations: 482.7 kB / 490.4 MB, free: 5.684 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.1743, allocations: 224.8 kB / 490.6 MB, free: 5.461 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.1745, allocations: 162.5 kB / 490.8 MB, free: 5.297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.1747, allocations: 386.8 kB / 491.2 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/0.1752, allocations: 281.8 kB / 491.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006328/0.1758, allocations: 0.5563 MB / 492 MB, free: 3.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.1771, allocations: 0.9533 MB / 493 MB, free: 2.867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.1771, allocations: 7.938 kB / 493 MB, free: 2.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002128/0.1792, allocations: 1.219 MB / 494.2 MB, free: 1.621 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/0.1793, allocations: 41.64 kB / 494.2 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.1793, allocations: 8 kB / 494.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/0.1804, allocations: 337.9 kB / 494.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004908/0.1809, allocations: 147.7 kB / 494.7 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006083/0.187, allocations: 5.39 MB / 0.4884 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006346/0.1877, allocations: 39.97 kB / 0.4884 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.72e-05/0.1877, allocations: 39.98 kB / 0.4885 GB, free: 11.32 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.0006255/0.1884, allocations: 360.1 kB / 0.4888 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.1885, allocations: 79 kB / 0.4889 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001952/0.1905, allocations: 1.04 MB / 0.4899 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.1905, allocations: 8 kB / 0.4899 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1905, allocations: 4 kB / 0.4899 GB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1905, allocations: 3.984 kB / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003278/0.1938, allocations: 2.055 MB / 0.4919 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.1938, allocations: 8 kB / 0.4919 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.1941, allocations: 71.91 kB / 0.492 GB, free: 7.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008824/0.195, allocations: 313.6 kB / 0.4923 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.811e-05/0.1951, allocations: 15.94 kB / 0.4923 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005984/0.2011, allocations: 5.331 MB / 0.4975 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2011, allocations: 3.938 kB / 0.4975 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.203, allocations: 1.115 MB / 0.4986 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.2032, allocations: 148.2 kB / 0.4988 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.327e-05/0.2033, allocations: 20 kB / 0.4988 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003335/0.2036, allocations: 19.98 kB / 0.4988 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.2038, allocations: 56.42 kB / 0.4988 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.2038, allocations: 20 kB / 0.4989 GB, free: 164 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005509/0.2044, allocations: 419.1 kB / 0.4993 GB, free: 15.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2044, allocations: 3.938 kB / 0.4993 GB, free: 15.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001025/0.2054, allocations: 268 kB / 0.4995 GB, free: 15.49 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.0001804/0.2056, allocations: 123.1 kB / 0.4996 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.2077, allocations: 1.261 MB / 0.5009 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.2077, allocations: 0 / 0.5009 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.2088, allocations: 0.7722 MB / 0.5016 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008987/0.2097, allocations: 179.7 kB / 0.5018 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.2128, allocations: 2.138 MB / 0.5039 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007239/0.2136, allocations: 1.107 MB / 0.505 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005025/0.2141, allocations: 182.3 kB / 0.5051 GB, free: 9.582 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.2142, allocations: 47.44 kB / 0.5052 GB, free: 9.535 MB / 398.1 MB Notification: Performance of SimCode: time 2.785e-06/0.2142, allocations: 0 / 0.5052 GB, free: 9.535 MB / 398.1 MB Notification: Performance of Templates: time 0.2162/0.4304, allocations: 10.76 MB / 0.5157 GB, free: 69.19 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches