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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001565/0.001564, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1818/0.1818, allocations: 38.05 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 60.53 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1024, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004959/0.1074, allocations: 3.61 MB / 460.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002592/0.11, allocations: 1.809 MB / 462.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/0.1102, allocations: 11.94 kB / 462.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009282/0.1112, allocations: 239 kB / 462.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000668/0.1119, allocations: 255 kB / 462.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006441/0.1125, allocations: 213.2 kB / 463.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000562/0.1131, allocations: 442.9 kB / 463.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.1135, allocations: 185.5 kB / 463.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004707/0.114, allocations: 191.2 kB / 463.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002842/0.1143, allocations: 171.4 kB / 464.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.492e-05/0.1143, allocations: 32 kB / 464.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000549/0.1149, allocations: 331.3 kB / 464.4 MB, free: 484 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.115, allocations: 107.7 kB / 464.5 MB, free: 376 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002037/0.1152, allocations: 147.2 kB / 464.7 MB, free: 228 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007459/0.116, allocations: 0.5102 MB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.116, allocations: 0 / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.116, allocations: 0 / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.786e-05/0.116, allocations: 3.984 kB / 465.2 MB, free: 15.71 MB / 350.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.001126/0.1172, allocations: 0.6228 MB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.1172, allocations: 11.89 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.077e-05/0.1173, allocations: 58.72 kB / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008483/0.1182, allocations: 88.48 kB / 465.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005525/0.1187, allocations: 371.6 kB / 466.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.1188, allocations: 12.75 kB / 466.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/0.1188, allocations: 27.92 kB / 466.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.1194, allocations: 352.6 kB / 466.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1194, allocations: 0 / 466.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/0.1195, allocations: 19.97 kB / 466.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.665e-05/0.1196, allocations: 12.38 kB / 466.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006286/0.1202, allocations: 384.8 kB / 467.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.1221, allocations: 1.55 MB / 468.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005947/0.1227, allocations: 321.1 kB / 469 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.1229, allocations: 113.7 kB / 469.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.123, allocations: 8.062 kB / 469.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/0.1233, allocations: 204.5 kB / 469.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.435e-06/0.1233, allocations: 0 / 469.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008136/0.1241, allocations: 383.3 kB / 469.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.315e-05/0.1242, allocations: 136.5 kB / 469.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.1246, allocations: 295 kB / 470.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.1246, allocations: 29.7 kB / 470.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.1248, allocations: 172.2 kB / 470.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.321e-05/0.1249, allocations: 82.91 kB / 470.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.245e-05/0.125, allocations: 58.22 kB / 470.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1251, allocations: 342.8 kB / 470.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.1253, allocations: 92.52 kB / 470.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1255, allocations: 183.2 kB / 471 MB, free: 9.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.126, allocations: 304 kB / 471.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.126, allocations: 4 kB / 471.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005821/0.1266, allocations: 353.2 kB / 471.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1266, allocations: 10.06 kB / 471.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.1266, allocations: 4 kB / 471.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.1267, allocations: 4 kB / 471.7 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.1269, allocations: 59.91 kB / 471.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.127, allocations: 15.86 kB / 471.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.1271, allocations: 27.69 kB / 471.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.1272, allocations: 20 kB / 471.8 MB, free: 8.645 MB / 350.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.0002203/0.1274, allocations: 173.8 kB / 472 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.406e-05/0.1275, allocations: 35.7 kB / 472 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006109/0.1281, allocations: 311.7 kB / 472.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1281, allocations: 0 / 472.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.1281, allocations: 7.938 kB / 472.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1281, allocations: 3.938 kB / 472.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.1292, allocations: 0.7517 MB / 473.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1292, allocations: 4 kB / 473.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.1294, allocations: 47.91 kB / 473.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1294, allocations: 3.938 kB / 473.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.1294, allocations: 8 kB / 473.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.1294, allocations: 7.938 kB / 473.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1294, allocations: 0 / 473.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.13, allocations: 412.1 kB / 473.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.339e-05/0.1301, allocations: 112.6 kB / 473.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.1302, allocations: 15.94 kB / 473.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.1303, allocations: 7.984 kB / 473.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.115e-05/0.1304, allocations: 15.98 kB / 473.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.1304, allocations: 11.98 kB / 473.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002204/0.1306, allocations: 213.9 kB / 473.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1307, allocations: 0 / 473.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.1311, allocations: 79.84 kB / 474 MB, free: 6.344 MB / 350.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.001862/0.1329, allocations: 1.299 MB / 475.3 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004949/0.1335, allocations: 282.5 kB / 475.6 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1335, allocations: 0 / 475.6 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.1337, allocations: 119.7 kB / 475.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004625/0.1341, allocations: 53.59 kB / 475.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/0.1379, allocations: 3.087 MB / 478.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1383, allocations: 0.7914 MB / 479.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.1385, allocations: 82.89 kB / 479.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.1387, allocations: 107.4 kB / 479.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1387, allocations: 3.938 kB / 479.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.1651, allocations: 6.788 MB / 486.6 MB, free: 9.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/7.721, allocations: 33.38 kB / 486.6 MB, free: 9.797 MB / 366.1 MB (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) 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) Reference file matches