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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 123.9 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001974/0.001974, allocations: 185.2 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.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.2123/0.2123, allocations: 38.51 MB / 342.5 MB, free: 8.055 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 69.45 kB / 478.6 MB, free: 33.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1097, allocations: 61.24 MB / 0.5272 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005583/0.1153, allocations: 3.653 MB / 0.5308 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002973/0.1183, allocations: 1.824 MB / 0.5326 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.1185, allocations: 8 kB / 0.5326 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008988/0.1194, allocations: 234.9 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006551/0.12, allocations: 267 kB / 0.533 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006009/0.1206, allocations: 206.8 kB / 0.5332 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005588/0.1212, allocations: 438.9 kB / 0.5337 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.1215, allocations: 153.6 kB / 0.5338 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004016/0.1219, allocations: 195.3 kB / 0.534 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1221, allocations: 187.3 kB / 0.5342 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.617e-05/0.1222, allocations: 28 kB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005682/0.1228, allocations: 327.3 kB / 0.5345 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.1229, allocations: 115.7 kB / 0.5346 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.1231, allocations: 147.2 kB / 0.5348 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000731/0.1238, allocations: 0.5177 MB / 0.5353 GB, free: 9.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1238, allocations: 0 / 0.5353 GB, free: 9.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1238, allocations: 0 / 0.5353 GB, free: 9.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1238, allocations: 0 / 0.5353 GB, free: 9.105 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.001052/0.1249, allocations: 0.6387 MB / 0.5359 GB, free: 8.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.1249, allocations: 15.89 kB / 0.5359 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.008e-05/0.125, allocations: 50.73 kB / 0.536 GB, free: 8.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008017/0.1258, allocations: 96.61 kB / 0.536 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006342/0.1264, allocations: 375.9 kB / 0.5364 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.1264, allocations: 16.73 kB / 0.5364 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.154e-05/0.1265, allocations: 27.88 kB / 0.5364 GB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006328/0.1271, allocations: 356.6 kB / 0.5368 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1271, allocations: 3.984 kB / 0.5368 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.1272, allocations: 12 kB / 0.5368 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.1272, allocations: 12.38 kB / 0.5368 GB, free: 7.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006417/0.1278, allocations: 392.7 kB / 0.5372 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.13, allocations: 1.55 MB / 0.5387 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006392/0.1306, allocations: 305.1 kB / 0.539 GB, free: 5.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.1308, allocations: 96.48 kB / 0.5391 GB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.1308, allocations: 8 kB / 0.5391 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003773/0.1312, allocations: 200.9 kB / 0.5393 GB, free: 4.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1312, allocations: 4 kB / 0.5393 GB, free: 4.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008344/0.132, allocations: 381.2 kB / 0.5396 GB, free: 4.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.915e-05/0.1321, allocations: 136.5 kB / 0.5398 GB, free: 4.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.1325, allocations: 291.2 kB / 0.5401 GB, free: 3.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.1325, allocations: 37.7 kB / 0.5401 GB, free: 3.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.1327, allocations: 180.3 kB / 0.5403 GB, free: 3.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.025e-05/0.1328, allocations: 83.39 kB / 0.5403 GB, free: 3.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.1329, allocations: 57.98 kB / 0.5404 GB, free: 3.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.133, allocations: 338.8 kB / 0.5407 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.1332, allocations: 96.52 kB / 0.5408 GB, free: 3.062 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002602/0.1335, allocations: 195.1 kB / 0.541 GB, free: 2.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.134, allocations: 296.8 kB / 0.5413 GB, free: 2.516 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.134, allocations: 0 / 0.5413 GB, free: 2.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006471/0.1346, allocations: 365.1 kB / 0.5416 GB, free: 2.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1346, allocations: 4 kB / 0.5416 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.1346, allocations: 4 kB / 0.5416 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1347, allocations: 4 kB / 0.5416 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.1349, allocations: 67.91 kB / 0.5417 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.1349, allocations: 12.25 kB / 0.5417 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.1351, allocations: 27.78 kB / 0.5417 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.1351, allocations: 12 kB / 0.5418 GB, free: 2.023 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.0001965/0.1353, allocations: 177.7 kB / 0.5419 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.1354, allocations: 31.81 kB / 0.542 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006129/0.136, allocations: 315.6 kB / 0.5423 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.136, allocations: 0 / 0.5423 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.136, allocations: 7.938 kB / 0.5423 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.136, allocations: 11.92 kB / 0.5423 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.1371, allocations: 0.7395 MB / 0.543 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1371, allocations: 0 / 0.543 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.1372, allocations: 51.89 kB / 0.543 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1372, allocations: 3.938 kB / 0.5431 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.1373, allocations: 8 kB / 0.5431 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.1373, allocations: 4 kB / 0.5431 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1373, allocations: 0 / 0.5431 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005779/0.1378, allocations: 416.9 kB / 0.5435 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.048e-05/0.1379, allocations: 112.8 kB / 0.5436 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.273e-05/0.138, allocations: 11.98 kB / 0.5436 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.1381, allocations: 8 kB / 0.5436 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.1382, allocations: 11.98 kB / 0.5436 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1382, allocations: 19.98 kB / 0.5436 GB, free: 4 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.1384, allocations: 214 kB / 0.5438 GB, free: 15.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1384, allocations: 0 / 0.5438 GB, free: 15.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003938/0.1388, allocations: 79.83 kB / 0.5439 GB, free: 15.71 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.002442/0.1413, allocations: 1.298 MB / 0.5452 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005097/0.1418, allocations: 236.7 kB / 0.5454 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1418, allocations: 4 kB / 0.5454 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.142, allocations: 111.8 kB / 0.5455 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.1425, allocations: 61.84 kB / 0.5456 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/0.1466, allocations: 3.081 MB / 0.5486 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.1471, allocations: 0.7914 MB / 0.5493 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002246/0.1473, allocations: 94.88 kB / 0.5494 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.1475, allocations: 103.4 kB / 0.5495 GB, free: 9.934 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1475, allocations: 0 / 0.5495 GB, free: 9.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.1783, allocations: 6.987 MB / 0.5564 GB, free: 2.953 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.446/8.624, allocations: 0 / 0.5564 GB, free: 2.953 MB / 414.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] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.63628442119807]