Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",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.001018/0.001018, allocations: 93.8 kB / 16.3 MB, free: 5.996 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.001207/0.001207, allocations: 180 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.4 MB / 223.3 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1815/0.1815, allocations: 38.04 MB / 309.7 MB, free: 6.129 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005187/0.0005188, allocations: 15.12 kB / 376.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2478, allocations: 56.32 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003478/0.2514, allocations: 3.274 MB / 436.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.2532, allocations: 1.623 MB / 437.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.2534, allocations: 11.94 kB / 437.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.2537, allocations: 63.59 kB / 437.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004074/0.2541, allocations: 175.5 kB / 438 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.2545, allocations: 157.7 kB / 438.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.2548, allocations: 219.6 kB / 438.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005114/0.2553, allocations: 334.4 kB / 438.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002862/0.2556, allocations: 147.5 kB / 438.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.2558, allocations: 91.67 kB / 439 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.951e-05/0.2559, allocations: 19.92 kB / 439 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002923/0.2562, allocations: 163.7 kB / 439.2 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.361e-05/0.2563, allocations: 91.72 kB / 439.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.401e-05/0.2563, allocations: 73.58 kB / 439.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.2567, allocations: 379.2 kB / 439.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2567, allocations: 0 / 439.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2567, allocations: 4 kB / 439.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.004e-06/0.2567, allocations: 4 kB / 439.7 MB, free: 11.98 MB / 318.1 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.0007414/0.2575, allocations: 0.573 MB / 440.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2575, allocations: 8.031 kB / 440.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.909e-05/0.2576, allocations: 54.53 kB / 440.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006865/0.2583, allocations: 103.5 kB / 440.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.2587, allocations: 358.5 kB / 440.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.2587, allocations: 20.34 kB / 440.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.05e-05/0.2587, allocations: 20 kB / 440.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004361/0.2592, allocations: 348.5 kB / 441.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2592, allocations: 3.938 kB / 441.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.2592, allocations: 15.94 kB / 441.2 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.2593, allocations: 20.36 kB / 441.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004531/0.2597, allocations: 388.8 kB / 441.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.2612, allocations: 1.535 MB / 443.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005468/0.2617, allocations: 341.6 kB / 443.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.2618, allocations: 8.25 kB / 443.5 MB, free: 7.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.262, allocations: 201.8 kB / 443.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.2621, allocations: 0 / 443.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006166/0.2627, allocations: 386.9 kB / 444 MB, free: 7.363 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.2627, allocations: 128.5 kB / 444.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.263, allocations: 294.9 kB / 444.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.263, allocations: 33.7 kB / 444.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.2631, allocations: 176.1 kB / 444.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.354e-05/0.2632, allocations: 83.16 kB / 444.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/0.2632, allocations: 4 kB / 444.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.639e-05/0.2633, allocations: 342.8 kB / 445.1 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.2635, allocations: 96.52 kB / 445.2 MB, free: 6.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.2637, allocations: 187.2 kB / 445.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.2639, allocations: 112 kB / 445.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2639, allocations: 8.031 kB / 445.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000414/0.2643, allocations: 357.6 kB / 445.8 MB, free: 5.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2643, allocations: 8 kB / 445.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2644, allocations: 4 kB / 445.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.2644, allocations: 4 kB / 445.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.2646, allocations: 60.22 kB / 445.9 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.2646, allocations: 11.94 kB / 445.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.2647, allocations: 31.69 kB / 445.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.2648, allocations: 15.98 kB / 445.9 MB, free: 5.344 MB / 318.1 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.0001386/0.2649, allocations: 178.2 kB / 446.1 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.265, allocations: 27.67 kB / 446.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004747/0.2654, allocations: 315.7 kB / 446.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2655, allocations: 4 kB / 446.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2655, allocations: 4 kB / 446.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.2655, allocations: 0 / 446.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007151/0.2662, allocations: 0.7556 MB / 447.2 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2662, allocations: 4 kB / 447.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.2663, allocations: 39.92 kB / 447.3 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.2664, allocations: 4 kB / 447.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.2664, allocations: 11.98 kB / 447.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2664, allocations: 7.938 kB / 447.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2664, allocations: 4 kB / 447.3 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005187/0.2669, allocations: 428.2 kB / 447.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.04e-05/0.267, allocations: 108.7 kB / 447.8 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.526e-05/0.2671, allocations: 12 kB / 447.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.2673, allocations: 15.98 kB / 447.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.756e-05/0.2673, allocations: 15.92 kB / 447.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.2673, allocations: 15.94 kB / 447.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002295/0.2676, allocations: 213.9 kB / 448.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2676, allocations: 0 / 448.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004139/0.268, allocations: 75.91 kB / 448.2 MB, free: 3.008 MB / 318.1 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.001627/0.2696, allocations: 1.457 MB / 449.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.2701, allocations: 241.1 kB / 449.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2701, allocations: 3.938 kB / 449.8 MB, free: 1.336 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001641/0.2703, allocations: 119.7 kB / 450 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.2707, allocations: 58.06 kB / 450 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.2737, allocations: 3.33 MB / 453.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.2741, allocations: 0.7992 MB / 454.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001898/0.2743, allocations: 78.89 kB / 454.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.2745, allocations: 115.4 kB / 454.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2745, allocations: 0 / 454.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.2928, allocations: 6.247 MB / 460.6 MB, free: 6.469 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001627/0.293, allocations: 216.3 kB / 460.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.157, allocations: 0 / 460.8 MB, free: 6.223 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) Environment - environmentSimulation: