Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 183.8 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.206/1.206, allocations: 225.7 MB / 243.2 MB, free: 10.24 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007096/0.0007098, allocations: 87.98 kB / 294.4 MB, free: 9.746 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2921/0.2921, allocations: 38.19 MB / 383.7 MB, free: 40.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002777, allocations: 11.98 kB / 453.6 MB, free: 8.852 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2669, allocations: 59.15 MB / 0.5007 GB, free: 39.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003264/0.2702, allocations: 3.443 MB / 0.504 GB, free: 38.76 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.2724, allocations: 2.672 MB / 0.5067 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.2726, allocations: 11.44 kB / 0.5067 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002841/0.2729, allocations: 62.12 kB / 0.5067 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004383/0.2733, allocations: 239.4 kB / 0.507 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.2737, allocations: 184.3 kB / 0.5071 GB, free: 36.88 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/0.2742, allocations: 0.5782 MB / 0.5077 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005228/0.2748, allocations: 0.4946 MB / 0.5082 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.2751, allocations: 151.6 kB / 0.5083 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.2753, allocations: 165 kB / 0.5085 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.052e-05/0.2753, allocations: 11.75 kB / 0.5085 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004845/0.2758, allocations: 350.6 kB / 0.5088 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.2759, allocations: 90.17 kB / 0.5089 GB, free: 36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.276, allocations: 159.8 kB / 0.5091 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005475/0.2766, allocations: 0.5121 MB / 0.5096 GB, free: 35.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2766, allocations: 0.5625 kB / 0.5096 GB, free: 35.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2766, allocations: 0 / 0.5096 GB, free: 35.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2766, allocations: 2.906 kB / 0.5096 GB, free: 35.72 MB / 378.7 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.0005863/0.2772, allocations: 0.5604 MB / 0.5101 GB, free: 35.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.2772, allocations: 11.44 kB / 0.5101 GB, free: 35.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000606/0.2779, allocations: 92.55 kB / 0.5102 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.2783, allocations: 368.1 kB / 0.5106 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.2783, allocations: 16.83 kB / 0.5106 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.006e-05/0.2783, allocations: 20.2 kB / 0.5106 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005163/0.2789, allocations: 359.8 kB / 0.5109 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2789, allocations: 0 / 0.5109 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.2789, allocations: 7.031 kB / 0.5109 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/0.2789, allocations: 20.48 kB / 0.511 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.2795, allocations: 391.9 kB / 0.5113 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.2808, allocations: 1.544 MB / 0.5128 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004795/0.2813, allocations: 319.2 kB / 0.5132 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.2815, allocations: 116.3 kB / 0.5133 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.2815, allocations: 9.875 kB / 0.5133 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.2817, allocations: 198.7 kB / 0.5135 GB, free: 33.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2818, allocations: 0 / 0.5135 GB, free: 33.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005778/0.2823, allocations: 383.9 kB / 0.5138 GB, free: 32.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.2824, allocations: 132.3 kB / 0.514 GB, free: 32.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.2826, allocations: 294.2 kB / 0.5142 GB, free: 32.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.2826, allocations: 32.67 kB / 0.5143 GB, free: 32.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.239e-05/0.2827, allocations: 180.9 kB / 0.5144 GB, free: 32.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.241e-05/0.2828, allocations: 84.06 kB / 0.5145 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.2828, allocations: 4 kB / 0.5145 GB, free: 32.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.202e-05/0.2828, allocations: 344.8 kB / 0.5149 GB, free: 32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.283, allocations: 96.56 kB / 0.5149 GB, free: 31.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.2832, allocations: 175.8 kB / 0.5151 GB, free: 31.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003039/0.2835, allocations: 305.8 kB / 0.5154 GB, free: 31.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2835, allocations: 2.812 kB / 0.5154 GB, free: 31.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004345/0.2839, allocations: 348.7 kB / 0.5157 GB, free: 31.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2839, allocations: 5.906 kB / 0.5157 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2839, allocations: 3.188 kB / 0.5157 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.284, allocations: 10.27 kB / 0.5158 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.2842, allocations: 60.89 kB / 0.5158 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2842, allocations: 2.875 kB / 0.5158 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.2843, allocations: 31.67 kB / 0.5158 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.2844, allocations: 15.38 kB / 0.5159 GB, free: 31.45 MB / 378.7 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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,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.0001328/0.2845, allocations: 181 kB / 0.516 GB, free: 31.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.2845, allocations: 26.97 kB / 0.5161 GB, free: 31.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004557/0.285, allocations: 322.8 kB / 0.5164 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.285, allocations: 2.844 kB / 0.5164 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.285, allocations: 0 / 0.5164 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.285, allocations: 10.03 kB / 0.5164 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007055/0.2857, allocations: 0.7392 MB / 0.5171 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2858, allocations: 0 / 0.5171 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.2859, allocations: 42.59 kB / 0.5171 GB, free: 30.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.2859, allocations: 10.47 kB / 0.5172 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.2859, allocations: 10.59 kB / 0.5172 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2859, allocations: 2.531 kB / 0.5172 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2859, allocations: 2.812 kB / 0.5172 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003859/0.2863, allocations: 408.3 kB / 0.5176 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.2864, allocations: 109.5 kB / 0.5177 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.025e-05/0.2865, allocations: 22.58 kB / 0.5177 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.2866, allocations: 7.094 kB / 0.5177 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.2866, allocations: 19.69 kB / 0.5177 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.2867, allocations: 8.062 kB / 0.5177 GB, free: 30.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001755/0.2868, allocations: 214.7 kB / 0.5179 GB, free: 30.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2869, allocations: 1.219 kB / 0.5179 GB, free: 30.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003413/0.2872, allocations: 68.78 kB / 0.518 GB, free: 30.15 MB / 378.7 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.0009592/0.2882, allocations: 0.5418 MB / 0.5185 GB, free: 29.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003971/0.2886, allocations: 236.3 kB / 0.5187 GB, free: 29.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2886, allocations: 1.625 kB / 0.5187 GB, free: 29.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.2888, allocations: 126.3 kB / 0.5189 GB, free: 29.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.2892, allocations: 61.17 kB / 0.5189 GB, free: 29.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007732/0.2899, allocations: 0.7094 MB / 0.5196 GB, free: 29.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.2901, allocations: 0.7974 MB / 0.5204 GB, free: 28.53 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001819/0.2903, allocations: 83.78 kB / 0.5205 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.581e-05/0.2904, allocations: 39.44 kB / 0.5205 GB, free: 28.51 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2904, allocations: 0 / 0.5205 GB, free: 28.51 MB / 378.7 MB Notification: Performance of Templates: time 0.005626/0.2961, allocations: 3.388 MB / 0.5238 GB, free: 28.2 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches