Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008376/0.0008376, allocations: 177.9 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.248/1.248, allocations: 225.7 MB / 243.2 MB, free: 8.484 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.0007559/0.0007561, allocations: 95.72 kB / 294.4 MB, free: 9.496 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.2702/0.2702, allocations: 38.18 MB / 383.7 MB, free: 40.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002821/0.0002822, allocations: 8 kB / 453.5 MB, free: 8.773 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2698, allocations: 59.14 MB / 0.5007 GB, free: 39.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004005/0.2738, allocations: 4.574 MB / 0.5051 GB, free: 38.58 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.2758, allocations: 2.385 MB / 0.5075 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001891/0.276, allocations: 27.09 kB / 0.5075 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.2762, allocations: 54.14 kB / 0.5075 GB, free: 36.53 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004601/0.2767, allocations: 237.2 kB / 0.5078 GB, free: 36.4 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.2772, allocations: 224.4 kB / 0.508 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007101/0.2779, allocations: 0.8572 MB / 0.5088 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007199/0.2786, allocations: 0.7682 MB / 0.5096 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.2789, allocations: 208 kB / 0.5098 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004139/0.2793, allocations: 350.6 kB / 0.5101 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.146e-05/0.2794, allocations: 21.28 kB / 0.5101 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003848/0.2798, allocations: 234.8 kB / 0.5104 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001985/0.28, allocations: 220.1 kB / 0.5106 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002139/0.2802, allocations: 252.2 kB / 0.5108 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004852/0.2807, allocations: 0.6387 MB / 0.5114 GB, free: 34.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2807, allocations: 0.625 kB / 0.5114 GB, free: 34.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2807, allocations: 0 / 0.5114 GB, free: 34.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.2807, allocations: 0.625 kB / 0.5114 GB, free: 34.78 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.0008975/0.2816, allocations: 0.6888 MB / 0.5121 GB, free: 34.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.967e-05/0.2817, allocations: 14.66 kB / 0.5121 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004576/0.2821, allocations: 86.58 kB / 0.5122 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/0.2826, allocations: 404.4 kB / 0.5126 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.2826, allocations: 35.52 kB / 0.5126 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.905e-05/0.2827, allocations: 44.09 kB / 0.5127 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.2834, allocations: 0.6827 MB / 0.5133 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.2835, allocations: 0 / 0.5133 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.2835, allocations: 17.81 kB / 0.5133 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.2837, allocations: 46.97 kB / 0.5134 GB, free: 33.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007545/0.2844, allocations: 0.6706 MB / 0.514 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.2869, allocations: 2.52 MB / 0.5165 GB, free: 31.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004488/0.2874, allocations: 345.4 kB / 0.5168 GB, free: 31.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002568/0.2876, allocations: 225.8 kB / 0.517 GB, free: 31.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.2877, allocations: 12.05 kB / 0.5171 GB, free: 31.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.46e-05/0.2877, allocations: 36.88 kB / 0.5171 GB, free: 31.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.683e-06/0.2877, allocations: 0 / 0.5171 GB, free: 31.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001581/0.2893, allocations: 1.355 MB / 0.5184 GB, free: 30.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.2893, allocations: 80.45 kB / 0.5185 GB, free: 30.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.2896, allocations: 297.3 kB / 0.5188 GB, free: 30.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.2896, allocations: 32.64 kB / 0.5188 GB, free: 30.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.454e-05/0.2897, allocations: 250.4 kB / 0.519 GB, free: 30.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.38e-05/0.2898, allocations: 152.1 kB / 0.5192 GB, free: 30.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.908e-05/0.2898, allocations: 10.94 kB / 0.5192 GB, free: 30.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.534e-05/0.2899, allocations: 343 kB / 0.5195 GB, free: 29.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.2901, allocations: 206.1 kB / 0.5197 GB, free: 29.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/0.2904, allocations: 363.8 kB / 0.5201 GB, free: 29.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005214/0.2909, allocations: 0.6087 MB / 0.5207 GB, free: 29.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2909, allocations: 2.906 kB / 0.5207 GB, free: 29.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006683/0.2916, allocations: 0.6234 MB / 0.5213 GB, free: 28.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2916, allocations: 8.594 kB / 0.5213 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2916, allocations: 9.719 kB / 0.5213 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2917, allocations: 5.562 kB / 0.5213 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.292, allocations: 118.8 kB / 0.5214 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.978e-06/0.292, allocations: 11.56 kB / 0.5214 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.2923, allocations: 24.97 kB / 0.5215 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.739e-05/0.2923, allocations: 21.72 kB / 0.5215 GB, free: 28.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0001549/0.2925, allocations: 225.4 kB / 0.5217 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.269e-05/0.2925, allocations: 36.88 kB / 0.5217 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005728/0.2931, allocations: 496.3 kB / 0.5222 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.2931, allocations: 11.34 kB / 0.5222 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.2931, allocations: 0 / 0.5222 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.2932, allocations: 3.094 kB / 0.5222 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/0.2944, allocations: 1.102 MB / 0.5233 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2945, allocations: 3 kB / 0.5233 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.2948, allocations: 70.97 kB / 0.5234 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.2948, allocations: 2.875 kB / 0.5234 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.2948, allocations: 6.5 kB / 0.5234 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.2948, allocations: 6.375 kB / 0.5234 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2948, allocations: 7 kB / 0.5234 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007733/0.2956, allocations: 0.8327 MB / 0.5242 GB, free: 27.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/0.2957, allocations: 106.6 kB / 0.5243 GB, free: 27.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.2957, allocations: 10.58 kB / 0.5243 GB, free: 27.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.2959, allocations: 17.7 kB / 0.5243 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.296, allocations: 26.89 kB / 0.5243 GB, free: 27.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.296, allocations: 9.766 kB / 0.5244 GB, free: 27.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001377/0.2961, allocations: 208.7 kB / 0.5246 GB, free: 27.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2962, allocations: 0 / 0.5246 GB, free: 27.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003802/0.2965, allocations: 114.7 kB / 0.5247 GB, free: 27.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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 0.0001667/0.2967, allocations: 153.1 kB / 0.5248 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005161/0.2972, allocations: 491.1 kB / 0.5253 GB, free: 26.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2972, allocations: 0 / 0.5253 GB, free: 26.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.2975, allocations: 225.4 kB / 0.5255 GB, free: 26.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.298, allocations: 64.73 kB / 0.5256 GB, free: 26.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.2993, allocations: 1.388 MB / 0.5269 GB, free: 25.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.2995, allocations: 0.8734 MB / 0.5278 GB, free: 25.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002933/0.2998, allocations: 121.9 kB / 0.5279 GB, free: 25.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.554e-05/0.2999, allocations: 42.2 kB / 0.5279 GB, free: 25.12 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2999, allocations: 0 / 0.5279 GB, free: 25.12 MB / 378.7 MB Notification: Performance of Templates: time 0.006448/0.3064, allocations: 3.576 MB / 0.5314 GB, free: 24.84 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches