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.001247/0.001247, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001215/0.001215, allocations: 189.4 kB / 18 MB, free: 5.098 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1894/0.1894, allocations: 38.05 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.91 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3361, allocations: 58.06 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.00463/0.3408, allocations: 3.597 MB / 0.5071 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.3431, allocations: 1.811 MB / 0.5089 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.3433, allocations: 14.09 kB / 0.5089 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008194/0.3442, allocations: 236.5 kB / 0.5091 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006785/0.3449, allocations: 257.3 kB / 0.5094 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000659/0.3455, allocations: 212 kB / 0.5096 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005282/0.3461, allocations: 439 kB / 0.51 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000322/0.3464, allocations: 183.6 kB / 0.5102 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003737/0.3468, allocations: 189.2 kB / 0.5104 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.3471, allocations: 174.7 kB / 0.5105 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.869e-05/0.3471, allocations: 27.5 kB / 0.5106 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006107/0.3478, allocations: 320.4 kB / 0.5109 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.3479, allocations: 117.4 kB / 0.511 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.348, allocations: 150.6 kB / 0.5111 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007742/0.3488, allocations: 0.5153 MB / 0.5116 GB, free: 2.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3488, allocations: 0 / 0.5116 GB, free: 2.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3488, allocations: 0 / 0.5116 GB, free: 2.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.3489, allocations: 5.656 kB / 0.5116 GB, free: 2.41 MB / 382.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.0008887/0.3498, allocations: 0.6358 MB / 0.5122 GB, free: 1.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3498, allocations: 12.52 kB / 0.5123 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.398e-05/0.3499, allocations: 52.7 kB / 0.5123 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007696/0.3506, allocations: 95.69 kB / 0.5124 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.3512, allocations: 377.5 kB / 0.5128 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.3512, allocations: 12.34 kB / 0.5128 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.3512, allocations: 28.97 kB / 0.5128 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005625/0.3518, allocations: 357.1 kB / 0.5131 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3518, allocations: 3.938 kB / 0.5131 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.3519, allocations: 10.89 kB / 0.5132 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.672e-05/0.3519, allocations: 23.28 kB / 0.5132 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005897/0.3525, allocations: 392 kB / 0.5135 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.3543, allocations: 1.535 MB / 0.515 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006629/0.3549, allocations: 328 kB / 0.5154 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.3552, allocations: 102.3 kB / 0.5155 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.3552, allocations: 14.16 kB / 0.5155 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000369/0.3556, allocations: 201.9 kB / 0.5157 GB, free: 15.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.134e-06/0.3556, allocations: 0 / 0.5157 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.000882/0.3565, allocations: 384.8 kB / 0.516 GB, free: 15.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.983e-05/0.3566, allocations: 132.3 kB / 0.5162 GB, free: 15.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004123/0.357, allocations: 294.6 kB / 0.5164 GB, free: 15.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.3571, allocations: 33.11 kB / 0.5165 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.3573, allocations: 180.1 kB / 0.5166 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.971e-05/0.3574, allocations: 87.59 kB / 0.5167 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.3575, allocations: 58.23 kB / 0.5168 GB, free: 14.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.3577, allocations: 339.7 kB / 0.5171 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.358, allocations: 97.28 kB / 0.5172 GB, free: 14.49 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.3583, allocations: 190.6 kB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005238/0.3588, allocations: 294.1 kB / 0.5177 GB, free: 14.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3588, allocations: 1 kB / 0.5177 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007805/0.3596, allocations: 362.5 kB / 0.518 GB, free: 14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3596, allocations: 5.094 kB / 0.518 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.3597, allocations: 2.625 kB / 0.518 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.3597, allocations: 4.734 kB / 0.518 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.36, allocations: 66.03 kB / 0.5181 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.36, allocations: 8.188 kB / 0.5181 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.3601, allocations: 29.11 kB / 0.5181 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.3602, allocations: 11.16 kB / 0.5181 GB, free: 13.97 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.0002353/0.3604, allocations: 183.1 kB / 0.5183 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.729e-05/0.3605, allocations: 34.38 kB / 0.5183 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006222/0.3611, allocations: 312.6 kB / 0.5186 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3612, allocations: 4.281 kB / 0.5186 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3612, allocations: 3.938 kB / 0.5186 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.3612, allocations: 2.312 kB / 0.5186 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.3624, allocations: 0.7553 MB / 0.5194 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3624, allocations: 5.281 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.3626, allocations: 42.98 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.3626, allocations: 6.656 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.3627, allocations: 5.047 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3627, allocations: 2.75 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.3627, allocations: 3.938 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006702/0.3634, allocations: 424.2 kB / 0.5199 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.3635, allocations: 109.5 kB / 0.52 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.484e-05/0.3635, allocations: 9.797 kB / 0.52 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.3637, allocations: 11.5 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.399e-05/0.3637, allocations: 19.61 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.3638, allocations: 10.72 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002608/0.364, allocations: 213.1 kB / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.364, allocations: 1.469 kB / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004336/0.3645, allocations: 78.3 kB / 0.5203 GB, free: 12.65 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 (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.002417/0.3669, allocations: 1.3 MB / 0.5216 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005811/0.3675, allocations: 249.2 kB / 0.5218 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3675, allocations: 0.625 kB / 0.5218 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.3677, allocations: 127.8 kB / 0.5219 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.3683, allocations: 57.59 kB / 0.522 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004053/0.3723, allocations: 3.065 MB / 0.525 GB, free: 9.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.3728, allocations: 0.7862 MB / 0.5257 GB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002469/0.3731, allocations: 88.95 kB / 0.5258 GB, free: 8.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.3733, allocations: 104.4 kB / 0.5259 GB, free: 8.773 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3733, allocations: 0 / 0.5259 GB, free: 8.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.4036, allocations: 6.922 MB / 0.5327 GB, free: 6.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.211/8.614, allocations: 21.09 kB / 0.5327 GB, free: 6.543 MB / 398.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