Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 184.1 kB / 16.72 MB, free: 4.969 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.216/1.216, allocations: 225.7 MB / 243.2 MB, free: 8.449 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.0007463/0.0007463, allocations: 93.61 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.2818/0.2818, allocations: 38.18 MB / 383.7 MB, free: 40.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.0002879, allocations: 16 kB / 453.6 MB, free: 8.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2639, allocations: 59.14 MB / 0.5007 GB, free: 39.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.005695/0.2696, allocations: 5.647 MB / 0.5062 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005585/0.2753, allocations: 6.177 MB / 0.5122 GB, free: 32.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004585/0.2757, allocations: 31.12 kB / 0.5123 GB, free: 32.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006684/0.2824, allocations: 4.571 MB / 0.5167 GB, free: 31.61 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006315/0.2831, allocations: 331.8 kB / 0.517 GB, free: 31.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.2836, allocations: 219.4 kB / 0.5172 GB, free: 31.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00189/0.2855, allocations: 2.14 MB / 0.5193 GB, free: 30.73 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006328/0.2862, allocations: 0.693 MB / 0.52 GB, free: 30.2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.2865, allocations: 321.7 kB / 0.5203 GB, free: 30.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004088/0.2869, allocations: 438.3 kB / 0.5207 GB, free: 29.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-05/0.2869, allocations: 27.5 kB / 0.5208 GB, free: 29.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.2872, allocations: 114.2 kB / 0.5209 GB, free: 29.89 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.2874, allocations: 251.4 kB / 0.5211 GB, free: 29.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002137/0.2876, allocations: 313.3 kB / 0.5214 GB, free: 29.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004692/0.2881, allocations: 0.7055 MB / 0.5221 GB, free: 29.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2881, allocations: 4 kB / 0.5221 GB, free: 29.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2881, allocations: 2.969 kB / 0.5221 GB, free: 29.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2881, allocations: 0 / 0.5221 GB, free: 29.41 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001191/0.2893, allocations: 0.7972 MB / 0.5229 GB, free: 28.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.2893, allocations: 8.438 kB / 0.5229 GB, free: 28.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.2897, allocations: 95.17 kB / 0.523 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007341/0.2904, allocations: 0.5438 MB / 0.5235 GB, free: 28.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.2905, allocations: 34.56 kB / 0.5235 GB, free: 28.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.472e-05/0.2906, allocations: 54.69 kB / 0.5236 GB, free: 28.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.2913, allocations: 0.6421 MB / 0.5242 GB, free: 28.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2913, allocations: 6.219 kB / 0.5242 GB, free: 28.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.194e-05/0.2914, allocations: 22.84 kB / 0.5243 GB, free: 28.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001113/0.2915, allocations: 50.31 kB / 0.5243 GB, free: 28.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006015/0.2921, allocations: 493.4 kB / 0.5248 GB, free: 27.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.2946, allocations: 2.539 MB / 0.5273 GB, free: 26.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.2949, allocations: 313 kB / 0.5276 GB, free: 25.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.2951, allocations: 179.3 kB / 0.5277 GB, free: 25.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.2952, allocations: 6.797 kB / 0.5277 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.2952, allocations: 49.84 kB / 0.5278 GB, free: 25.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.563e-06/0.2952, allocations: 0 / 0.5278 GB, free: 25.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001848/0.297, allocations: 1.633 MB / 0.5294 GB, free: 24.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.2971, allocations: 106.1 kB / 0.5295 GB, free: 24.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.2974, allocations: 418.5 kB / 0.5299 GB, free: 24.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.2974, allocations: 33.86 kB / 0.5299 GB, free: 24.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.2976, allocations: 310.9 kB / 0.5302 GB, free: 24.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.238e-05/0.2976, allocations: 122.2 kB / 0.5303 GB, free: 23.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.2977, allocations: 7 kB / 0.5303 GB, free: 23.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.493e-05/0.2977, allocations: 367.3 kB / 0.5307 GB, free: 23.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.2979, allocations: 157.7 kB / 0.5308 GB, free: 23.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.2982, allocations: 304.6 kB / 0.5311 GB, free: 23.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004578/0.2986, allocations: 487.9 kB / 0.5316 GB, free: 23.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2986, allocations: 7.25 kB / 0.5316 GB, free: 23.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001013/0.2997, allocations: 0.7976 MB / 0.5324 GB, free: 22.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2997, allocations: 6.156 kB / 0.5324 GB, free: 22.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.2997, allocations: 2.969 kB / 0.5324 GB, free: 22.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005471/0.3003, allocations: 210.9 kB / 0.5326 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.3005, allocations: 77.53 kB / 0.5326 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/0.3036, allocations: 3.892 MB / 0.5364 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.3038, allocations: 18.06 kB / 0.5365 GB, free: 19.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.3039, allocations: 20.62 kB / 0.5365 GB, free: 19.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001825/0.3041, allocations: 223.4 kB / 0.5367 GB, free: 19.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.049e-05/0.3041, allocations: 50.16 kB / 0.5367 GB, free: 19.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006658/0.3048, allocations: 0.629 MB / 0.5374 GB, free: 18.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.3048, allocations: 3.375 kB / 0.5374 GB, free: 18.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.3048, allocations: 4.031 kB / 0.5374 GB, free: 18.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.3049, allocations: 6.828 kB / 0.5374 GB, free: 18.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.306, allocations: 1.194 MB / 0.5385 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3061, allocations: 3.281 kB / 0.5385 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.3065, allocations: 78.48 kB / 0.5386 GB, free: 18.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001187/0.3066, allocations: 49.83 kB / 0.5387 GB, free: 18.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.3066, allocations: 10.59 kB / 0.5387 GB, free: 18.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.3077, allocations: 2.639 MB / 0.5413 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3078, allocations: 0 / 0.5413 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007934/0.3086, allocations: 0.949 MB / 0.5422 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.3087, allocations: 151.6 kB / 0.5423 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.3088, allocations: 12.47 kB / 0.5423 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002537/0.309, allocations: 12.12 kB / 0.5423 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/0.3091, allocations: 27.3 kB / 0.5424 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.3091, allocations: 16 kB / 0.5424 GB, free: 14.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002285/0.3093, allocations: 285.7 kB / 0.5427 GB, free: 14.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3093, allocations: 0 / 0.5427 GB, free: 14.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004517/0.3098, allocations: 137 kB / 0.5428 GB, free: 14.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001031/0.3099, allocations: 120 kB / 0.5429 GB, free: 14.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009202/0.3108, allocations: 0.718 MB / 0.5436 GB, free: 13.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3109, allocations: 0 / 0.5436 GB, free: 13.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000397/0.3113, allocations: 420.8 kB / 0.544 GB, free: 13.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006801/0.312, allocations: 111.6 kB / 0.5441 GB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.3136, allocations: 1.848 MB / 0.5459 GB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.314, allocations: 0.9464 MB / 0.5468 GB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002711/0.3142, allocations: 98.28 kB / 0.5469 GB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.419e-05/0.3143, allocations: 41.31 kB / 0.547 GB, free: 11.74 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.3144, allocations: 0 / 0.547 GB, free: 11.74 MB / 378.7 MB Notification: Performance of Templates: time 0.01171/0.3261, allocations: 6.404 MB / 0.5532 GB, free: 10.95 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches