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.001253/0.001253, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001348/0.001348, allocations: 195 kB / 18 MB, free: 5.074 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.294/1.294, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1812/0.1812, allocations: 38.05 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.84 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3519, allocations: 58.07 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.00496/0.3569, allocations: 3.602 MB / 0.5071 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.3592, allocations: 1.804 MB / 0.5089 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.3594, allocations: 13.34 kB / 0.5089 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008127/0.3602, allocations: 233.3 kB / 0.5091 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005855/0.3608, allocations: 262.6 kB / 0.5094 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.3614, allocations: 215 kB / 0.5096 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004644/0.3618, allocations: 436.6 kB / 0.51 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003222/0.3622, allocations: 188.6 kB / 0.5102 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.3626, allocations: 194.1 kB / 0.5104 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.3628, allocations: 177.1 kB / 0.5105 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.3629, allocations: 26.91 kB / 0.5106 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005241/0.3634, allocations: 324.2 kB / 0.5109 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.3635, allocations: 113.4 kB / 0.511 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.3637, allocations: 149.2 kB / 0.5111 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00069/0.3644, allocations: 0.5158 MB / 0.5116 GB, free: 2.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3644, allocations: 0 / 0.5116 GB, free: 2.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3644, allocations: 0 / 0.5116 GB, free: 2.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3644, allocations: 5.219 kB / 0.5116 GB, free: 2.395 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.0008099/0.3652, allocations: 0.638 MB / 0.5123 GB, free: 1.844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.3653, allocations: 14.61 kB / 0.5123 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.979e-05/0.3653, allocations: 59.72 kB / 0.5123 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007624/0.3661, allocations: 90.73 kB / 0.5124 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005224/0.3666, allocations: 378.4 kB / 0.5128 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.3666, allocations: 12.53 kB / 0.5128 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.3667, allocations: 20.02 kB / 0.5128 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.3673, allocations: 357.2 kB / 0.5131 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3673, allocations: 9.031 kB / 0.5132 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.3673, allocations: 11.08 kB / 0.5132 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.3674, allocations: 13.84 kB / 0.5132 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006255/0.368, allocations: 389.2 kB / 0.5135 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.37, allocations: 1.545 MB / 0.5151 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006994/0.3707, allocations: 322.6 kB / 0.5154 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.3709, allocations: 106 kB / 0.5155 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.3709, allocations: 10.53 kB / 0.5155 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003672/0.3713, allocations: 202.1 kB / 0.5157 GB, free: 15.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.294e-06/0.3713, allocations: 0.9688 kB / 0.5157 GB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007904/0.3721, allocations: 384.4 kB / 0.516 GB, free: 15.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/0.3722, allocations: 132.3 kB / 0.5162 GB, free: 15.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003546/0.3726, allocations: 293.8 kB / 0.5164 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.3726, allocations: 33.5 kB / 0.5165 GB, free: 15.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.3728, allocations: 183.5 kB / 0.5167 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.902e-05/0.3729, allocations: 88.31 kB / 0.5167 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.373, allocations: 57.8 kB / 0.5168 GB, free: 14.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3731, allocations: 340 kB / 0.5171 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.3733, allocations: 100.8 kB / 0.5172 GB, free: 14.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.3736, allocations: 187.5 kB / 0.5174 GB, free: 14.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004837/0.374, allocations: 293.8 kB / 0.5177 GB, free: 14.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3741, allocations: 0.6875 kB / 0.5177 GB, free: 14.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007329/0.3748, allocations: 365.6 kB / 0.518 GB, free: 13.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3748, allocations: 7 kB / 0.518 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3748, allocations: 2.281 kB / 0.518 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.3749, allocations: 4.625 kB / 0.518 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002736/0.3751, allocations: 61.78 kB / 0.5181 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.3752, allocations: 8.266 kB / 0.5181 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.3753, allocations: 29.03 kB / 0.5181 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.3754, allocations: 15.48 kB / 0.5181 GB, free: 13.95 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.0001946/0.3756, allocations: 183.7 kB / 0.5183 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.23e-05/0.3756, allocations: 30.03 kB / 0.5183 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005708/0.3762, allocations: 316.7 kB / 0.5186 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3762, allocations: 3.406 kB / 0.5186 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3762, allocations: 5.125 kB / 0.5187 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3763, allocations: 2.578 kB / 0.5187 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.3773, allocations: 0.7557 MB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3773, allocations: 1.125 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.3775, allocations: 42.72 kB / 0.5194 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.3775, allocations: 6.156 kB / 0.5194 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.3775, allocations: 10.06 kB / 0.5195 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.3775, allocations: 5.688 kB / 0.5195 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3775, allocations: 1.156 kB / 0.5195 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000563/0.3781, allocations: 415.4 kB / 0.5199 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.392e-05/0.3782, allocations: 110 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.758e-05/0.3783, allocations: 13.77 kB / 0.52 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.3784, allocations: 7.297 kB / 0.52 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.3785, allocations: 19.94 kB / 0.52 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.3785, allocations: 9.422 kB / 0.52 GB, free: 12.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.3788, allocations: 214.7 kB / 0.5202 GB, free: 12.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3788, allocations: 0 / 0.5202 GB, free: 12.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004091/0.3792, allocations: 79.34 kB / 0.5203 GB, free: 12.64 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.001773/0.381, allocations: 1.304 MB / 0.5216 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004899/0.3815, allocations: 247.4 kB / 0.5218 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3815, allocations: 0.625 kB / 0.5218 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.3817, allocations: 126.7 kB / 0.5219 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004765/0.3822, allocations: 56.05 kB / 0.522 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/0.3858, allocations: 3.067 MB / 0.525 GB, free: 9.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.3861, allocations: 0.7896 MB / 0.5257 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002588/0.3864, allocations: 87.56 kB / 0.5258 GB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.3866, allocations: 100.2 kB / 0.5259 GB, free: 8.762 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3866, allocations: 0 / 0.5259 GB, free: 8.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0302/0.4168, allocations: 6.93 MB / 0.5327 GB, free: 6.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.888/8.305, allocations: 20.78 kB / 0.5327 GB, free: 6.535 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