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: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001121/0.001121, allocations: 175.1 kB / 18.66 MB, free: 4.449 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.331/1.331, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1901/0.1901, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001587, allocations: 71.89 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3633, allocations: 58.05 MB / 0.5048 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004591/0.3679, allocations: 3.616 MB / 0.5083 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002384/0.3703, allocations: 1.801 MB / 0.51 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.3705, allocations: 9.75 kB / 0.5101 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009117/0.3714, allocations: 239.1 kB / 0.5103 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000693/0.3721, allocations: 256.3 kB / 0.5105 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000671/0.3728, allocations: 214.9 kB / 0.5107 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005788/0.3734, allocations: 440.4 kB / 0.5112 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003484/0.3738, allocations: 182.9 kB / 0.5113 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004149/0.3742, allocations: 193 kB / 0.5115 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.3745, allocations: 174.7 kB / 0.5117 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.3745, allocations: 31.19 kB / 0.5117 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006023/0.3751, allocations: 323.2 kB / 0.512 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3753, allocations: 113.9 kB / 0.5121 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3754, allocations: 149.7 kB / 0.5123 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006952/0.3761, allocations: 0.5124 MB / 0.5128 GB, free: 2.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3761, allocations: 0.75 kB / 0.5128 GB, free: 2.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3761, allocations: 1.125 kB / 0.5128 GB, free: 2.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3761, allocations: 0 / 0.5128 GB, free: 2.742 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.000817/0.377, allocations: 0.633 MB / 0.5134 GB, free: 2.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.377, allocations: 13.42 kB / 0.5134 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007804/0.3778, allocations: 91.41 kB / 0.5135 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.3783, allocations: 372.8 kB / 0.5138 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.3783, allocations: 16.91 kB / 0.5139 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.002e-05/0.3783, allocations: 28.42 kB / 0.5139 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005623/0.3789, allocations: 353.6 kB / 0.5142 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.3789, allocations: 2.281 kB / 0.5142 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.379, allocations: 5.281 kB / 0.5142 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-05/0.379, allocations: 18.67 kB / 0.5142 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006181/0.3796, allocations: 391.2 kB / 0.5146 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.3813, allocations: 1.55 MB / 0.5161 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.3819, allocations: 314.3 kB / 0.5164 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.3821, allocations: 110.3 kB / 0.5165 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.3821, allocations: 6.75 kB / 0.5165 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.3824, allocations: 205.4 kB / 0.5167 GB, free: 16 kB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.3824, allocations: 0 / 0.5167 GB, free: 16 kB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008586/0.3833, allocations: 384.4 kB / 0.5171 GB, free: 15.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/0.3834, allocations: 132.6 kB / 0.5172 GB, free: 15.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003868/0.3838, allocations: 294.9 kB / 0.5175 GB, free: 15.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.3838, allocations: 34.42 kB / 0.5175 GB, free: 15.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.384, allocations: 174.2 kB / 0.5177 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.123e-05/0.3841, allocations: 79.89 kB / 0.5178 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3842, allocations: 61.36 kB / 0.5178 GB, free: 15.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3843, allocations: 344 kB / 0.5182 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.3846, allocations: 92.98 kB / 0.5183 GB, free: 14.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.3849, allocations: 182.6 kB / 0.5184 GB, free: 14.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005099/0.3854, allocations: 306.7 kB / 0.5187 GB, free: 14.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3854, allocations: 1.156 kB / 0.5187 GB, free: 14.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006133/0.386, allocations: 357.3 kB / 0.5191 GB, free: 14.4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.386, allocations: 6.094 kB / 0.5191 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3861, allocations: 6.688 kB / 0.5191 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3861, allocations: 4.25 kB / 0.5191 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.3863, allocations: 61.53 kB / 0.5191 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.3864, allocations: 5 kB / 0.5192 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.3865, allocations: 28.08 kB / 0.5192 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.3865, allocations: 16.28 kB / 0.5192 GB, free: 14.37 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.0002189/0.3868, allocations: 182 kB / 0.5194 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.3868, allocations: 26.16 kB / 0.5194 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000621/0.3875, allocations: 329.2 kB / 0.5197 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3875, allocations: 3.5 kB / 0.5197 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3875, allocations: 1.188 kB / 0.5197 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3875, allocations: 5.344 kB / 0.5197 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.3886, allocations: 0.7506 MB / 0.5204 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.3886, allocations: 1.156 kB / 0.5205 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.3888, allocations: 43.59 kB / 0.5205 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3888, allocations: 5.125 kB / 0.5205 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.3888, allocations: 14.23 kB / 0.5205 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3888, allocations: 5.094 kB / 0.5205 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3888, allocations: 1.641 kB / 0.5205 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005674/0.3894, allocations: 407.1 kB / 0.5209 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.147e-05/0.3895, allocations: 107.1 kB / 0.521 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.942e-05/0.3896, allocations: 16.41 kB / 0.521 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.3897, allocations: 7.844 kB / 0.521 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.3898, allocations: 23.72 kB / 0.5211 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.3898, allocations: 9.688 kB / 0.5211 GB, free: 13.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.39, allocations: 214.7 kB / 0.5213 GB, free: 13.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3901, allocations: 0 / 0.5213 GB, free: 13.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004047/0.3905, allocations: 78.88 kB / 0.5213 GB, free: 13.06 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.001036/0.3915, allocations: 466.4 kB / 0.5218 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004844/0.392, allocations: 246.9 kB / 0.522 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.392, allocations: 2.094 kB / 0.522 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.3922, allocations: 122.3 kB / 0.5221 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.3927, allocations: 67.5 kB / 0.5222 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009488/0.3937, allocations: 0.6289 MB / 0.5228 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.3941, allocations: 0.7959 MB / 0.5236 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.3942, allocations: 36.94 kB / 0.5236 GB, free: 11.58 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3942, allocations: 0 / 0.5236 GB, free: 11.58 MB / 398.1 MB Notification: Performance of Templates: time 0.008862/0.403, allocations: 4.545 MB / 0.5281 GB, free: 10.68 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/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