Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002241/0.002247, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.23/2.23, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 91.45 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.873e-05/2.915e-05, allocations: 4 kB / 314.8 MB, free: 9.137 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3397, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1997/0.5394, allocations: 124.4 MB / 486.7 MB, free: 9.828 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003641/0.5398, allocations: 87.88 kB / 486.8 MB, free: 9.742 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7346/1.274, allocations: 114.5 MB / 0.5872 GB, free: 55.71 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.865e-06/1.275, allocations: 3.938 kB / 0.5872 GB, free: 55.71 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006027/1.275, allocations: 131.9 kB / 0.5873 GB, free: 55.58 MB / 395.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.02108/1.296, allocations: 4.889 MB / 0.5921 GB, free: 50.63 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/1.296, allocations: 8.031 kB / 0.5921 GB, free: 50.62 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007463/1.304, allocations: 0.9534 MB / 0.593 GB, free: 49.66 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01676/1.321, allocations: 4.392 MB / 0.5973 GB, free: 45.27 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003743/1.321, allocations: 168 kB / 0.5975 GB, free: 45.11 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002307/1.323, allocations: 311.8 kB / 0.5978 GB, free: 44.8 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01641/1.34, allocations: 4.929 MB / 0.6026 GB, free: 39.87 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02152/1.361, allocations: 5.811 MB / 0.6083 GB, free: 33.87 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002952/1.362, allocations: 7.906 kB / 0.6083 GB, free: 33.86 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001661/1.363, allocations: 4 kB / 0.6083 GB, free: 33.86 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003149/1.364, allocations: 238.2 kB / 0.6085 GB, free: 33.62 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0552/1.419, allocations: 20.16 MB / 0.6282 GB, free: 13.16 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01132/1.43, allocations: 8.394 MB / 0.6364 GB, free: 3.809 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00476/1.435, allocations: 1.922 MB / 0.6383 GB, free: 1.887 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02082/1.456, allocations: 5.873 MB / 0.644 GB, free: 11.95 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.94e-05/1.456, allocations: 56.56 kB / 0.6441 GB, free: 11.89 MB / 411.1 MB Notification: Performance of pre-optimization done (n=212): time 6.363e-06/1.456, allocations: 0 / 0.6441 GB, free: 11.89 MB / 411.1 MB Notification: Performance of matching and sorting (n=236): time 0.03049/1.487, allocations: 8.193 MB / 0.6521 GB, free: 3.609 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.52e-05/1.487, allocations: 77.41 kB / 0.6521 GB, free: 3.523 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006225/1.493, allocations: 2.039 MB / 0.6541 GB, free: 1.477 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005608/1.494, allocations: 29.7 kB / 0.6542 GB, free: 1.441 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.3065/1.8, allocations: 2.224 MB / 0.6563 GB, free: 73.24 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/1.801, allocations: 0.78 MB / 0.6571 GB, free: 73.02 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002958/1.802, allocations: 0 / 0.6571 GB, free: 73.02 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/1.802, allocations: 431.5 kB / 0.6575 GB, free: 72.7 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002863/1.805, allocations: 1.203 MB / 0.6587 GB, free: 72.69 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003657/1.809, allocations: 2.054 MB / 0.6607 GB, free: 71.68 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00451/1.813, allocations: 1.697 MB / 0.6623 GB, free: 71.63 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.602e-05/1.813, allocations: 9 kB / 0.6623 GB, free: 71.63 MB / 411.1 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.01312/1.826, allocations: 4.105 MB / 0.6664 GB, free: 71.3 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.263e-05/1.826, allocations: 17.28 kB / 0.6664 GB, free: 71.3 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.109e-05/1.827, allocations: 30.66 kB / 0.6664 GB, free: 71.3 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003976/1.831, allocations: 0.7005 MB / 0.6671 GB, free: 71.25 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007221/1.838, allocations: 0.7054 MB / 0.6678 GB, free: 71.25 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01816/1.856, allocations: 8.992 MB / 0.6766 GB, free: 66.32 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005824/1.862, allocations: 133.6 kB / 0.6767 GB, free: 66.31 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009575/1.863, allocations: 130 kB / 0.6768 GB, free: 66.31 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (347): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001396/1.864, allocations: 189.7 kB / 0.677 GB, free: 66.21 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/1.866, allocations: 293.8 kB / 0.6773 GB, free: 66.05 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01644/1.882, allocations: 3.906 MB / 0.6811 GB, free: 65.65 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.365e-05/1.882, allocations: 23.31 kB / 0.6811 GB, free: 65.65 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.366e-05/1.882, allocations: 13.27 kB / 0.6811 GB, free: 65.65 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.307e-05/1.882, allocations: 12.56 kB / 0.6811 GB, free: 65.65 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03262/1.915, allocations: 7.94 MB / 0.6889 GB, free: 64.89 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.093e-05/1.915, allocations: 12.08 kB / 0.6889 GB, free: 64.89 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004578/1.92, allocations: 390.7 kB / 0.6893 GB, free: 64.89 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005904/1.926, allocations: 0.9117 MB / 0.6902 GB, free: 64.83 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006582/1.926, allocations: 34.48 kB / 0.6902 GB, free: 64.83 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02429/1.951, allocations: 14.86 MB / 0.7047 GB, free: 56.12 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/1.951, allocations: 14.94 kB / 0.7047 GB, free: 56.12 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01468/1.966, allocations: 5.845 MB / 0.7104 GB, free: 55.08 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002623/1.968, allocations: 0.6326 MB / 0.711 GB, free: 54.75 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/1.97, allocations: 17.03 kB / 0.7111 GB, free: 54.75 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003689/1.973, allocations: 120.5 kB / 0.7112 GB, free: 54.75 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009224/1.974, allocations: 185.4 kB / 0.7113 GB, free: 54.71 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003161/1.975, allocations: 62.81 kB / 0.7114 GB, free: 54.7 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003878/1.978, allocations: 1.51 MB / 0.7129 GB, free: 54.07 MB / 411.1 MB Notification: Performance of sort global known variables: time 8.52e-07/1.978, allocations: 0 / 0.7129 GB, free: 54.07 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006036/1.985, allocations: 0.8903 MB / 0.7137 GB, free: 54.05 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001293/1.986, allocations: 415.8 kB / 0.7141 GB, free: 53.93 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.008848/1.995, allocations: 3.783 MB / 0.7178 GB, free: 52.23 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/1.995, allocations: 1.5 kB / 0.7178 GB, free: 52.23 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006558/2.001, allocations: 2.561 MB / 0.7203 GB, free: 50.84 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005544/2.007, allocations: 0.5849 MB / 0.7209 GB, free: 50.7 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/2.03, allocations: 7.738 MB / 0.7285 GB, free: 47.48 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006662/2.037, allocations: 3.33 MB / 0.7317 GB, free: 46.23 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/2.038, allocations: 224.9 kB / 0.7319 GB, free: 46.22 MB / 411.1 MB Notification: Performance of SimCode: time 1.262e-06/2.038, allocations: 0 / 0.7319 GB, free: 46.22 MB / 411.1 MB Notification: Performance of Templates: time 0.8615/2.9, allocations: 209.3 MB / 0.9363 GB, free: 38.6 MB / 443.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches