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.002226/0.002231, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 90.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.705e-05/3.711e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09662, allocations: 47.57 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5189/0.6156, allocations: 125 MB / 494.1 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004481/0.6161, allocations: 84.95 kB / 494.2 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7281/1.344, allocations: 116 MB / 0.5959 GB, free: 86.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.003e-06/1.344, allocations: 0 / 0.5959 GB, free: 86.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005373/1.345, allocations: 129 kB / 0.596 GB, free: 86.68 MB / 410.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.01959/1.365, allocations: 4.893 MB / 0.6008 GB, free: 82.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/1.365, allocations: 8.031 kB / 0.6008 GB, free: 82.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007172/1.372, allocations: 0.9521 MB / 0.6017 GB, free: 81.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/1.387, allocations: 4.397 MB / 0.606 GB, free: 77.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004739/1.388, allocations: 389.3 kB / 0.6064 GB, free: 77.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002112/1.39, allocations: 0.5103 MB / 0.6069 GB, free: 76.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02148/1.412, allocations: 6.557 MB / 0.6133 GB, free: 69.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002387/1.412, allocations: 7.906 kB / 0.6133 GB, free: 69.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001253/1.413, allocations: 224.9 kB / 0.6135 GB, free: 69.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002783/1.413, allocations: 234.2 kB / 0.6137 GB, free: 69.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01698/1.43, allocations: 5.238 MB / 0.6188 GB, free: 64.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05724/1.488, allocations: 21.14 MB / 0.6395 GB, free: 42.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01549/1.503, allocations: 8.487 MB / 0.6478 GB, free: 33.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006275/1.51, allocations: 2.003 MB / 0.6497 GB, free: 31.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0215/1.531, allocations: 6.002 MB / 0.6556 GB, free: 25.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.925e-05/1.531, allocations: 60.5 kB / 0.6557 GB, free: 25.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=208): time 5.23e-06/1.531, allocations: 0 / 0.6557 GB, free: 25.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=232): time 0.03513/1.566, allocations: 9.286 MB / 0.6647 GB, free: 15.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/1.567, allocations: 77.41 kB / 0.6648 GB, free: 15.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006771/1.573, allocations: 2.508 MB / 0.6672 GB, free: 13.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007754/1.574, allocations: 65.7 kB / 0.6673 GB, free: 13.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001838/1.576, allocations: 2.19 MB / 0.6694 GB, free: 10.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/1.577, allocations: 0.802 MB / 0.6702 GB, free: 10.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003232/1.578, allocations: 60 kB / 0.6703 GB, free: 10.08 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001964/1.578, allocations: 429 kB / 0.6707 GB, free: 9.652 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/1.581, allocations: 1.244 MB / 0.6719 GB, free: 8.406 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004827/1.586, allocations: 2.12 MB / 0.674 GB, free: 5.898 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004233/1.59, allocations: 1.634 MB / 0.6756 GB, free: 4.238 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.272e-05/1.59, allocations: 8 kB / 0.6756 GB, free: 4.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01339/1.604, allocations: 4.278 MB / 0.6798 GB, free: 15.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.423e-05/1.604, allocations: 23.44 kB / 0.6798 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.351e-05/1.604, allocations: 24 kB / 0.6798 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003577/1.607, allocations: 0.7186 MB / 0.6805 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006108/1.614, allocations: 0.6981 MB / 0.6812 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0184/1.632, allocations: 9.386 MB / 0.6904 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005484/1.638, allocations: 191.7 kB / 0.6905 GB, free: 4.277 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007927/1.638, allocations: 128 kB / 0.6907 GB, free: 4.152 MB / 426.7 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 (343): * Single equations (assignments): 337 * 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.0008948/1.639, allocations: 288 kB / 0.6909 GB, free: 3.863 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001285/1.641, allocations: 316.2 kB / 0.6912 GB, free: 3.551 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3304/1.971, allocations: 3.997 MB / 0.6951 GB, free: 91.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-05/1.971, allocations: 23.75 kB / 0.6952 GB, free: 91.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-05/1.971, allocations: 10.41 kB / 0.6952 GB, free: 91.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.18e-05/1.971, allocations: 11.44 kB / 0.6952 GB, free: 91.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02698/1.998, allocations: 8.636 MB / 0.7036 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.008e-05/1.998, allocations: 0 / 0.7036 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00346/2.002, allocations: 381.7 kB / 0.704 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004525/2.006, allocations: 0.936 MB / 0.7049 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000584/2.007, allocations: 62.16 kB / 0.705 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0225/2.03, allocations: 15.46 MB / 0.7201 GB, free: 81.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/2.03, allocations: 3.688 kB / 0.7201 GB, free: 81.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01387/2.043, allocations: 5.904 MB / 0.7258 GB, free: 80.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002554/2.046, allocations: 0.6716 MB / 0.7265 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/2.047, allocations: 58.55 kB / 0.7265 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003251/2.05, allocations: 154.8 kB / 0.7267 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006921/2.051, allocations: 169.4 kB / 0.7268 GB, free: 80.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002454/2.051, allocations: 72.83 kB / 0.7269 GB, free: 80.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004591/2.056, allocations: 1.885 MB / 0.7288 GB, free: 80.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.012e-06/2.056, allocations: 2.156 kB / 0.7288 GB, free: 80.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005324/2.061, allocations: 1.021 MB / 0.7298 GB, free: 80.41 MB / 426.7 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 (178): * Single equations (assignments): 171 * 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,75.0%) 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.001298/2.063, allocations: 0.522 MB / 0.7303 GB, free: 80.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008988/2.072, allocations: 3.945 MB / 0.7341 GB, free: 79.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/2.072, allocations: 0 / 0.7341 GB, free: 79.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006567/2.078, allocations: 2.676 MB / 0.7367 GB, free: 78.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006164/2.085, allocations: 0.7737 MB / 0.7375 GB, free: 78.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/2.105, allocations: 7.88 MB / 0.7452 GB, free: 74.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004475/2.11, allocations: 3.325 MB / 0.7484 GB, free: 73.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001701/2.112, allocations: 245.9 kB / 0.7487 GB, free: 73.55 MB / 426.7 MB Notification: Performance of SimCode: time 2.033e-06/2.112, allocations: 0 / 0.7487 GB, free: 73.55 MB / 426.7 MB Notification: Performance of Templates: time 0.7725/2.884, allocations: 212.6 MB / 0.9563 GB, free: 46.24 MB / 442.7 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