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.001001/0.001001, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001142/0.001142, allocations: 163.9 kB / 24.99 MB, free: 8.336 MB / 18.57 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.016/1.016, allocations: 177.1 MB / 205.3 MB, free: 5.613 MB / 186.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 2.565e-06/2.565e-06, allocations: 3.984 kB / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.594e-05/2.85e-05, allocations: 6.25 kB / 273.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.009275/0.009303, allocations: 10.22 MB / 283.3 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005528/0.01483, allocations: 3.423 MB / 286.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/0.01598, allocations: 79.44 kB / 286.8 MB, free: 4.031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.01731, allocations: 0.7606 MB / 287.6 MB, free: 3.266 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002153/0.01946, allocations: 0.9196 MB / 288.5 MB, free: 2.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007627/0.02022, allocations: 435.2 kB / 288.9 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1229/0.1431, allocations: 2.847 MB / 291.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001935/0.1451, allocations: 1.308 MB / 293.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002399/0.1475, allocations: 1.916 MB / 295 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002246/0.1497, allocations: 1.474 MB / 296.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008113/0.1505, allocations: 335.2 kB / 296.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008749/0.1514, allocations: 444.6 kB / 297.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008517/0.1523, allocations: 0.9904 MB / 298.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001711/0.154, allocations: 1.043 MB / 299.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003129/0.1571, allocations: 2.433 MB / 301.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1571, allocations: 2.156 kB / 301.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1571, allocations: 0 / 301.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.779e-05/0.1572, allocations: 0.75 kB / 301.7 MB, free: 14.27 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.004591/0.1618, allocations: 3.218 MB / 304.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1618, allocations: 10.19 kB / 304.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008339/0.1627, allocations: 0.5064 MB / 305.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001737/0.1644, allocations: 1.518 MB / 306.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.76e-05/0.1645, allocations: 165.8 kB / 307.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001983/0.1647, allocations: 231.6 kB / 307.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.1669, allocations: 1.807 MB / 309.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.532e-05/0.1669, allocations: 3.375 kB / 309.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.1671, allocations: 91.66 kB / 309.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.283e-05/0.1672, allocations: 109.3 kB / 309.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.1686, allocations: 0.8346 MB / 310.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006485/0.1751, allocations: 7.502 MB / 317.7 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.1761, allocations: 0.6685 MB / 318.3 MB, free: 2.637 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006754/0.1768, allocations: 0.5099 MB / 318.8 MB, free: 2.129 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001558/0.1769, allocations: 52.97 kB / 318.9 MB, free: 2.078 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.177, allocations: 58.22 kB / 318.9 MB, free: 2.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 3.717e-06/0.177, allocations: 0 / 318.9 MB, free: 2.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.006072/0.183, allocations: 3.3 MB / 322.2 MB, free: 14.72 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1831, allocations: 68.34 kB / 322.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.1847, allocations: 1.283 MB / 323.6 MB, free: 13.33 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.845e-05/0.1847, allocations: 45.7 kB / 323.6 MB, free: 13.28 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007516/0.1855, allocations: 1.216 MB / 324.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003194/0.1858, allocations: 457.9 kB / 325.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003701/0.1862, allocations: 277.1 kB / 325.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1863, allocations: 484.8 kB / 326 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005178/0.1868, allocations: 231.8 kB / 326.3 MB, free: 10.63 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008484/0.1877, allocations: 0.832 MB / 327.1 MB, free: 9.555 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.1891, allocations: 1.186 MB / 328.3 MB, free: 8.176 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.1892, allocations: 4 kB / 328.3 MB, free: 8.172 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002462/0.1916, allocations: 1.426 MB / 329.7 MB, free: 6.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.1916, allocations: 12 kB / 329.7 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.1917, allocations: 12 kB / 329.7 MB, free: 6.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007309/0.1924, allocations: 258.2 kB / 330 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009595/0.1934, allocations: 344.5 kB / 330.3 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004708/0.1981, allocations: 6.658 MB / 337 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008937/0.199, allocations: 107.8 kB / 337.1 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-05/0.1991, allocations: 63.98 kB / 337.2 MB, free: 15.07 MB / 298.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.0006261/0.1997, allocations: 244 kB / 337.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002987/0.2, allocations: 207 kB / 337.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002048/0.202, allocations: 1.153 MB / 338.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.202, allocations: 12 kB / 338.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.202, allocations: 4 kB / 338.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.2021, allocations: 7.969 kB / 338.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005039/0.2071, allocations: 3.155 MB / 341.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.2071, allocations: 4 kB / 341.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003716/0.2108, allocations: 217.5 kB / 342.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008211/0.2116, allocations: 303.8 kB / 342.4 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.66e-05/0.2117, allocations: 31.98 kB / 342.5 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008266/0.22, allocations: 8.456 MB / 350.9 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.22, allocations: 7.375 kB / 350.9 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005682/0.2257, allocations: 1.687 MB / 352.6 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006269/0.2263, allocations: 302.8 kB / 352.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.2265, allocations: 32 kB / 353 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006238/0.2271, allocations: 75.91 kB / 353 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.2273, allocations: 104.3 kB / 353.1 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.165e-05/0.2274, allocations: 43.98 kB / 353.2 MB, free: 14.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009938/0.2284, allocations: 0.7465 MB / 353.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2284, allocations: 0 / 353.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004645/0.233, allocations: 491.9 kB / 354.4 MB, free: 13.23 MB / 314.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%), (2,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.0003397/0.2334, allocations: 197.1 kB / 354.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00517/0.2385, allocations: 1.526 MB / 356.1 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.2385, allocations: 0 / 356.1 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.2399, allocations: 1.289 MB / 357.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004371/0.2443, allocations: 445.3 kB / 357.8 MB, free: 9.766 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00606/0.2504, allocations: 4.044 MB / 361.9 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005756/0.251, allocations: 0.5927 MB / 362.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007718/0.2517, allocations: 301.7 kB / 362.8 MB, free: 4.707 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003027/0.252, allocations: 120.5 kB / 362.9 MB, free: 4.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.252, allocations: 0 / 362.9 MB, free: 4.59 MB / 314.7 MB Notification: Performance of Templates: time 0.03722/0.2892, allocations: 25.62 MB / 388.5 MB, free: 11.39 MB / 346.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6244922450277954]