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.004322/0.004322, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.004507/0.004507, allocations: 210.4 kB / 23.73 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.601/1.601, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1846/0.1846, allocations: 38.56 MB / 352.5 MB, free: 12.31 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.002095/0.002095, allocations: 75.89 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3125, allocations: 62.46 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006083/0.3185, allocations: 3.626 MB / 0.5455 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003209/0.3217, allocations: 1.819 MB / 0.5472 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.3219, allocations: 10.31 kB / 0.5473 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009036/0.3228, allocations: 234.4 kB / 0.5475 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008059/0.3236, allocations: 304.7 kB / 0.5478 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005021/0.3241, allocations: 186.8 kB / 0.5479 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005256/0.3246, allocations: 452.8 kB / 0.5484 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.3249, allocations: 157.8 kB / 0.5485 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.3254, allocations: 204.2 kB / 0.5487 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.3256, allocations: 184 kB / 0.5489 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.3257, allocations: 30.16 kB / 0.5489 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005455/0.3262, allocations: 333.4 kB / 0.5492 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.3264, allocations: 119.3 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001653/0.3265, allocations: 128.8 kB / 0.5495 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007645/0.3273, allocations: 0.5766 MB / 0.55 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3273, allocations: 1.5 kB / 0.55 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3273, allocations: 0 / 0.55 GB, free: 10.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.3273, allocations: 0 / 0.55 GB, free: 10.2 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.0009855/0.3283, allocations: 0.5835 MB / 0.5506 GB, free: 9.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3283, allocations: 14.48 kB / 0.5506 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.415e-05/0.3284, allocations: 61.91 kB / 0.5507 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007383/0.3292, allocations: 94.73 kB / 0.5508 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005268/0.3297, allocations: 286.9 kB / 0.5511 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.3297, allocations: 12.69 kB / 0.5511 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.41e-05/0.3297, allocations: 28.06 kB / 0.5511 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.3304, allocations: 403.1 kB / 0.5515 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3304, allocations: 0 / 0.5515 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/0.3304, allocations: 6.281 kB / 0.5515 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.3305, allocations: 16.33 kB / 0.5515 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006999/0.3312, allocations: 436.8 kB / 0.5519 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.3333, allocations: 1.405 MB / 0.5533 GB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000779/0.3341, allocations: 341.9 kB / 0.5536 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.3343, allocations: 110.3 kB / 0.5537 GB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.3344, allocations: 6.312 kB / 0.5537 GB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003931/0.3348, allocations: 218 kB / 0.5539 GB, free: 7.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.3348, allocations: 0 / 0.5539 GB, free: 7.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009209/0.3357, allocations: 431.2 kB / 0.5543 GB, free: 6.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.3358, allocations: 137 kB / 0.5545 GB, free: 6.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.3363, allocations: 352 kB / 0.5548 GB, free: 6.586 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.3364, allocations: 33.14 kB / 0.5548 GB, free: 6.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.3365, allocations: 184.9 kB / 0.555 GB, free: 6.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.027e-05/0.3366, allocations: 84.22 kB / 0.5551 GB, free: 6.312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.3367, allocations: 61.22 kB / 0.5552 GB, free: 6.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.3369, allocations: 342.8 kB / 0.5555 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.3371, allocations: 106.1 kB / 0.5556 GB, free: 5.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.3374, allocations: 224.3 kB / 0.5558 GB, free: 5.684 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005022/0.3379, allocations: 329.8 kB / 0.5561 GB, free: 5.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3379, allocations: 0 / 0.5561 GB, free: 5.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007022/0.3386, allocations: 393.1 kB / 0.5565 GB, free: 4.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3387, allocations: 6.812 kB / 0.5565 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.3387, allocations: 4 kB / 0.5565 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3387, allocations: 4 kB / 0.5565 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.339, allocations: 63.84 kB / 0.5566 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.339, allocations: 8.25 kB / 0.5566 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/0.3391, allocations: 39.77 kB / 0.5566 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.3392, allocations: 12 kB / 0.5566 GB, free: 4.828 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.0002036/0.3394, allocations: 179.8 kB / 0.5568 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/0.3394, allocations: 31.75 kB / 0.5568 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007601/0.3402, allocations: 412 kB / 0.5572 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.3402, allocations: 4 kB / 0.5572 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3402, allocations: 11.88 kB / 0.5572 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.3402, allocations: 7.984 kB / 0.5572 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.3415, allocations: 0.7829 MB / 0.558 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3415, allocations: 0 / 0.558 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.3417, allocations: 55.91 kB / 0.5581 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.3417, allocations: 7.938 kB / 0.5581 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.3417, allocations: 8 kB / 0.5581 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.3417, allocations: 4 kB / 0.5581 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3417, allocations: 0 / 0.5581 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007199/0.3424, allocations: 488 kB / 0.5585 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.629e-05/0.3425, allocations: 39.73 kB / 0.5586 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.047e-05/0.3426, allocations: 15.89 kB / 0.5586 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3427, allocations: 12 kB / 0.5586 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.3428, allocations: 27.95 kB / 0.5586 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.3428, allocations: 12 kB / 0.5586 GB, free: 2.672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003127/0.3431, allocations: 259 kB / 0.5589 GB, free: 2.422 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3431, allocations: 0 / 0.5589 GB, free: 2.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004578/0.3436, allocations: 99.8 kB / 0.559 GB, free: 2.324 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.002931/0.3465, allocations: 1.462 MB / 0.5604 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000591/0.3471, allocations: 280 kB / 0.5607 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3471, allocations: 4 kB / 0.5607 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.3474, allocations: 139.8 kB / 0.5608 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005216/0.3479, allocations: 68.38 kB / 0.5609 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004477/0.3524, allocations: 3.253 MB / 0.5641 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.3526, allocations: 196.9 kB / 0.5642 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.3528, allocations: 86.91 kB / 0.5643 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.353, allocations: 115.4 kB / 0.5644 GB, free: 12.76 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.353, allocations: 0 / 0.5644 GB, free: 12.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.3896, allocations: 8.675 MB / 0.5729 GB, free: 4.129 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.14, allocations: 11.75 kB / 0.5729 GB, free: 4.121 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/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] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv failed! Error: Could not read variable city.p[1] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv. Warning: Get data of variable city.p[1] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv failed! Error: Could not read variable city.p[2] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv. Warning: Get data of variable city.p[2] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.47593762818724]