Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008292/0.0008292, allocations: 175.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.221/1.221, allocations: 225.7 MB / 243.2 MB, free: 8.445 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.0007711/0.000771, allocations: 95.81 kB / 294.4 MB, free: 9.48 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.2671/0.2671, allocations: 38.18 MB / 383.7 MB, free: 40.25 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002872, allocations: 12.22 kB / 453.6 MB, free: 8.758 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2662, allocations: 59.15 MB / 0.5007 GB, free: 39.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.00704/0.2733, allocations: 7.971 MB / 0.5085 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004781/0.2781, allocations: 4.582 MB / 0.5129 GB, free: 32.36 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006287/0.2787, allocations: 47.66 kB / 0.513 GB, free: 32.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005073/0.2792, allocations: 182.2 kB / 0.5132 GB, free: 32.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.2806, allocations: 0.6372 MB / 0.5138 GB, free: 31.92 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007732/0.2814, allocations: 332.8 kB / 0.5141 GB, free: 31.76 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001477/0.2829, allocations: 1.995 MB / 0.5161 GB, free: 31.12 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.2841, allocations: 1.399 MB / 0.5174 GB, free: 30.1 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005159/0.2846, allocations: 462.7 kB / 0.5179 GB, free: 29.92 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006571/0.2853, allocations: 0.6133 MB / 0.5185 GB, free: 29.7 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.739e-05/0.2854, allocations: 41.94 kB / 0.5185 GB, free: 29.7 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006985/0.2861, allocations: 446.4 kB / 0.5189 GB, free: 29.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003014/0.2864, allocations: 402 kB / 0.5193 GB, free: 29.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000354/0.2868, allocations: 491.4 kB / 0.5198 GB, free: 29.17 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009806/0.2878, allocations: 1.351 MB / 0.5211 GB, free: 28.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2878, allocations: 2.844 kB / 0.5211 GB, free: 28.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2878, allocations: 0 / 0.5211 GB, free: 28.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.2878, allocations: 0 / 0.5211 GB, free: 28.79 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001494/0.2893, allocations: 1.097 MB / 0.5222 GB, free: 28.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.2893, allocations: 15.56 kB / 0.5222 GB, free: 28.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000966/0.2903, allocations: 205.5 kB / 0.5224 GB, free: 27.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.2914, allocations: 0.714 MB / 0.5231 GB, free: 27.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.2914, allocations: 58.66 kB / 0.5231 GB, free: 27.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.2916, allocations: 101.2 kB / 0.5232 GB, free: 27.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.2928, allocations: 1.086 MB / 0.5243 GB, free: 27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.2929, allocations: 2.938 kB / 0.5243 GB, free: 27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.2929, allocations: 41.19 kB / 0.5243 GB, free: 26.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/0.2931, allocations: 73.8 kB / 0.5244 GB, free: 26.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2941, allocations: 0.8577 MB / 0.5252 GB, free: 26.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00362/0.2977, allocations: 4.011 MB / 0.5292 GB, free: 24.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.2982, allocations: 434.1 kB / 0.5296 GB, free: 23.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/0.2985, allocations: 278.3 kB / 0.5298 GB, free: 23.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.2985, allocations: 7.359 kB / 0.5298 GB, free: 23.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.2986, allocations: 42.19 kB / 0.5299 GB, free: 23.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 1.833e-06/0.2986, allocations: 0 / 0.5299 GB, free: 23.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.002196/0.3008, allocations: 1.722 MB / 0.5316 GB, free: 22.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.3008, allocations: 80.83 kB / 0.5316 GB, free: 22.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004947/0.3013, allocations: 0.5851 MB / 0.5322 GB, free: 22.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.3014, allocations: 33.7 kB / 0.5322 GB, free: 22.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.3015, allocations: 471 kB / 0.5327 GB, free: 21.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.889e-05/0.3016, allocations: 182.6 kB / 0.5329 GB, free: 21.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.3017, allocations: 15.25 kB / 0.5329 GB, free: 21.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.363e-05/0.3018, allocations: 388.3 kB / 0.5333 GB, free: 21.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002966/0.3021, allocations: 242.6 kB / 0.5335 GB, free: 21.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.3024, allocations: 476.3 kB / 0.5339 GB, free: 21.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006988/0.3031, allocations: 0.7696 MB / 0.5347 GB, free: 20.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3031, allocations: 0 / 0.5347 GB, free: 20.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001566/0.3047, allocations: 1.107 MB / 0.5358 GB, free: 19.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.3047, allocations: 16.86 kB / 0.5358 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001087/0.3058, allocations: 0.7924 MB / 0.5366 GB, free: 19.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.3065, allocations: 216.9 kB / 0.5368 GB, free: 19.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.3069, allocations: 157.3 kB / 0.5369 GB, free: 19.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.3105, allocations: 5.241 MB / 0.542 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004308/0.311, allocations: 34.09 kB / 0.5421 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.311, allocations: 28.09 kB / 0.5421 GB, free: 15.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000465/0.3115, allocations: 317.1 kB / 0.5424 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.128e-05/0.3116, allocations: 65.69 kB / 0.5425 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000836/0.3124, allocations: 0.6064 MB / 0.5431 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.3125, allocations: 6.594 kB / 0.5431 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.3125, allocations: 0 / 0.5431 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.3125, allocations: 10.47 kB / 0.5431 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.3146, allocations: 1.484 MB / 0.5445 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3146, allocations: 7.125 kB / 0.5445 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005614/0.3151, allocations: 123.1 kB / 0.5446 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3152, allocations: 2.656 kB / 0.5446 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/0.3152, allocations: 14.86 kB / 0.5447 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.3152, allocations: 9.25 kB / 0.5447 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3152, allocations: 2.656 kB / 0.5447 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009432/0.3162, allocations: 0.9278 MB / 0.5456 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.3164, allocations: 185.9 kB / 0.5458 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.078e-05/0.3165, allocations: 17.11 kB / 0.5458 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.3168, allocations: 13.31 kB / 0.5458 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.3168, allocations: 35.45 kB / 0.5458 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.3168, allocations: 20.47 kB / 0.5458 GB, free: 13.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003603/0.3172, allocations: 415.8 kB / 0.5462 GB, free: 13.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3172, allocations: 0 / 0.5462 GB, free: 13.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007171/0.3179, allocations: 233.3 kB / 0.5465 GB, free: 12.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.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 (54): * Single equations (assignments): 53 * 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 0.000278/0.3182, allocations: 163.9 kB / 0.5466 GB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.3195, allocations: 1.018 MB / 0.5476 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3195, allocations: 0 / 0.5476 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.3198, allocations: 260 kB / 0.5479 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008205/0.3207, allocations: 149.9 kB / 0.548 GB, free: 12.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/0.3236, allocations: 2.557 MB / 0.5505 GB, free: 10.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.3242, allocations: 1.081 MB / 0.5516 GB, free: 9.816 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005428/0.3248, allocations: 189.8 kB / 0.5517 GB, free: 9.785 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.3249, allocations: 59.95 kB / 0.5518 GB, free: 9.773 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.3249, allocations: 0 / 0.5518 GB, free: 9.773 MB / 378.7 MB Notification: Performance of Templates: time 0.01594/0.3409, allocations: 8.721 MB / 0.5603 GB, free: 7.273 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches