Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 103.6 kB / 16.51 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.173/0.173, allocations: 38.05 MB / 329.3 MB, free: 9.074 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 62.33 kB / 398.1 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1237, allocations: 58.06 MB / 456.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007984/0.1317, allocations: 6.217 MB / 462.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00794/0.1397, allocations: 4.566 MB / 466.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008912/0.1406, allocations: 35.75 kB / 467 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01003/0.1507, allocations: 4.748 MB / 471.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.1519, allocations: 330.6 kB / 472.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008687/0.1528, allocations: 227.7 kB / 472.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003504/0.1563, allocations: 2.14 MB / 474.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009327/0.1573, allocations: 340.2 kB / 474.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009397/0.1582, allocations: 318.6 kB / 475.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.1593, allocations: 470.3 kB / 475.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.1595, allocations: 32 kB / 475.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003942/0.1599, allocations: 123.8 kB / 475.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002876/0.1602, allocations: 267.3 kB / 475.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003606/0.1605, allocations: 298.4 kB / 476.2 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008499/0.1614, allocations: 0.7318 MB / 477 MB, free: 3.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1614, allocations: 0 / 477 MB, free: 3.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1614, allocations: 0 / 477 MB, free: 3.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1614, allocations: 0 / 477 MB, free: 3.676 MB / 350.1 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.002087/0.1635, allocations: 0.9056 MB / 477.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.1636, allocations: 12.03 kB / 477.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005106/0.1641, allocations: 88.06 kB / 478 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.1652, allocations: 0.5332 MB / 478.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.1653, allocations: 33 kB / 478.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.531e-05/0.1654, allocations: 51.98 kB / 478.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1666, allocations: 0.6453 MB / 479.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.1667, allocations: 4 kB / 479.2 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/0.1667, allocations: 23.98 kB / 479.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001422/0.1669, allocations: 48.91 kB / 479.3 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007879/0.1677, allocations: 499.6 kB / 479.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003762/0.1715, allocations: 2.546 MB / 482.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005227/0.172, allocations: 315.6 kB / 482.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002755/0.1723, allocations: 183 kB / 482.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1723, allocations: 8 kB / 482.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/0.1724, allocations: 42.5 kB / 482.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.956e-06/0.1724, allocations: 0 / 482.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002808/0.1752, allocations: 1.617 MB / 484.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.1753, allocations: 106.8 kB / 484.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000474/0.1758, allocations: 433.9 kB / 485 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.1759, allocations: 29.7 kB / 485 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.1762, allocations: 311.6 kB / 485.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1763, allocations: 118.3 kB / 485.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.1764, allocations: 86.16 kB / 485.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1766, allocations: 366.7 kB / 485.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.1769, allocations: 165 kB / 486.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00041/0.1773, allocations: 301.8 kB / 486.4 MB, free: 9.711 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006082/0.1779, allocations: 495.7 kB / 486.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1779, allocations: 4 kB / 486.8 MB, free: 9.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001321/0.1792, allocations: 0.7954 MB / 487.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.1793, allocations: 8 kB / 487.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.1793, allocations: 7.984 kB / 487.7 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006662/0.18, allocations: 205.8 kB / 487.9 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.1803, allocations: 71.89 kB / 487.9 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004455/0.1848, allocations: 3.9 MB / 491.8 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/0.1851, allocations: 16 kB / 491.8 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.328e-05/0.1852, allocations: 23.98 kB / 491.9 MB, free: 3.84 MB / 366.1 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.0003683/0.1855, allocations: 235.8 kB / 492.1 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.1857, allocations: 47.38 kB / 492.1 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.1868, allocations: 0.638 MB / 492.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.1868, allocations: 7.938 kB / 492.8 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1868, allocations: 0 / 492.8 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.1869, allocations: 3.984 kB / 492.8 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.1887, allocations: 1.191 MB / 494 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.1887, allocations: 3.984 kB / 494 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004577/0.1892, allocations: 75.89 kB / 494.1 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.1894, allocations: 57.61 kB / 494.1 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.1894, allocations: 8 kB / 494.1 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.1914, allocations: 2.63 MB / 496.8 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1914, allocations: 160 / 496.8 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.1926, allocations: 0.9568 MB / 497.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/0.1928, allocations: 148.5 kB / 497.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.853e-05/0.1929, allocations: 11.94 kB / 497.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.1932, allocations: 11.98 kB / 497.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.1933, allocations: 27.97 kB / 497.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.1933, allocations: 12 kB / 497.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003631/0.1937, allocations: 291.1 kB / 498.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1937, allocations: 0 / 498.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000657/0.1944, allocations: 136 kB / 498.3 MB, free: 12.84 MB / 382.1 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.0001535/0.1945, allocations: 115.1 kB / 498.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.1959, allocations: 0.7321 MB / 499.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.196, allocations: 0 / 499.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005737/0.1965, allocations: 422 kB / 499.6 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008071/0.1974, allocations: 101.8 kB / 499.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.2001, allocations: 1.708 MB / 0.4896 GB, free: 9.676 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007095/0.2008, allocations: 0.9366 MB / 0.4906 GB, free: 8.715 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003775/0.2012, allocations: 104.4 kB / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.2014, allocations: 39.42 kB / 0.4907 GB, free: 8.574 MB / 382.1 MB Notification: Performance of SimCode: time 2.805e-06/0.2014, allocations: 0 / 0.4907 GB, free: 8.574 MB / 382.1 MB Notification: Performance of Templates: time 0.01445/0.2158, allocations: 6.513 MB / 0.4971 GB, free: 2.125 MB / 382.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches