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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.002118/0.002118, allocations: 181.9 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.567/1.567, allocations: 194.3 MB / 208.4 MB, free: 6.691 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001873/0.001873, allocations: 116.7 kB / 253.5 MB, free: 9.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1621/0.1621, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.892e-05/3.903e-05, allocations: 4 kB / 397.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2487, allocations: 53.23 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.3646, allocations: 89.24 MB / 0.5274 GB, free: 4.078 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001647/0.3663, allocations: 0.6907 MB / 0.5281 GB, free: 3.391 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.2457/0.612, allocations: 14.37 MB / 0.5421 GB, free: 84.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.6121, allocations: 0 / 0.5421 GB, free: 84.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.985e-05/0.6121, allocations: 7.531 kB / 0.5422 GB, free: 84.71 MB / 378.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.001084/0.6132, allocations: 0.6232 MB / 0.5428 GB, free: 84.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.6132, allocations: 7.375 kB / 0.5428 GB, free: 84.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001274/0.6134, allocations: 60.16 kB / 0.5428 GB, free: 84.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009193/0.6143, allocations: 110.7 kB / 0.5429 GB, free: 84.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006348/0.615, allocations: 346.1 kB / 0.5433 GB, free: 83.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.615, allocations: 12.06 kB / 0.5433 GB, free: 83.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.888e-05/0.6151, allocations: 17.88 kB / 0.5433 GB, free: 83.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.6157, allocations: 366.6 kB / 0.5436 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.6157, allocations: 0 / 0.5436 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.6157, allocations: 11.95 kB / 0.5437 GB, free: 83.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.554e-05/0.6158, allocations: 14.52 kB / 0.5437 GB, free: 83.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006343/0.6164, allocations: 439.5 kB / 0.5441 GB, free: 83.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/0.6183, allocations: 1.619 MB / 0.5457 GB, free: 81.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006077/0.6189, allocations: 364.6 kB / 0.546 GB, free: 81.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.6191, allocations: 120.4 kB / 0.5461 GB, free: 81.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.6191, allocations: 3.984 kB / 0.5461 GB, free: 81.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000342/0.6195, allocations: 200.8 kB / 0.5463 GB, free: 81.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.445e-06/0.6195, allocations: 0 / 0.5463 GB, free: 81.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006148/0.6201, allocations: 322.5 kB / 0.5466 GB, free: 81.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.6202, allocations: 144.4 kB / 0.5468 GB, free: 81.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003277/0.6205, allocations: 287.5 kB / 0.547 GB, free: 80.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.6206, allocations: 33.2 kB / 0.5471 GB, free: 80.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.6207, allocations: 170.1 kB / 0.5472 GB, free: 80.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.6207, allocations: 84.41 kB / 0.5473 GB, free: 80.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.59e-05/0.6208, allocations: 11.06 kB / 0.5473 GB, free: 80.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.748e-05/0.6208, allocations: 337.8 kB / 0.5477 GB, free: 80.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.621, allocations: 120.7 kB / 0.5478 GB, free: 80.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.6212, allocations: 206.6 kB / 0.548 GB, free: 80.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.6215, allocations: 184.8 kB / 0.5481 GB, free: 79.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.6215, allocations: 0 / 0.5481 GB, free: 79.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005619/0.622, allocations: 462.1 kB / 0.5486 GB, free: 79.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/0.6221, allocations: 33.7 kB / 0.5486 GB, free: 79.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.6221, allocations: 11.88 kB / 0.5486 GB, free: 79.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.6221, allocations: 7.984 kB / 0.5486 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.6224, allocations: 60.22 kB / 0.5487 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.6224, allocations: 8 kB / 0.5487 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.6226, allocations: 39.69 kB / 0.5487 GB, free: 79.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.6226, allocations: 12 kB / 0.5487 GB, free: 79.46 MB / 378.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): 33 * Array equations: 0 * Algorithm blocks: 1 * 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 8.461e-05/0.6227, allocations: 128.7 kB / 0.5489 GB, free: 79.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.638e-05/0.6228, allocations: 31.58 kB / 0.5489 GB, free: 79.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005659/0.6233, allocations: 419.5 kB / 0.5493 GB, free: 78.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.6233, allocations: 4 kB / 0.5493 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.6234, allocations: 0 / 0.5493 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.6234, allocations: 3.984 kB / 0.5493 GB, free: 78.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008544/0.6242, allocations: 0.8455 MB / 0.5501 GB, free: 77.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.6242, allocations: 4 kB / 0.5501 GB, free: 77.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.6244, allocations: 55.91 kB / 0.5502 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.6245, allocations: 4 kB / 0.5502 GB, free: 77.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.6245, allocations: 12 kB / 0.5502 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.6245, allocations: 0 / 0.5502 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6245, allocations: 0 / 0.5502 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000467/0.625, allocations: 0.4997 MB / 0.5507 GB, free: 77.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.6251, allocations: 156.6 kB / 0.5508 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.6252, allocations: 12 kB / 0.5509 GB, free: 77.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.6253, allocations: 8 kB / 0.5509 GB, free: 77.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.868e-05/0.6254, allocations: 23.97 kB / 0.5509 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.6254, allocations: 11.98 kB / 0.5509 GB, free: 77.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00019/0.6256, allocations: 231 kB / 0.5511 GB, free: 76.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6256, allocations: 0 / 0.5511 GB, free: 76.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004274/0.6261, allocations: 111.7 kB / 0.5512 GB, free: 76.82 MB / 378.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 (34): * Single equations (assignments): 31 * 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.001524/0.6276, allocations: 1.512 MB / 0.5527 GB, free: 75.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004666/0.6281, allocations: 379.4 kB / 0.5531 GB, free: 74.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.6281, allocations: 0 / 0.5531 GB, free: 74.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.6283, allocations: 152.5 kB / 0.5532 GB, free: 74.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.6286, allocations: 53.28 kB / 0.5533 GB, free: 74.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.6296, allocations: 0.5746 MB / 0.5538 GB, free: 74.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.6299, allocations: 0.8077 MB / 0.5546 GB, free: 73.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001913/0.6301, allocations: 82.88 kB / 0.5547 GB, free: 73.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.6302, allocations: 103.4 kB / 0.5548 GB, free: 73.08 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.6302, allocations: 0 / 0.5548 GB, free: 73.08 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.6515, allocations: 6.906 MB / 0.5615 GB, free: 66.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.6518, allocations: 183.7 kB / 0.5617 GB, free: 65.94 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/2.687, allocations: 4 kB / 0.5617 GB, free: 65.94 MB / 378.7 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)