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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 111.1 kB / 20.44 MB, free: 1.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002132/0.002132, allocations: 208.2 kB / 23.72 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 7.836 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1949/0.1949, allocations: 38.55 MB / 352.4 MB, free: 12.45 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 67.89 kB / 492.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.317, allocations: 62.47 MB / 0.5419 GB, free: 276 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006806/0.3238, allocations: 3.611 MB / 0.5455 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003627/0.3274, allocations: 1.824 MB / 0.5472 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.3277, allocations: 9.688 kB / 0.5473 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009091/0.3286, allocations: 231.4 kB / 0.5475 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008688/0.3295, allocations: 312.6 kB / 0.5478 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005401/0.33, allocations: 181.4 kB / 0.5479 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005928/0.3306, allocations: 454 kB / 0.5484 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003696/0.331, allocations: 156.1 kB / 0.5485 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.3315, allocations: 205.2 kB / 0.5487 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003609/0.3319, allocations: 184.9 kB / 0.5489 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.415e-05/0.3319, allocations: 29.09 kB / 0.5489 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006166/0.3325, allocations: 327.9 kB / 0.5492 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.3327, allocations: 128.9 kB / 0.5494 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.3329, allocations: 121.5 kB / 0.5495 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009489/0.3339, allocations: 0.576 MB / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3339, allocations: 1.438 kB / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3339, allocations: 0 / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.3339, allocations: 0 / 0.55 GB, free: 10.25 MB / 398.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.001251/0.3351, allocations: 0.5832 MB / 0.5506 GB, free: 9.738 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3352, allocations: 18.48 kB / 0.5506 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.654e-05/0.3353, allocations: 54.3 kB / 0.5507 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008595/0.3361, allocations: 102 kB / 0.5508 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005974/0.3367, allocations: 291.3 kB / 0.5511 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.3367, allocations: 13.25 kB / 0.5511 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/0.3368, allocations: 23.16 kB / 0.5511 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.3375, allocations: 398.7 kB / 0.5515 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.3375, allocations: 4.969 kB / 0.5515 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.3375, allocations: 14.92 kB / 0.5515 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.3376, allocations: 11.97 kB / 0.5515 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007538/0.3383, allocations: 436.9 kB / 0.5519 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.3405, allocations: 1.401 MB / 0.5533 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007616/0.3413, allocations: 339.1 kB / 0.5536 GB, free: 7.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.3415, allocations: 118.4 kB / 0.5537 GB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3415, allocations: 2.688 kB / 0.5537 GB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003694/0.3419, allocations: 219 kB / 0.5539 GB, free: 7.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.3419, allocations: 0 / 0.5539 GB, free: 7.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009729/0.3428, allocations: 423.1 kB / 0.5543 GB, free: 7.027 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.343, allocations: 136.5 kB / 0.5545 GB, free: 6.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.3435, allocations: 356.5 kB / 0.5548 GB, free: 6.637 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.3436, allocations: 37.31 kB / 0.5548 GB, free: 6.598 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.3438, allocations: 184.6 kB / 0.555 GB, free: 6.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.61e-05/0.3438, allocations: 80.95 kB / 0.5551 GB, free: 6.363 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.344, allocations: 64.3 kB / 0.5552 GB, free: 6.312 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.3441, allocations: 339.9 kB / 0.5555 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.3443, allocations: 106.6 kB / 0.5556 GB, free: 5.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.3447, allocations: 228 kB / 0.5558 GB, free: 5.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005347/0.3452, allocations: 328.9 kB / 0.5561 GB, free: 5.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3452, allocations: 0 / 0.5561 GB, free: 5.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007417/0.3459, allocations: 389.3 kB / 0.5565 GB, free: 5.023 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.346, allocations: 8 kB / 0.5565 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.346, allocations: 0 / 0.5565 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.346, allocations: 7.938 kB / 0.5565 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.3463, allocations: 71.89 kB / 0.5566 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.3463, allocations: 7.938 kB / 0.5566 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.3465, allocations: 27.78 kB / 0.5566 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.939e-05/0.3465, allocations: 11.98 kB / 0.5566 GB, free: 4.891 MB / 398.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 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002172/0.3467, allocations: 184 kB / 0.5568 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.987e-05/0.3468, allocations: 31.81 kB / 0.5568 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008149/0.3476, allocations: 416 kB / 0.5572 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.3476, allocations: 7.938 kB / 0.5572 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3476, allocations: 3.938 kB / 0.5572 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.3476, allocations: 4 kB / 0.5572 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.349, allocations: 0.779 MB / 0.558 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.349, allocations: 3.984 kB / 0.558 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.3492, allocations: 51.92 kB / 0.558 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.3492, allocations: 11.94 kB / 0.5581 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.3492, allocations: 11.98 kB / 0.5581 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.3492, allocations: 4 kB / 0.5581 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3492, allocations: 0 / 0.5581 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007415/0.35, allocations: 488 kB / 0.5585 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.571e-05/0.3501, allocations: 35.75 kB / 0.5586 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.157e-05/0.3502, allocations: 19.89 kB / 0.5586 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.3503, allocations: 11.98 kB / 0.5586 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.3504, allocations: 23.97 kB / 0.5586 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.3504, allocations: 15.98 kB / 0.5586 GB, free: 2.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003315/0.3507, allocations: 263 kB / 0.5589 GB, free: 2.477 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3507, allocations: 0 / 0.5589 GB, free: 2.477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004928/0.3512, allocations: 99.8 kB / 0.559 GB, free: 2.379 MB / 398.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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002996/0.3542, allocations: 1.467 MB / 0.5604 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006022/0.3548, allocations: 271.8 kB / 0.5607 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.3548, allocations: 4 kB / 0.5607 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.3551, allocations: 144.5 kB / 0.5608 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005417/0.3557, allocations: 68.33 kB / 0.5609 GB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004793/0.3604, allocations: 3.251 MB / 0.5641 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.3607, allocations: 205 kB / 0.5643 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002466/0.3609, allocations: 82.89 kB / 0.5643 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.3612, allocations: 115.4 kB / 0.5644 GB, free: 12.81 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3612, allocations: 0 / 0.5644 GB, free: 12.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.3994, allocations: 8.683 MB / 0.5729 GB, free: 4.172 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.97, allocations: 7.438 kB / 0.5729 GB, free: 4.168 MB / 414.1 MB " [Timeout remaining time 648] (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/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 --stepSize=34.56 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.946077820844948]