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.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 3.2.3+maint.om/package.mo", uses=false) 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.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(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..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=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001588, allocations: 114.1 kB / 17.28 MB, free: 6.219 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.002108/0.002108, allocations: 189.3 kB / 18.2 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 55.92 kB / 280.2 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08999/0.09111, allocations: 46.64 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02123/0.1124, allocations: 19.96 MB / 346.8 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1235, allocations: 5.846 MB / 352.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005149/0.1287, allocations: 111.4 kB / 352.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005057/0.1338, allocations: 1.154 MB / 353.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007807/0.1417, allocations: 1.721 MB / 355.6 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004617/0.1463, allocations: 1.119 MB / 356.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.1571, allocations: 6.212 MB / 362.9 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00809/0.1652, allocations: 5.366 MB / 368.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004645/0.1699, allocations: 2.749 MB / 371 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005716/0.1757, allocations: 3.398 MB / 374.4 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002293/0.178, allocations: 0.7773 MB / 375.2 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003025/0.181, allocations: 1.074 MB / 376.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002279/0.1833, allocations: 1.944 MB / 378.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1978/0.3811, allocations: 3.341 MB / 381.6 MB, free: 21.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0157/0.3969, allocations: 10.18 MB / 391.7 MB, free: 21.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.397, allocations: 1.156 kB / 391.7 MB, free: 21.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.397, allocations: 0 / 391.7 MB, free: 21.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004437/0.3974, allocations: 0 / 391.7 MB, free: 21.14 MB / 318.1 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.02843/0.4259, allocations: 6.582 MB / 398.3 MB, free: 18.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.4259, allocations: 8.125 kB / 398.3 MB, free: 18.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00583/0.4318, allocations: 1.006 MB / 399.3 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008449/0.4402, allocations: 3.276 MB / 402.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003708/0.4407, allocations: 395.6 kB / 403 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00206/0.4427, allocations: 0.5 MB / 403.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01525/0.458, allocations: 6.775 MB / 410.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.4582, allocations: 15.16 kB / 410.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005716/0.4588, allocations: 212.2 kB / 410.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001961/0.459, allocations: 239.8 kB / 410.7 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.4697, allocations: 5.739 MB / 416.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04685/0.5166, allocations: 21.1 MB / 437.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01429/0.531, allocations: 8.538 MB / 446.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005914/0.5369, allocations: 2.118 MB / 448.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02029/0.5573, allocations: 5.94 MB / 454.2 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.065e-05/0.5574, allocations: 56.56 kB / 454.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 6.402e-06/0.5574, allocations: 0 / 454.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.03297/0.5904, allocations: 10.27 MB / 464.5 MB, free: 8.109 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.413e-05/0.5905, allocations: 77.41 kB / 464.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008368/0.5989, allocations: 2.904 MB / 467.5 MB, free: 5.105 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00059/0.5995, allocations: 69.17 kB / 467.6 MB, free: 5.035 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002612/0.6021, allocations: 2.348 MB / 469.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/0.6035, allocations: 0.7666 MB / 470.7 MB, free: 1.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001777/0.6053, allocations: 0.5138 MB / 471.2 MB, free: 1.387 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.6054, allocations: 305.1 kB / 471.5 MB, free: 1.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003507/0.609, allocations: 1.269 MB / 472.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004124/0.6131, allocations: 2.169 MB / 474.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007643/0.6208, allocations: 3.674 MB / 478.6 MB, free: 9.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.088e-05/0.6208, allocations: 8 kB / 478.6 MB, free: 9.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01185/0.6327, allocations: 4.434 MB / 483 MB, free: 4.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.927e-05/0.6328, allocations: 23.12 kB / 483.1 MB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-05/0.6329, allocations: 31.98 kB / 483.1 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001827/0.6347, allocations: 0.5141 MB / 483.6 MB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003711/0.6384, allocations: 0.6921 MB / 484.3 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009541/0.648, allocations: 10.19 MB / 494.5 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00375/0.6518, allocations: 171.9 kB / 494.7 MB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000721/0.6525, allocations: 130.6 kB / 494.8 MB, free: 8.625 MB / 398.1 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 (348): * Single equations (assignments): 341 * 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.003864/0.6564, allocations: 1.529 MB / 496.3 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/0.6574, allocations: 316.2 kB / 496.6 MB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00731/0.6647, allocations: 3.874 MB / 0.4888 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.967e-05/0.6648, allocations: 20 kB / 0.4888 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.552e-05/0.6648, allocations: 8 kB / 0.4888 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.446e-05/0.6649, allocations: 15.89 kB / 0.4888 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/0.6793, allocations: 8.491 MB / 0.4971 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.6794, allocations: 4 kB / 0.4971 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/0.681, allocations: 380.7 kB / 0.4975 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/0.6828, allocations: 0.7262 MB / 0.4982 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/0.683, allocations: 63.97 kB / 0.4982 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01394/0.697, allocations: 16.62 MB / 0.5145 GB, free: 7.441 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.697, allocations: 7.984 kB / 0.5145 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009027/0.706, allocations: 5.544 MB / 0.5199 GB, free: 1.781 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/0.7082, allocations: 0.6635 MB / 0.5205 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007959/0.709, allocations: 52 kB / 0.5206 GB, free: 1.047 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/0.7107, allocations: 131.9 kB / 0.5207 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004968/0.7112, allocations: 169.3 kB / 0.5209 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/0.7114, allocations: 68.16 kB / 0.5209 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003299/0.7147, allocations: 1.966 MB / 0.5229 GB, free: 14.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7147, allocations: 3.938 kB / 0.5229 GB, free: 14.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005128/0.7198, allocations: 0.9297 MB / 0.5238 GB, free: 13.79 MB / 446.1 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 (185): * Single equations (assignments): 177 * 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%), (2,1,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.0008654/0.7207, allocations: 249.9 kB / 0.524 GB, free: 13.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01152/0.7323, allocations: 5.402 MB / 0.5293 GB, free: 8.172 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.978e-06/0.7323, allocations: 0 / 0.5293 GB, free: 8.172 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004784/0.7371, allocations: 2.648 MB / 0.5319 GB, free: 5.469 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006542/0.7437, allocations: 0.8516 MB / 0.5327 GB, free: 4.617 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2086/0.9523, allocations: 11.73 MB / 0.5442 GB, free: 154.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003739/0.9561, allocations: 3.296 MB / 0.5474 GB, free: 153.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003043/0.9591, allocations: 0.7601 MB / 0.5481 GB, free: 153.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006945/0.9598, allocations: 221.6 kB / 0.5483 GB, free: 153.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.9599, allocations: 0 / 0.5483 GB, free: 153.4 MB / 446.1 MB Notification: Performance of Templates: time 0.07632/1.036, allocations: 47.25 MB / 0.5945 GB, free: 118.3 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches