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.001773/0.001773, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.002026/0.002026, allocations: 219 kB / 21.46 MB, free: 1.605 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.58/1.58, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.1865/0.1865, allocations: 38.5 MB / 349.4 MB, free: 2.621 MB / 270.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="cs",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.002033/0.002033, allocations: 73.06 kB / 487.8 MB, free: 32.28 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1154, allocations: 62.42 MB / 0.5374 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006211/0.1216, allocations: 3.667 MB / 0.5409 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003239/0.1249, allocations: 1.972 MB / 0.5429 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.1251, allocations: 11.94 kB / 0.5429 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008654/0.126, allocations: 242.9 kB / 0.5431 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007229/0.1267, allocations: 298.8 kB / 0.5434 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000457/0.1272, allocations: 175.4 kB / 0.5436 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005297/0.1277, allocations: 454.8 kB / 0.544 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.128, allocations: 145.8 kB / 0.5441 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004085/0.1284, allocations: 222.4 kB / 0.5443 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.1287, allocations: 187.4 kB / 0.5445 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.364e-05/0.1287, allocations: 28 kB / 0.5445 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005876/0.1293, allocations: 383.2 kB / 0.5449 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.1294, allocations: 111.7 kB / 0.545 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.1296, allocations: 159.2 kB / 0.5452 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007344/0.1303, allocations: 0.5682 MB / 0.5457 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1303, allocations: 0 / 0.5457 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1303, allocations: 0 / 0.5457 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1303, allocations: 0 / 0.5457 GB, free: 0.9492 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.0009848/0.1313, allocations: 0.6581 MB / 0.5464 GB, free: 244 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1313, allocations: 8.031 kB / 0.5464 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.331e-05/0.1314, allocations: 4.562 kB / 0.5464 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.531e-05/0.1314, allocations: 54.73 kB / 0.5464 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007786/0.1322, allocations: 100.5 kB / 0.5465 GB, free: 68 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005961/0.1328, allocations: 387.9 kB / 0.5469 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1328, allocations: 16.5 kB / 0.5469 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.1329, allocations: 20 kB / 0.5469 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000615/0.1335, allocations: 360.6 kB / 0.5473 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.1335, allocations: 4 kB / 0.5473 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.1335, allocations: 11.97 kB / 0.5473 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.265e-05/0.1336, allocations: 12.38 kB / 0.5473 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006449/0.1342, allocations: 391.8 kB / 0.5477 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.1362, allocations: 1.539 MB / 0.5492 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.1368, allocations: 309.1 kB / 0.5495 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.137, allocations: 97.67 kB / 0.5496 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.1371, allocations: 19.98 kB / 0.5496 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.1374, allocations: 193.7 kB / 0.5498 GB, free: 12.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.833e-06/0.1374, allocations: 0 / 0.5498 GB, free: 12.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008104/0.1382, allocations: 384.4 kB / 0.5501 GB, free: 12.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.845e-05/0.1383, allocations: 136.5 kB / 0.5503 GB, free: 11.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/0.1387, allocations: 315.2 kB / 0.5506 GB, free: 11.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.1387, allocations: 33.7 kB / 0.5506 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1388, allocations: 172.4 kB / 0.5508 GB, free: 11.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.137e-05/0.1389, allocations: 87.56 kB / 0.5508 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.1391, allocations: 65.97 kB / 0.5509 GB, free: 11.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.1392, allocations: 342.8 kB / 0.5512 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.1394, allocations: 92.52 kB / 0.5513 GB, free: 10.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.1397, allocations: 183.4 kB / 0.5515 GB, free: 10.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004526/0.1401, allocations: 296.5 kB / 0.5518 GB, free: 10.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1401, allocations: 0 / 0.5518 GB, free: 10.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006124/0.1408, allocations: 357.2 kB / 0.5521 GB, free: 9.965 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1408, allocations: 11.94 kB / 0.5521 GB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.1408, allocations: 11.98 kB / 0.5521 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1408, allocations: 4 kB / 0.5522 GB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.1411, allocations: 63.91 kB / 0.5522 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.1411, allocations: 11.88 kB / 0.5522 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.1412, allocations: 27.78 kB / 0.5522 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.1413, allocations: 12 kB / 0.5523 GB, free: 9.824 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.0001963/0.1414, allocations: 189.4 kB / 0.5524 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/0.1415, allocations: 31.81 kB / 0.5525 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006146/0.1421, allocations: 322.5 kB / 0.5528 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1421, allocations: 0 / 0.5528 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.1421, allocations: 7.938 kB / 0.5528 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1421, allocations: 0 / 0.5528 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.1432, allocations: 0.7558 MB / 0.5535 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1432, allocations: 0 / 0.5535 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.1434, allocations: 51.84 kB / 0.5536 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1434, allocations: 4 kB / 0.5536 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.1434, allocations: 8 kB / 0.5536 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1434, allocations: 0 / 0.5536 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1434, allocations: 3.984 kB / 0.5536 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006207/0.144, allocations: 416.9 kB / 0.554 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.003e-05/0.1441, allocations: 112.8 kB / 0.5541 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.1442, allocations: 12 kB / 0.5541 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.1443, allocations: 7.984 kB / 0.5541 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.261e-05/0.1444, allocations: 19.92 kB / 0.5541 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.1444, allocations: 15.98 kB / 0.5541 GB, free: 7.777 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.1446, allocations: 221.9 kB / 0.5544 GB, free: 7.566 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1446, allocations: 0 / 0.5544 GB, free: 7.566 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.1451, allocations: 91.75 kB / 0.5544 GB, free: 7.477 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.00263/0.1477, allocations: 1.357 MB / 0.5558 GB, free: 6.277 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005293/0.1482, allocations: 240 kB / 0.556 GB, free: 6.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1482, allocations: 0 / 0.556 GB, free: 6.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.1484, allocations: 112.2 kB / 0.5561 GB, free: 5.934 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.1489, allocations: 63.3 kB / 0.5562 GB, free: 5.875 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.153, allocations: 3.104 MB / 0.5592 GB, free: 2.617 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.1535, allocations: 0.7953 MB / 0.56 GB, free: 1.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002137/0.1537, allocations: 78.89 kB / 0.5601 GB, free: 1.719 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.1539, allocations: 107.4 kB / 0.5602 GB, free: 1.613 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1539, allocations: 4 kB / 0.5602 GB, free: 1.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.1786, allocations: 7.496 MB / 0.5675 GB, free: 10.15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.739/8.918, allocations: 8.062 kB / 0.5675 GB, free: 10.14 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 & /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] [Calling os._exit(0), Time elapsed: 12.016640733985696] Failed to read output from testmodel.py, exit status != 0: 9.10980026301695 9.13562666 9.000592296 Calling exit ...