Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008216/0.0008216, 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.171/1.171, allocations: 225.7 MB / 243.2 MB, free: 8.457 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.0007543/0.0007543, allocations: 93.64 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.2802/0.2802, allocations: 38.19 MB / 383.7 MB, free: 40.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.000302, allocations: 15.98 kB / 453.5 MB, free: 8.766 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.258, allocations: 59.15 MB / 0.5007 GB, free: 38.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004274/0.2623, allocations: 4.823 MB / 0.5054 GB, free: 38.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003151/0.2655, allocations: 4.837 MB / 0.5101 GB, free: 33.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002709/0.2658, allocations: 19.44 kB / 0.5101 GB, free: 33.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.266, allocations: 70.98 kB / 0.5102 GB, free: 33.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009447/0.267, allocations: 495.7 kB / 0.5107 GB, free: 33.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005014/0.2675, allocations: 250.9 kB / 0.5109 GB, free: 33.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009959/0.2685, allocations: 1.129 MB / 0.512 GB, free: 32.92 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009116/0.2694, allocations: 0.8626 MB / 0.5129 GB, free: 32.22 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003362/0.2698, allocations: 261.4 kB / 0.5131 GB, free: 32.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003482/0.2701, allocations: 323.7 kB / 0.5134 GB, free: 31.99 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.207e-05/0.2702, allocations: 19.72 kB / 0.5134 GB, free: 31.99 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008916/0.2711, allocations: 0.7307 MB / 0.5141 GB, free: 31.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.2712, allocations: 180.9 kB / 0.5143 GB, free: 31.67 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.2714, allocations: 252.8 kB / 0.5146 GB, free: 31.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006694/0.2721, allocations: 0.7684 MB / 0.5153 GB, free: 31.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2721, allocations: 0 / 0.5153 GB, free: 31.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2721, allocations: 0.5312 kB / 0.5153 GB, free: 31.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2721, allocations: 1.406 kB / 0.5153 GB, free: 31.28 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0007277/0.2728, allocations: 0.6937 MB / 0.516 GB, free: 30.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2729, allocations: 9.844 kB / 0.516 GB, free: 30.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.2742, allocations: 208.4 kB / 0.5162 GB, free: 30.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.2746, allocations: 360.1 kB / 0.5165 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.2746, allocations: 29.72 kB / 0.5166 GB, free: 30.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.71e-05/0.2747, allocations: 51.53 kB / 0.5166 GB, free: 30.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007368/0.2754, allocations: 0.6224 MB / 0.5172 GB, free: 30.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.2755, allocations: 6.719 kB / 0.5172 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.2755, allocations: 15.97 kB / 0.5173 GB, free: 30.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-05/0.2756, allocations: 29.27 kB / 0.5173 GB, free: 30.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007852/0.2764, allocations: 0.6066 MB / 0.5179 GB, free: 29.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.279, allocations: 2.258 MB / 0.5201 GB, free: 28.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004829/0.2795, allocations: 486.6 kB / 0.5205 GB, free: 28.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.2798, allocations: 240.1 kB / 0.5208 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.2798, allocations: 11.41 kB / 0.5208 GB, free: 28.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.2798, allocations: 38.56 kB / 0.5208 GB, free: 28.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.873e-06/0.2798, allocations: 2.906 kB / 0.5208 GB, free: 28.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.00277/0.2826, allocations: 1.698 MB / 0.5225 GB, free: 27.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.2826, allocations: 90.3 kB / 0.5226 GB, free: 27.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2829, allocations: 281.7 kB / 0.5228 GB, free: 26.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.2829, allocations: 33.7 kB / 0.5229 GB, free: 26.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.935e-05/0.283, allocations: 230.6 kB / 0.5231 GB, free: 26.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8e-05/0.2831, allocations: 148.8 kB / 0.5232 GB, free: 26.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.2831, allocations: 10.91 kB / 0.5232 GB, free: 26.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.545e-05/0.2832, allocations: 352.6 kB / 0.5236 GB, free: 26.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.2834, allocations: 179.4 kB / 0.5237 GB, free: 26.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.2837, allocations: 294.6 kB / 0.524 GB, free: 25.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004906/0.2842, allocations: 0.4932 MB / 0.5245 GB, free: 25.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2842, allocations: 0 / 0.5245 GB, free: 25.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009237/0.2851, allocations: 0.6796 MB / 0.5252 GB, free: 25.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2851, allocations: 5.625 kB / 0.5252 GB, free: 25.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.2851, allocations: 6.641 kB / 0.5252 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000512/0.2857, allocations: 176.3 kB / 0.5254 GB, free: 25.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003182/0.286, allocations: 92.36 kB / 0.5254 GB, free: 25.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/0.2885, allocations: 2.54 MB / 0.5279 GB, free: 23.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.2887, allocations: 20.88 kB / 0.5279 GB, free: 23.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.2887, allocations: 23.62 kB / 0.528 GB, free: 23.5 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000165/0.2889, allocations: 198.2 kB / 0.5282 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.289, allocations: 39.53 kB / 0.5282 GB, free: 23.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009331/0.2899, allocations: 0.6318 MB / 0.5288 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2899, allocations: 6.625 kB / 0.5288 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.2899, allocations: 0 / 0.5288 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.2899, allocations: 7.234 kB / 0.5288 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/0.2916, allocations: 1.34 MB / 0.5301 GB, free: 22.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.2916, allocations: 3.062 kB / 0.5301 GB, free: 22.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.292, allocations: 82 kB / 0.5302 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003832/0.2924, allocations: 141.2 kB / 0.5303 GB, free: 22.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.2924, allocations: 11.45 kB / 0.5304 GB, free: 22.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/0.2944, allocations: 2.316 MB / 0.5326 GB, free: 20.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2944, allocations: 0 / 0.5326 GB, free: 20.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.2955, allocations: 0.9476 MB / 0.5335 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.622e-05/0.2956, allocations: 116 kB / 0.5337 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.566e-05/0.2957, allocations: 7.156 kB / 0.5337 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.2959, allocations: 17.55 kB / 0.5337 GB, free: 19.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.6e-05/0.2959, allocations: 36.86 kB / 0.5337 GB, free: 19.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.296, allocations: 9.5 kB / 0.5337 GB, free: 19.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001345/0.2961, allocations: 204.9 kB / 0.5339 GB, free: 19.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2961, allocations: 0 / 0.5339 GB, free: 19.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004953/0.2966, allocations: 135.2 kB / 0.534 GB, free: 19.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 9.376e-05/0.2967, allocations: 117.5 kB / 0.5342 GB, free: 19.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009629/0.2977, allocations: 0.6696 MB / 0.5348 GB, free: 19.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2977, allocations: 0 / 0.5348 GB, free: 19.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000536/0.2982, allocations: 420.3 kB / 0.5352 GB, free: 19.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.2987, allocations: 68.8 kB / 0.5353 GB, free: 19.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.3001, allocations: 1.392 MB / 0.5366 GB, free: 18.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.3003, allocations: 0.8699 MB / 0.5375 GB, free: 17.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.3005, allocations: 74.44 kB / 0.5376 GB, free: 17.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.955e-05/0.3006, allocations: 37.11 kB / 0.5376 GB, free: 17.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3006, allocations: 192 / 0.5376 GB, free: 17.54 MB / 378.7 MB Notification: Performance of Templates: time 0.008268/0.3089, allocations: 5.26 MB / 0.5427 GB, free: 17.18 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches