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.001367/0.001367, allocations: 123.4 kB / 17.79 MB, free: 5.285 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.001456/0.001456, allocations: 212.2 kB / 20.75 MB, free: 2.332 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.512/1.512, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1829/0.1829, allocations: 38.52 MB / 348.7 MB, free: 2.645 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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.001915/0.001915, allocations: 67.89 kB / 487.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1143, allocations: 62.43 MB / 0.5367 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005693/0.12, allocations: 3.667 MB / 0.5403 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.1233, allocations: 1.964 MB / 0.5422 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.1234, allocations: 11.88 kB / 0.5422 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008771/0.1243, allocations: 239 kB / 0.5424 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006583/0.125, allocations: 306.8 kB / 0.5427 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004402/0.1254, allocations: 175.4 kB / 0.5429 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005363/0.126, allocations: 454.8 kB / 0.5433 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003292/0.1263, allocations: 149.7 kB / 0.5435 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004108/0.1267, allocations: 207.2 kB / 0.5437 GB, free: 404 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.127, allocations: 195.3 kB / 0.5438 GB, free: 208 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.671e-05/0.127, allocations: 28 kB / 0.5439 GB, free: 180 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006537/0.1277, allocations: 371.2 kB / 0.5442 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.1278, allocations: 131.6 kB / 0.5444 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.128, allocations: 155.2 kB / 0.5445 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007937/0.1288, allocations: 0.5605 MB / 0.545 GB, free: 14.97 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1288, allocations: 4 kB / 0.5451 GB, free: 14.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1288, allocations: 0 / 0.5451 GB, free: 14.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1288, allocations: 0 / 0.5451 GB, free: 14.96 MB / 414.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.00102/0.1298, allocations: 0.6619 MB / 0.5457 GB, free: 14.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1299, allocations: 8.031 kB / 0.5457 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.727e-05/0.1299, allocations: 58.73 kB / 0.5458 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007587/0.1307, allocations: 92.61 kB / 0.5459 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.1312, allocations: 383.9 kB / 0.5462 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1313, allocations: 12.75 kB / 0.5462 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.1313, allocations: 19.94 kB / 0.5462 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000606/0.1319, allocations: 360.6 kB / 0.5466 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.1319, allocations: 0 / 0.5466 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.132, allocations: 8 kB / 0.5466 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-05/0.132, allocations: 20.36 kB / 0.5466 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006676/0.1327, allocations: 388.7 kB / 0.547 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.1348, allocations: 1.55 MB / 0.5485 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006622/0.1354, allocations: 313 kB / 0.5488 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.1356, allocations: 97.67 kB / 0.5489 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.1356, allocations: 8 kB / 0.5489 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003634/0.136, allocations: 197.7 kB / 0.5491 GB, free: 10.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.136, allocations: 0 / 0.5491 GB, free: 10.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008322/0.1368, allocations: 389.2 kB / 0.5495 GB, free: 10.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.137, allocations: 136.8 kB / 0.5496 GB, free: 9.996 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003773/0.1373, allocations: 303.3 kB / 0.5499 GB, free: 9.688 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.1374, allocations: 33.7 kB / 0.5499 GB, free: 9.648 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.1375, allocations: 180.4 kB / 0.5501 GB, free: 9.469 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.361e-05/0.1376, allocations: 91.39 kB / 0.5502 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.545e-05/0.1377, allocations: 49.98 kB / 0.5502 GB, free: 9.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1379, allocations: 342.8 kB / 0.5505 GB, free: 8.977 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.1381, allocations: 96.52 kB / 0.5506 GB, free: 8.883 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.1383, allocations: 187.2 kB / 0.5508 GB, free: 8.664 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004543/0.1388, allocations: 304.1 kB / 0.5511 GB, free: 8.336 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1388, allocations: 0 / 0.5511 GB, free: 8.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006195/0.1394, allocations: 357.1 kB / 0.5515 GB, free: 7.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.1394, allocations: 15.88 kB / 0.5515 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.1394, allocations: 0 / 0.5515 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.1394, allocations: 4.312 kB / 0.5515 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.1397, allocations: 67.91 kB / 0.5515 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.1397, allocations: 7.938 kB / 0.5515 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.1399, allocations: 27.78 kB / 0.5516 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.871e-05/0.1399, allocations: 15.98 kB / 0.5516 GB, free: 7.844 MB / 414.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.0002031/0.1401, allocations: 184.3 kB / 0.5518 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.802e-05/0.1402, allocations: 27.81 kB / 0.5518 GB, free: 7.629 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006452/0.1408, allocations: 323.6 kB / 0.5521 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.1408, allocations: 8 kB / 0.5521 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1408, allocations: 3.938 kB / 0.5521 GB, free: 7.289 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1408, allocations: 0 / 0.5521 GB, free: 7.289 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.1419, allocations: 0.7549 MB / 0.5528 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1419, allocations: 0 / 0.5528 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.1421, allocations: 43.92 kB / 0.5529 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.1421, allocations: 3.938 kB / 0.5529 GB, free: 6.434 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.1421, allocations: 8 kB / 0.5529 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.1421, allocations: 7.984 kB / 0.5529 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1421, allocations: 4 kB / 0.5529 GB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006/0.1427, allocations: 412.8 kB / 0.5533 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.977e-05/0.1428, allocations: 112.8 kB / 0.5534 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.424e-05/0.1428, allocations: 12 kB / 0.5534 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.143, allocations: 4 kB / 0.5534 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.143, allocations: 23.97 kB / 0.5534 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.1431, allocations: 8 kB / 0.5535 GB, free: 5.812 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.1433, allocations: 225.9 kB / 0.5537 GB, free: 5.598 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1433, allocations: 0 / 0.5537 GB, free: 5.598 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004401/0.1437, allocations: 95.77 kB / 0.5538 GB, free: 5.504 MB / 414.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 (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.002636/0.1464, allocations: 1.359 MB / 0.5551 GB, free: 4.305 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005029/0.1469, allocations: 246.5 kB / 0.5553 GB, free: 4.066 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1469, allocations: 0 / 0.5553 GB, free: 4.066 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.1471, allocations: 108.5 kB / 0.5554 GB, free: 3.961 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004821/0.1476, allocations: 63.02 kB / 0.5555 GB, free: 3.902 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00406/0.1516, allocations: 3.106 MB / 0.5585 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.1521, allocations: 0.7953 MB / 0.5593 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.1523, allocations: 78.91 kB / 0.5594 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.1525, allocations: 103.4 kB / 0.5595 GB, free: 15.64 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1525, allocations: 0 / 0.5595 GB, free: 15.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03015/0.1827, allocations: 7.46 MB / 0.5668 GB, free: 8.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.752/8.935, allocations: 4.062 kB / 0.5668 GB, free: 8.211 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.958531799726188]