Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008139/0.0008139, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001103/0.001917, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007228/0.0007228, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001012/0.001735, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.021/1.021, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09812/1.119, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.323e-05, allocations: 6.25 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008488/0.008511, allocations: 10.11 MB / 254.8 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004192/0.0127, allocations: 3.559 MB / 258.4 MB, free: 488 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004986/0.0132, allocations: 79.44 kB / 258.5 MB, free: 408 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.01422, allocations: 0.7762 MB / 259.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.01545, allocations: 0.9234 MB / 260.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.01592, allocations: 427.2 kB / 260.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002094/0.01802, allocations: 2.873 MB / 263.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.01912, allocations: 1.34 MB / 264.8 MB, free: 9.965 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.02097, allocations: 2.324 MB / 267.1 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.02209, allocations: 1.383 MB / 268.5 MB, free: 6.234 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002853/0.02238, allocations: 324 kB / 268.8 MB, free: 5.918 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005459/0.02292, allocations: 439.7 kB / 269.3 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007966/0.02372, allocations: 0.7714 MB / 270 MB, free: 4.715 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006524/0.02437, allocations: 0.8344 MB / 270.9 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.0262, allocations: 2.227 MB / 273.1 MB, free: 1.645 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.02621, allocations: 0 / 273.1 MB, free: 1.645 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.02621, allocations: 0 / 273.1 MB, free: 1.645 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.02624, allocations: 4 kB / 273.1 MB, free: 1.641 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.1284/0.1546, allocations: 3.341 MB / 276.4 MB, free: 19.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1547, allocations: 9.5 kB / 276.4 MB, free: 19.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009419/0.1556, allocations: 493.6 kB / 276.9 MB, free: 19.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.1574, allocations: 1.157 MB / 278.1 MB, free: 19.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.1575, allocations: 169.3 kB / 278.2 MB, free: 19.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.1578, allocations: 225.1 kB / 278.5 MB, free: 19.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.1601, allocations: 1.693 MB / 280.2 MB, free: 19.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.845e-05/0.1601, allocations: 6.656 kB / 280.2 MB, free: 19.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.1602, allocations: 91.23 kB / 280.3 MB, free: 19.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/0.1604, allocations: 111.4 kB / 280.4 MB, free: 19.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1615, allocations: 0.6557 MB / 281 MB, free: 19.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006426/0.1679, allocations: 5.902 MB / 286.9 MB, free: 16.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008082/0.1687, allocations: 0.654 MB / 287.6 MB, free: 16.37 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006115/0.1693, allocations: 433.1 kB / 288 MB, free: 16.31 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000188/0.1695, allocations: 62.28 kB / 288.1 MB, free: 16.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.1695, allocations: 52.25 kB / 288.1 MB, free: 16.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.554e-06/0.1695, allocations: 0 / 288.1 MB, free: 16.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004228/0.1738, allocations: 2.618 MB / 290.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.209e-05/0.1738, allocations: 63.34 kB / 290.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006688/0.1744, allocations: 1.061 MB / 291.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.992e-05/0.1745, allocations: 45.73 kB / 291.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.1748, allocations: 0.9466 MB / 292.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.1749, allocations: 441 kB / 293.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.1751, allocations: 257 kB / 293.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.773e-05/0.1752, allocations: 305.1 kB / 293.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.1754, allocations: 169.2 kB / 294 MB, free: 13.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.1756, allocations: 0.5811 MB / 294.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007265/0.1764, allocations: 0.9672 MB / 295.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.1764, allocations: 4 kB / 295.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001223/0.1776, allocations: 1.049 MB / 296.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1776, allocations: 12 kB / 296.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.1776, allocations: 12 kB / 296.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005827/0.1782, allocations: 249.2 kB / 296.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006486/0.1789, allocations: 355.5 kB / 297.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.181, allocations: 4.753 MB / 302 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/0.1815, allocations: 55.94 kB / 302 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.433e-05/0.1816, allocations: 52 kB / 302.1 MB, free: 5.152 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003642/0.1819, allocations: 208.2 kB / 302.3 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.1821, allocations: 135.9 kB / 302.4 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009347/0.183, allocations: 0.8784 MB / 303.3 MB, free: 3.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.183, allocations: 12 kB / 303.3 MB, free: 3.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.183, allocations: 8 kB / 303.3 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.183, allocations: 3.984 kB / 303.3 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.1856, allocations: 2.518 MB / 305.8 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.1856, allocations: 4 kB / 305.8 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004836/0.186, allocations: 224.2 kB / 306 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.1863, allocations: 215.7 kB / 306.3 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000515/0.1868, allocations: 302.4 kB / 306.5 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.1869, allocations: 35.98 kB / 306.6 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003441/0.1903, allocations: 5.946 MB / 312.5 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.1903, allocations: 7.938 kB / 312.5 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.1918, allocations: 1.307 MB / 313.8 MB, free: 9.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.1919, allocations: 28 kB / 313.9 MB, free: 9.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/0.1923, allocations: 47.97 kB / 313.9 MB, free: 9.086 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.1924, allocations: 108.7 kB / 314 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.51e-05/0.1925, allocations: 27.98 kB / 314.1 MB, free: 8.953 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004619/0.1929, allocations: 0.5191 MB / 314.6 MB, free: 8.492 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1929, allocations: 0 / 314.6 MB, free: 8.492 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001215/0.1942, allocations: 480.1 kB / 315 MB, free: 8.023 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004528/0.1946, allocations: 186 kB / 315.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.1959, allocations: 1.208 MB / 316.4 MB, free: 6.645 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-05/0.196, allocations: 27.12 kB / 316.5 MB, free: 6.621 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009091/0.1969, allocations: 1.023 MB / 317.5 MB, free: 5.582 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/0.199, allocations: 4.098 MB / 321.6 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/0.2151, allocations: 3.953 MB / 325.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/0.2156, allocations: 0.5341 MB / 326.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000607/0.2162, allocations: 218.1 kB / 326.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008143/0.2171, allocations: 423.1 kB / 326.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of SimCode: time 9.11e-07/0.2171, allocations: 0 / 326.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of Templates: time 0.03906/0.2561, allocations: 27.08 MB / 353.8 MB, free: 0.7656 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.362397455610335]