Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008033/0.0008033, allocations: 179 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.228/1.228, allocations: 225.7 MB / 243.2 MB, free: 8.508 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.0008182/0.0008183, allocations: 91.14 kB / 294.4 MB, free: 9.52 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.2707/0.2707, allocations: 38.18 MB / 383.7 MB, free: 40.25 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002932, allocations: 8 kB / 453.5 MB, free: 8.766 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2625, allocations: 59.15 MB / 0.5007 GB, free: 39.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.0055/0.268, allocations: 6.241 MB / 0.5068 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.2704, allocations: 1.726 MB / 0.5085 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003363/0.2707, allocations: 44.75 kB / 0.5085 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.2709, allocations: 57.38 kB / 0.5086 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005906/0.2715, allocations: 277 kB / 0.5088 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.2718, allocations: 120.1 kB / 0.5089 GB, free: 35.85 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008533/0.2726, allocations: 0.9532 MB / 0.5099 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.2729, allocations: 149.2 kB / 0.51 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003384/0.2732, allocations: 268.8 kB / 0.5103 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004927/0.2737, allocations: 324.5 kB / 0.5106 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/0.2738, allocations: 18.16 kB / 0.5106 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.14e-05/0.2739, allocations: 19.22 kB / 0.5106 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.274, allocations: 152.5 kB / 0.5108 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002238/0.2743, allocations: 244.7 kB / 0.511 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.2747, allocations: 467.1 kB / 0.5114 GB, free: 34.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.2747, allocations: 0.6562 kB / 0.5114 GB, free: 34.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2747, allocations: 0.9375 kB / 0.5114 GB, free: 34.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2747, allocations: 0.875 kB / 0.5114 GB, free: 34.86 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0009494/0.2757, allocations: 0.7152 MB / 0.5121 GB, free: 34.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.2757, allocations: 9.25 kB / 0.5121 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.923e-05/0.2758, allocations: 53.88 kB / 0.5122 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.2762, allocations: 428.5 kB / 0.5126 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.2763, allocations: 29.56 kB / 0.5126 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.696e-05/0.2763, allocations: 43 kB / 0.5127 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005116/0.2769, allocations: 448.9 kB / 0.5131 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2769, allocations: 4.031 kB / 0.5131 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.2769, allocations: 14.81 kB / 0.5131 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.2769, allocations: 8.594 kB / 0.5131 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.2773, allocations: 311 kB / 0.5134 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.2788, allocations: 1.775 MB / 0.5152 GB, free: 32.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.2789, allocations: 140 kB / 0.5153 GB, free: 32.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.112e-05/0.279, allocations: 65.31 kB / 0.5154 GB, free: 32.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.279, allocations: 4 kB / 0.5154 GB, free: 32.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.2791, allocations: 40.42 kB / 0.5154 GB, free: 32.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.2791, allocations: 0 / 0.5154 GB, free: 32.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.000744/0.2798, allocations: 0.6025 MB / 0.516 GB, free: 31.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.2799, allocations: 109.6 kB / 0.5161 GB, free: 31.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.2802, allocations: 370 kB / 0.5164 GB, free: 31.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.2802, allocations: 25.7 kB / 0.5165 GB, free: 31.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.2803, allocations: 279.2 kB / 0.5167 GB, free: 30.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.2803, allocations: 58.06 kB / 0.5168 GB, free: 30.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.057e-06/0.2804, allocations: 6.562 kB / 0.5168 GB, free: 30.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.76e-05/0.2804, allocations: 344.4 kB / 0.5171 GB, free: 30.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.425e-05/0.2805, allocations: 47.61 kB / 0.5172 GB, free: 30.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.2806, allocations: 199.3 kB / 0.5174 GB, free: 30.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.2809, allocations: 268.5 kB / 0.5176 GB, free: 30.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2809, allocations: 1.812 kB / 0.5176 GB, free: 30.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003642/0.2813, allocations: 285.5 kB / 0.5179 GB, free: 29.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.2813, allocations: 11.03 kB / 0.5179 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.2813, allocations: 6.094 kB / 0.5179 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.2814, allocations: 6.094 kB / 0.5179 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.2816, allocations: 76.81 kB / 0.518 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.2816, allocations: 7.156 kB / 0.518 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.2818, allocations: 14.22 kB / 0.518 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.2818, allocations: 15.47 kB / 0.518 GB, free: 29.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0001408/0.282, allocations: 190.8 kB / 0.5182 GB, free: 29.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.205e-05/0.282, allocations: 36.16 kB / 0.5182 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002441/0.2823, allocations: 165.5 kB / 0.5184 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2823, allocations: 7.031 kB / 0.5184 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2823, allocations: 0 / 0.5184 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2823, allocations: 3.422 kB / 0.5184 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005417/0.2829, allocations: 0.5327 MB / 0.5189 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2829, allocations: 1.469 kB / 0.5189 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.2831, allocations: 35.02 kB / 0.519 GB, free: 29.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.2831, allocations: 1.406 kB / 0.519 GB, free: 29.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.2831, allocations: 6.75 kB / 0.519 GB, free: 29.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2831, allocations: 2.75 kB / 0.519 GB, free: 29.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2831, allocations: 15.11 kB / 0.519 GB, free: 29.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003253/0.2834, allocations: 399.2 kB / 0.5194 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.103e-05/0.2835, allocations: 108.8 kB / 0.5195 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.2835, allocations: 7.031 kB / 0.5195 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.2837, allocations: 7.938 kB / 0.5195 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.468e-05/0.2837, allocations: 13.31 kB / 0.5195 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.2837, allocations: 5.781 kB / 0.5195 GB, free: 28.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001749/0.2839, allocations: 253 kB / 0.5197 GB, free: 28.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2839, allocations: 0 / 0.5197 GB, free: 28.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003444/0.2843, allocations: 71.16 kB / 0.5198 GB, free: 28.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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 8.333e-05/0.2844, allocations: 106.3 kB / 0.5199 GB, free: 28.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002131/0.2846, allocations: 153.2 kB / 0.5201 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2846, allocations: 0 / 0.5201 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.311e-05/0.2847, allocations: 57.67 kB / 0.5201 GB, free: 28.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006269/0.2853, allocations: 85.58 kB / 0.5202 GB, free: 28.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.2864, allocations: 1.106 MB / 0.5213 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.2867, allocations: 0.8376 MB / 0.5221 GB, free: 27.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001563/0.2868, allocations: 56.06 kB / 0.5221 GB, free: 27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.2869, allocations: 27.62 kB / 0.5222 GB, free: 26.99 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2869, allocations: 0 / 0.5222 GB, free: 26.99 MB / 378.7 MB Notification: Performance of Templates: time 0.005619/0.2925, allocations: 3.069 MB / 0.5252 GB, free: 26.73 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches