Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 180.2 kB / 8.13 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0009831/0.0009831, allocations: 89.75 kB / 261.7 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1754/0.1754, allocations: 37.96 MB / 347.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2461/0.4215, allocations: 62.44 MB / 410.1 MB, free: 46.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.544, allocations: 56.32 MB / 466.4 MB, free: 6.359 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3845/0.9285, allocations: 94.22 MB / 0.5475 GB, free: 264 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.007777/0.9364, allocations: 2.208 MB / 0.5497 GB, free: 14.07 MB / 394.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.0412/0.9776, allocations: 15.08 MB / 0.5644 GB, free: 14.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.9777, allocations: 12 kB / 0.5644 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.9787, allocations: 103.5 kB / 0.5645 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000881/0.9797, allocations: 358 kB / 0.5648 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.201e-05/0.9797, allocations: 8 kB / 0.5648 GB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.9798, allocations: 8 kB / 0.5649 GB, free: 14.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006198/0.9804, allocations: 336.6 kB / 0.5652 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005562/0.981, allocations: 340.3 kB / 0.5655 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.981, allocations: 0 / 0.5655 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.309e-05/0.981, allocations: 4 kB / 0.5655 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.889e-05/0.9811, allocations: 20.36 kB / 0.5655 GB, free: 13.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002542/0.9836, allocations: 1.599 MB / 0.5671 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.9842, allocations: 293.1 kB / 0.5674 GB, free: 11.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.9844, allocations: 113.7 kB / 0.5675 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.9844, allocations: 4 kB / 0.5675 GB, free: 11.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003266/0.9847, allocations: 194.7 kB / 0.5677 GB, free: 11.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.495e-06/0.9848, allocations: 0 / 0.5677 GB, free: 11.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.0007472/0.9855, allocations: 290.7 kB / 0.5679 GB, free: 10.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.964e-05/0.9856, allocations: 132.5 kB / 0.5681 GB, free: 10.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.9861, allocations: 287.3 kB / 0.5683 GB, free: 10.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.082e-05/0.9861, allocations: 25.7 kB / 0.5684 GB, free: 10.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.9863, allocations: 148.1 kB / 0.5685 GB, free: 10.31 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.9864, allocations: 86.88 kB / 0.5686 GB, free: 10.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.9864, allocations: 4 kB / 0.5686 GB, free: 10.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.9866, allocations: 342.8 kB / 0.5689 GB, free: 9.875 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.9868, allocations: 100.5 kB / 0.569 GB, free: 9.773 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.9871, allocations: 179.1 kB / 0.5692 GB, free: 9.562 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.9874, allocations: 131.9 kB / 0.5693 GB, free: 9.434 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.9874, allocations: 0 / 0.5693 GB, free: 9.434 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005815/0.988, allocations: 352.9 kB / 0.5696 GB, free: 9.082 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.988, allocations: 4 kB / 0.5696 GB, free: 9.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.988, allocations: 0 / 0.5696 GB, free: 9.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.988, allocations: 8 kB / 0.5697 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/0.9884, allocations: 63.91 kB / 0.5697 GB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.9884, allocations: 4.312 kB / 0.5697 GB, free: 9.004 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.9886, allocations: 31.67 kB / 0.5698 GB, free: 8.973 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.9887, allocations: 12 kB / 0.5698 GB, free: 8.961 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001251/0.9888, allocations: 112.9 kB / 0.5699 GB, free: 8.844 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.032e-05/0.9889, allocations: 27.62 kB / 0.5699 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000728/0.9896, allocations: 374.5 kB / 0.5703 GB, free: 8.445 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.9896, allocations: 8 kB / 0.5703 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.9896, allocations: 3.906 kB / 0.5703 GB, free: 8.434 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.9896, allocations: 3.984 kB / 0.5703 GB, free: 8.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.9908, allocations: 0.7721 MB / 0.571 GB, free: 7.613 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.9908, allocations: 3.938 kB / 0.571 GB, free: 7.609 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.991, allocations: 59.92 kB / 0.5711 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.9911, allocations: 0 / 0.5711 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.9911, allocations: 7.984 kB / 0.5711 GB, free: 7.543 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.9911, allocations: 4 kB / 0.5711 GB, free: 7.539 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.9911, allocations: 4 kB / 0.5711 GB, free: 7.535 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005759/0.9917, allocations: 472.5 kB / 0.5715 GB, free: 7.039 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007314/0.9924, allocations: 0.8362 MB / 0.5724 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.9926, allocations: 120.7 kB / 0.5725 GB, free: 6.027 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.725e-05/0.9926, allocations: 4 kB / 0.5725 GB, free: 6.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.9928, allocations: 4 kB / 0.5725 GB, free: 6.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.294e-05/0.9929, allocations: 23.97 kB / 0.5725 GB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.9929, allocations: 15.98 kB / 0.5725 GB, free: 5.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002568/0.9932, allocations: 227 kB / 0.5727 GB, free: 5.758 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001128/0.9943, allocations: 91.78 kB / 0.5728 GB, free: 5.668 MB / 410.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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.0009338/0.9953, allocations: 364.7 kB / 0.5732 GB, free: 5.324 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005257/0.9958, allocations: 263.7 kB / 0.5734 GB, free: 5.066 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.9958, allocations: 0 / 0.5734 GB, free: 5.066 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.9961, allocations: 151.8 kB / 0.5736 GB, free: 4.918 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.9965, allocations: 49.59 kB / 0.5736 GB, free: 4.871 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.9979, allocations: 467.1 kB / 0.5741 GB, free: 4.379 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007056/0.9986, allocations: 0.8544 MB / 0.5749 GB, free: 3.492 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.9986, allocations: 0 / 0.5749 GB, free: 3.492 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat does not exist to compare? outputFormat=mat