Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009016/0.0009017, allocations: 177 kB / 15.78 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.4 MB / 221.9 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008112/0.0008113, allocations: 102.2 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1673/0.1673, allocations: 38.06 MB / 356.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003445, allocations: 12 kB / 422.7 MB, free: 26.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.0996, allocations: 56.34 MB / 479.1 MB, free: 1.996 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003903/0.1035, allocations: 3.328 MB / 482.4 MB, free: 14.65 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.1058, allocations: 1.666 MB / 484.1 MB, free: 12.97 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.106, allocations: 15.88 kB / 484.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.1063, allocations: 63.67 kB / 484.1 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004677/0.1068, allocations: 203.1 kB / 484.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.1072, allocations: 143.7 kB / 484.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004549/0.1077, allocations: 482.7 kB / 485 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005417/0.1082, allocations: 330.5 kB / 485.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.1085, allocations: 147.3 kB / 485.4 MB, free: 11.6 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.1088, allocations: 163.4 kB / 485.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.559e-05/0.1088, allocations: 12 kB / 485.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003223/0.1091, allocations: 175.6 kB / 485.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.669e-05/0.1093, allocations: 95.7 kB / 485.9 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.263e-05/0.1093, allocations: 77.58 kB / 485.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.1098, allocations: 383.1 kB / 486.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1098, allocations: 0 / 486.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1098, allocations: 0 / 486.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1098, allocations: 3.938 kB / 486.3 MB, free: 10.7 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008104/0.1107, allocations: 0.5693 MB / 486.9 MB, free: 10.08 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.1107, allocations: 8.031 kB / 486.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006775/0.1114, allocations: 103.4 kB / 487 MB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.1119, allocations: 350.7 kB / 487.3 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.1119, allocations: 16.31 kB / 487.3 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.1119, allocations: 16 kB / 487.4 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005567/0.1125, allocations: 356.4 kB / 487.7 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1125, allocations: 11.94 kB / 487.7 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.1126, allocations: 7.984 kB / 487.7 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.127e-05/0.1126, allocations: 20.33 kB / 487.8 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005517/0.1132, allocations: 388.7 kB / 488.1 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.115, allocations: 1.55 MB / 489.7 MB, free: 7.094 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.1156, allocations: 321.6 kB / 490 MB, free: 6.762 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.1158, allocations: 106 kB / 490.1 MB, free: 6.652 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.1158, allocations: 16.19 kB / 490.1 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.1161, allocations: 193.9 kB / 490.3 MB, free: 6.426 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.386e-06/0.1161, allocations: 0 / 490.3 MB, free: 6.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007358/0.1169, allocations: 390.1 kB / 490.7 MB, free: 6.039 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.452e-05/0.117, allocations: 132.8 kB / 490.8 MB, free: 5.879 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.1173, allocations: 291 kB / 491.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.1173, allocations: 33.7 kB / 491.1 MB, free: 5.543 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.1175, allocations: 176.1 kB / 491.3 MB, free: 5.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.49e-05/0.1175, allocations: 79.06 kB / 491.4 MB, free: 5.289 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.1176, allocations: 4 kB / 491.4 MB, free: 5.285 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1177, allocations: 342.8 kB / 491.7 MB, free: 4.941 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.1179, allocations: 92.52 kB / 491.8 MB, free: 4.852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.1181, allocations: 191.2 kB / 492 MB, free: 4.629 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.1184, allocations: 123.9 kB / 492.1 MB, free: 4.508 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1184, allocations: 0 / 492.1 MB, free: 4.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005698/0.1189, allocations: 361.9 kB / 492.5 MB, free: 4.148 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.119, allocations: 4 kB / 492.5 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.119, allocations: 4 kB / 492.5 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.119, allocations: 4 kB / 492.5 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.1193, allocations: 59.91 kB / 492.5 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.1193, allocations: 7.938 kB / 492.6 MB, free: 4.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.1194, allocations: 27.69 kB / 492.6 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.1195, allocations: 23.97 kB / 492.6 MB, free: 4.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000179/0.1197, allocations: 177.8 kB / 492.8 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/0.1197, allocations: 31.67 kB / 492.8 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005449/0.1203, allocations: 315.6 kB / 493.1 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1203, allocations: 4 kB / 493.1 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1203, allocations: 3.984 kB / 493.1 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1203, allocations: 4 kB / 493.1 MB, free: 3.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000944/0.1212, allocations: 0.7479 MB / 493.9 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1213, allocations: 4 kB / 493.9 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.1214, allocations: 39.92 kB / 493.9 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.8e-06/0.1214, allocations: 4 kB / 493.9 MB, free: 2.629 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.1215, allocations: 15.92 kB / 493.9 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1215, allocations: 0 / 493.9 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1215, allocations: 0 / 493.9 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000548/0.122, allocations: 412.7 kB / 494.3 MB, free: 2.188 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.285e-05/0.1221, allocations: 112.7 kB / 494.4 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.1222, allocations: 8 kB / 494.5 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.1223, allocations: 11.98 kB / 494.5 MB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-05/0.1224, allocations: 15.92 kB / 494.5 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.1224, allocations: 15.98 kB / 494.5 MB, free: 2.008 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002366/0.1227, allocations: 213.9 kB / 494.7 MB, free: 1.797 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1227, allocations: 0 / 494.7 MB, free: 1.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003593/0.123, allocations: 75.84 kB / 494.8 MB, free: 1.723 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000938/0.124, allocations: 456.7 kB / 495.2 MB, free: 1.328 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004446/0.1244, allocations: 248.2 kB / 495.5 MB, free: 1.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1245, allocations: 4.062 kB / 495.5 MB, free: 1.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.1247, allocations: 112.3 kB / 495.6 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.1251, allocations: 69.7 kB / 495.7 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.1262, allocations: 0.719 MB / 496.4 MB, free: 160 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.1266, allocations: 0.7914 MB / 497.2 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.1267, allocations: 39.42 kB / 497.2 MB, free: 15.3 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1267, allocations: 0 / 497.2 MB, free: 15.3 MB / 346.7 MB Notification: Performance of Templates: time 0.0086/0.1353, allocations: 4.487 MB / 0.4899 GB, free: 10.81 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)