Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.0009614/0.0009614, allocations: 79.73 kB / 21.97 MB, free: 2.609 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.0009785/0.0009785, allocations: 164.7 kB / 25.33 MB, free: 9.094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8734/0.8734, allocations: 158.6 MB / 187.2 MB, free: 2.945 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.[0-9,]+.|smrE.idq_rr.[0-9,]+.|smrE.idq_sr.[0-9,]+.|smrM.is.[0-9,]+.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.[0-9,]+.|smrE.idq_rr.[0-9,]+.|smrE.idq_sr.[0-9,]+.|smrM.is.[0-9,]+.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 251.1 MB, free: 7.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.634e-05/1.78e-05, allocations: 2.312 kB / 251.1 MB, free: 7.504 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.0149/0.01492, allocations: 19.94 MB / 271 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008773/0.02369, allocations: 5.905 MB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001565/0.02526, allocations: 147 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002211/0.02747, allocations: 1.354 MB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003008/0.03047, allocations: 2.014 MB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.03204, allocations: 1.251 MB / 281.7 MB, free: 8.758 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004094/0.03613, allocations: 6.373 MB / 288 MB, free: 2.355 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002748/0.03888, allocations: 2.888 MB / 290.9 MB, free: 15.38 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003658/0.04254, allocations: 4.64 MB / 295.6 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002729/0.04526, allocations: 3.063 MB / 298.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006532/0.04592, allocations: 0.7617 MB / 299.4 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.04716, allocations: 1.031 MB / 300.4 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.04821, allocations: 1.979 MB / 302.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001923/0.05013, allocations: 2.272 MB / 304.7 MB, free: 1.605 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005113/0.05525, allocations: 5.362 MB / 310 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.05525, allocations: 0 / 310 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.05525, allocations: 0 / 310 MB, free: 12.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001006/0.05535, allocations: 4 kB / 310 MB, free: 12.22 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01032/0.06567, allocations: 6.817 MB / 316.9 MB, free: 5.328 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.06571, allocations: 11.98 kB / 316.9 MB, free: 5.316 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003907/0.06962, allocations: 1.597 MB / 318.5 MB, free: 3.715 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004414/0.07403, allocations: 3.161 MB / 321.6 MB, free: 480 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002467/0.07428, allocations: 382.7 kB / 322 MB, free: 96 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006254/0.0749, allocations: 0.5159 MB / 322.5 MB, free: 15.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007275/0.08218, allocations: 4.111 MB / 326.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/0.08229, allocations: 15.88 kB / 326.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000383/0.08267, allocations: 208 kB / 326.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002089/0.08288, allocations: 238.2 kB / 327.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004709/0.08759, allocations: 1.933 MB / 329 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02717/0.1148, allocations: 16.65 MB / 345.7 MB, free: 7.797 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005616/0.1204, allocations: 2.729 MB / 348.4 MB, free: 5.258 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002039/0.1224, allocations: 0.9944 MB / 349.4 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008006/0.1304, allocations: 3.531 MB / 352.9 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.1305, allocations: 63.39 kB / 353 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of pre-optimization done (n=204): time 3.828e-06/0.1305, allocations: 0 / 353 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of matching and sorting (n=221): time 0.1336/0.2641, allocations: 5.609 MB / 358.6 MB, free: 72.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.2641, allocations: 79.25 kB / 358.7 MB, free: 72.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002283/0.2664, allocations: 2.224 MB / 360.9 MB, free: 72.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.2665, allocations: 65.45 kB / 361 MB, free: 72.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.2677, allocations: 2.526 MB / 363.5 MB, free: 71.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004323/0.2681, allocations: 0.8135 MB / 364.3 MB, free: 71.01 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006037/0.2687, allocations: 0.5271 MB / 364.8 MB, free: 70.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.2687, allocations: 486.5 kB / 365.3 MB, free: 70.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007828/0.2695, allocations: 432.2 kB / 365.7 MB, free: 70.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.2707, allocations: 1.745 MB / 367.5 MB, free: 68.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002299/0.273, allocations: 2.406 MB / 369.9 MB, free: 67.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.273, allocations: 7.125 kB / 369.9 MB, free: 67.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.003612/0.2767, allocations: 2.596 MB / 372.5 MB, free: 66.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.2767, allocations: 22.36 kB / 372.5 MB, free: 66.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.53e-05/0.2767, allocations: 30.88 kB / 372.5 MB, free: 66.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007554/0.2775, allocations: 348.5 kB / 372.9 MB, free: 66.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.2791, allocations: 0.6686 MB / 373.5 MB, free: 66.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004268/0.2834, allocations: 10.4 MB / 383.9 MB, free: 57.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.2846, allocations: 151.6 kB / 384.1 MB, free: 57.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/0.2847, allocations: 131.8 kB / 384.2 MB, free: 57.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (347): * Single equations (assignments): 340 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008359/0.2856, allocations: 341.7 kB / 384.5 MB, free: 57.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003818/0.286, allocations: 371.6 kB / 384.9 MB, free: 57.2 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002905/0.2889, allocations: 2.048 MB / 387 MB, free: 56.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.2889, allocations: 22.28 kB / 387 MB, free: 56.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.2889, allocations: 6.344 kB / 387 MB, free: 56.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.2889, allocations: 9.188 kB / 387 MB, free: 56.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005449/0.2944, allocations: 5.523 MB / 392.5 MB, free: 54.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.2944, allocations: 4 kB / 392.5 MB, free: 54.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007799/0.2951, allocations: 356.8 kB / 392.9 MB, free: 53.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009699/0.2961, allocations: 0.522 MB / 393.4 MB, free: 53.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.239e-05/0.2962, allocations: 57.52 kB / 393.5 MB, free: 53.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006687/0.3029, allocations: 17.03 MB / 410.5 MB, free: 35.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3029, allocations: 7.75 kB / 410.5 MB, free: 35.87 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.3062, allocations: 2.806 MB / 413.3 MB, free: 33.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007289/0.3069, allocations: 0.5031 MB / 413.8 MB, free: 32.81 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/0.3072, allocations: 51.89 kB / 413.9 MB, free: 32.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000633/0.3078, allocations: 111.3 kB / 414 MB, free: 32.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/0.308, allocations: 187.3 kB / 414.1 MB, free: 32.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.042e-05/0.3081, allocations: 67.98 kB / 414.2 MB, free: 32.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001199/0.3093, allocations: 1.225 MB / 415.4 MB, free: 31.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3093, allocations: 0 / 415.4 MB, free: 31.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002318/0.3116, allocations: 0.9161 MB / 416.4 MB, free: 30.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003858/0.312, allocations: 245.1 kB / 416.6 MB, free: 30.15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002395/0.3144, allocations: 2.598 MB / 419.2 MB, free: 27.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3144, allocations: 0 / 419.2 MB, free: 27.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.3159, allocations: 2.381 MB / 421.6 MB, free: 25.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.3174, allocations: 0.7212 MB / 422.3 MB, free: 24.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008004/0.3254, allocations: 8.243 MB / 430.5 MB, free: 16.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007629/0.3262, allocations: 1.238 MB / 431.8 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001017/0.3272, allocations: 0.6068 MB / 432.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003546/0.3275, allocations: 204.5 kB / 432.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.3275, allocations: 0 / 432.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of Templates: time 0.04974/0.3773, allocations: 41.26 MB / 473.8 MB, free: 4.812 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_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.9820378669537604]