Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") translateModel(PowerSystems.Examples.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000825/0.0008251, allocations: 179.6 kB / 16.71 MB, free: 5.09 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.205/1.205, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0007066/0.0007065, allocations: 97.94 kB / 294.4 MB, free: 9.488 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.2641/0.2641, allocations: 38.18 MB / 383.7 MB, free: 40.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.000304, allocations: 8 kB / 453.5 MB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2704, allocations: 59.15 MB / 0.5007 GB, free: 38.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.003554/0.274, allocations: 3.282 MB / 0.5039 GB, free: 38.74 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.2762, allocations: 2.637 MB / 0.5065 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.2765, allocations: 10.44 kB / 0.5065 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.2767, allocations: 30.36 kB / 0.5065 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007023/0.2774, allocations: 265.8 kB / 0.5068 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.2777, allocations: 118.9 kB / 0.5069 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006545/0.2784, allocations: 0.5626 MB / 0.5074 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005925/0.279, allocations: 470.8 kB / 0.5079 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.2793, allocations: 123.3 kB / 0.508 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.2796, allocations: 148 kB / 0.5081 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.369e-05/0.2796, allocations: 8.031 kB / 0.5081 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006472/0.2802, allocations: 404.4 kB / 0.5085 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.2804, allocations: 96.92 kB / 0.5086 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.2805, allocations: 127.3 kB / 0.5087 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006322/0.2812, allocations: 363.6 kB / 0.5091 GB, free: 35.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2812, allocations: 0 / 0.5091 GB, free: 35.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2812, allocations: 1.094 kB / 0.5091 GB, free: 35.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.2812, allocations: 0 / 0.5091 GB, free: 35.83 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006011/0.2818, allocations: 483.7 kB / 0.5095 GB, free: 35.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.2819, allocations: 9.562 kB / 0.5095 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000909/0.2828, allocations: 105.3 kB / 0.5096 GB, free: 35.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.2831, allocations: 261.1 kB / 0.5099 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.2831, allocations: 11.59 kB / 0.5099 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.2831, allocations: 27.2 kB / 0.5099 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.2837, allocations: 315.1 kB / 0.5102 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2837, allocations: 6.75 kB / 0.5102 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.306e-05/0.2837, allocations: 6.719 kB / 0.5102 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.382e-05/0.2838, allocations: 22 kB / 0.5103 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004778/0.2842, allocations: 298.5 kB / 0.5106 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.2857, allocations: 1.294 MB / 0.5118 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.2859, allocations: 207.8 kB / 0.512 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.952e-05/0.286, allocations: 42.75 kB / 0.5121 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.286, allocations: 2.281 kB / 0.5121 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.286, allocations: 39.53 kB / 0.5121 GB, free: 33.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.286, allocations: 0 / 0.5121 GB, free: 33.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002432/0.2863, allocations: 139.1 kB / 0.5122 GB, free: 33.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.348e-05/0.2863, allocations: 77.11 kB / 0.5123 GB, free: 33.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.2865, allocations: 215.7 kB / 0.5125 GB, free: 33.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.897e-06/0.2865, allocations: 25.7 kB / 0.5125 GB, free: 33.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.2865, allocations: 173.5 kB / 0.5127 GB, free: 33.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.2866, allocations: 33.89 kB / 0.5127 GB, free: 33.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-06/0.2866, allocations: 6.844 kB / 0.5127 GB, free: 33.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.408e-05/0.2866, allocations: 326.3 kB / 0.513 GB, free: 32.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.347e-05/0.2867, allocations: 40.27 kB / 0.5131 GB, free: 32.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.503e-05/0.2868, allocations: 133.3 kB / 0.5132 GB, free: 32.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.2869, allocations: 197.2 kB / 0.5134 GB, free: 32.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2869, allocations: 0.5 kB / 0.5134 GB, free: 32.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002159/0.2872, allocations: 209.9 kB / 0.5136 GB, free: 32.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.2872, allocations: 8.031 kB / 0.5136 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2872, allocations: 6.562 kB / 0.5136 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2872, allocations: 3.281 kB / 0.5136 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.2874, allocations: 56.06 kB / 0.5137 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.2874, allocations: 5.75 kB / 0.5137 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.2875, allocations: 23.55 kB / 0.5137 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.2875, allocations: 9.812 kB / 0.5137 GB, free: 32.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 8.693e-05/0.2876, allocations: 160.5 kB / 0.5139 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.169e-05/0.2876, allocations: 16.5 kB / 0.5139 GB, free: 32.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.2878, allocations: 118.2 kB / 0.514 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2878, allocations: 2.844 kB / 0.514 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2878, allocations: 4 kB / 0.514 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.2878, allocations: 0 / 0.514 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004966/0.2883, allocations: 0.5711 MB / 0.5146 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2883, allocations: 2.906 kB / 0.5146 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.746e-05/0.2884, allocations: 20.86 kB / 0.5146 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2884, allocations: 6.562 kB / 0.5146 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.2884, allocations: 5.5 kB / 0.5146 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.2885, allocations: 2.875 kB / 0.5146 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2885, allocations: 2.656 kB / 0.5146 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.2886, allocations: 291.1 kB / 0.5149 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.2887, allocations: 101.8 kB / 0.515 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.2887, allocations: 10.34 kB / 0.515 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.2888, allocations: 3.031 kB / 0.515 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.12e-05/0.2888, allocations: 17.19 kB / 0.515 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.2889, allocations: 5.969 kB / 0.515 GB, free: 31.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.538e-05/0.2889, allocations: 157.5 kB / 0.5152 GB, free: 31.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.289, allocations: 0 / 0.5152 GB, free: 31.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002874/0.2892, allocations: 52.19 kB / 0.5152 GB, free: 31.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 7.557e-05/0.2893, allocations: 107.7 kB / 0.5153 GB, free: 31.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.2895, allocations: 115 kB / 0.5154 GB, free: 31.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2895, allocations: 4.25 kB / 0.5154 GB, free: 31.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.427e-05/0.2896, allocations: 49.16 kB / 0.5155 GB, free: 31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.2899, allocations: 30.12 kB / 0.5155 GB, free: 30.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000511/0.2905, allocations: 0.5318 MB / 0.516 GB, free: 30.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.2906, allocations: 0.7576 MB / 0.5168 GB, free: 29.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.924e-05/0.2907, allocations: 42.75 kB / 0.5168 GB, free: 29.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.2908, allocations: 19.66 kB / 0.5168 GB, free: 29.86 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.2908, allocations: 0 / 0.5168 GB, free: 29.86 MB / 378.7 MB Notification: Performance of Templates: time 0.003036/0.2938, allocations: 1.135 MB / 0.5179 GB, free: 29.75 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches