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.0008662/0.0008663, allocations: 90.77 kB / 16.65 MB, free: 6.59 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.0009964/0.0009964, allocations: 185.2 kB / 17.57 MB, free: 6.199 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.175/1.175, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1547/0.1547, allocations: 38.09 MB / 330.8 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002528/0.0002529, allocations: 12 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08606/0.08632, allocations: 59.17 MB / 459.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007541/0.0939, allocations: 8.758 MB / 468.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003904/0.09783, allocations: 2.812 MB / 471.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005061/0.09836, allocations: 55.62 kB / 471.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005188/0.09889, allocations: 218.5 kB / 471.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000848/0.09975, allocations: 481.9 kB / 472.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008716/0.1006, allocations: 395.3 kB / 472.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0015/0.1021, allocations: 1.941 MB / 474.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.1036, allocations: 1.114 MB / 475.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004885/0.1041, allocations: 445.8 kB / 476.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000722/0.1048, allocations: 0.654 MB / 476.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.93e-05/0.1049, allocations: 36 kB / 476.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000352/0.1053, allocations: 199.6 kB / 476.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003774/0.1056, allocations: 450.8 kB / 477.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004151/0.1061, allocations: 0.499 MB / 477.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009048/0.107, allocations: 1.175 MB / 479.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.107, allocations: 4 kB / 479.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.107, allocations: 0 / 479.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.107, allocations: 0 / 479.1 MB, free: 3.793 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.001734/0.1088, allocations: 1.127 MB / 480.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1088, allocations: 8.031 kB / 480.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008102/0.1096, allocations: 167.5 kB / 480.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009208/0.1105, allocations: 0.6843 MB / 481 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.779e-05/0.1106, allocations: 70.31 kB / 481.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.1107, allocations: 84.11 kB / 481.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.1122, allocations: 1.179 MB / 482.4 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.1122, allocations: 3.938 kB / 482.4 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.381e-05/0.1123, allocations: 36 kB / 482.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.925e-05/0.1124, allocations: 53.98 kB / 482.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.1137, allocations: 0.9249 MB / 483.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/0.1183, allocations: 4.819 MB / 488.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009774/0.1193, allocations: 0.6601 MB / 488.9 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004642/0.1198, allocations: 383.8 kB / 489.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.1198, allocations: 12.55 kB / 489.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005329/0.1204, allocations: 439.7 kB / 489.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.053e-06/0.1204, allocations: 4 kB / 489.7 MB, free: 8.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.00468/0.1251, allocations: 2.459 MB / 492.2 MB, free: 6.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.1252, allocations: 166.8 kB / 492.3 MB, free: 5.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005665/0.1257, allocations: 0.5977 MB / 492.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.1258, allocations: 37.7 kB / 493 MB, free: 5.336 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/0.1261, allocations: 494.6 kB / 493.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.1262, allocations: 220.8 kB / 493.7 MB, free: 4.625 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.351e-05/0.1263, allocations: 77.67 kB / 493.7 MB, free: 4.543 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1265, allocations: 390.8 kB / 494.1 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004123/0.1269, allocations: 285.8 kB / 494.4 MB, free: 3.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.1275, allocations: 0.5524 MB / 494.9 MB, free: 3.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.1286, allocations: 0.9572 MB / 495.9 MB, free: 2.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1286, allocations: 7.938 kB / 495.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001862/0.1304, allocations: 1.215 MB / 497.1 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/0.1305, allocations: 41.62 kB / 497.2 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1305, allocations: 8 kB / 497.2 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009258/0.1314, allocations: 338.1 kB / 497.5 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004317/0.1319, allocations: 147.7 kB / 497.6 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0051/0.137, allocations: 4.949 MB / 0.4908 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.1374, allocations: 43.97 kB / 0.4909 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.114e-05/0.1375, allocations: 32 kB / 0.4909 GB, free: 11 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.0003731/0.1378, allocations: 363 kB / 0.4912 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.071e-05/0.1379, allocations: 79.06 kB / 0.4913 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.1396, allocations: 1.036 MB / 0.4923 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1397, allocations: 4 kB / 0.4923 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.1397, allocations: 12 kB / 0.4923 GB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.1397, allocations: 11.92 kB / 0.4923 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.1425, allocations: 2.059 MB / 0.4944 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1425, allocations: 0 / 0.4944 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002712/0.1428, allocations: 84.05 kB / 0.4944 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007754/0.1436, allocations: 301.5 kB / 0.4947 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.1436, allocations: 16 kB / 0.4947 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004861/0.1485, allocations: 4.898 MB / 0.4995 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1485, allocations: 0 / 0.4995 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.1501, allocations: 1.119 MB / 0.5006 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.1503, allocations: 144.2 kB / 0.5008 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.903e-05/0.1503, allocations: 16 kB / 0.5008 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.1506, allocations: 19.98 kB / 0.5008 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.1508, allocations: 52.44 kB / 0.5008 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.1508, allocations: 23.98 kB / 0.5009 GB, free: 296 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1619/0.3127, allocations: 417.5 kB / 0.5013 GB, free: 55.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3127, allocations: 0 / 0.5013 GB, free: 55.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001363/0.3141, allocations: 269 kB / 0.5015 GB, free: 55.55 MB / 382.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.0001824/0.3143, allocations: 115 kB / 0.5016 GB, free: 55.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.3162, allocations: 1.149 MB / 0.5027 GB, free: 55.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3162, allocations: 1.375 kB / 0.5027 GB, free: 55.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009606/0.3172, allocations: 0.7526 MB / 0.5035 GB, free: 54.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3182, allocations: 174.1 kB / 0.5036 GB, free: 54.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.3211, allocations: 2.169 MB / 0.5058 GB, free: 53.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006421/0.3218, allocations: 1.109 MB / 0.5068 GB, free: 53.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005002/0.3223, allocations: 177.5 kB / 0.507 GB, free: 53.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3224, allocations: 52.14 kB / 0.5071 GB, free: 53.09 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3224, allocations: 3 kB / 0.5071 GB, free: 53.09 MB / 382.1 MB Notification: Performance of Templates: time 0.01838/0.3408, allocations: 10.09 MB / 0.5169 GB, free: 50.77 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches