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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009446/0.0009446, allocations: 178 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 86.36 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.786e-05/1.789e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09506, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3714/0.4665, allocations: 124.6 MB / 487.7 MB, free: 3.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.4668, allocations: 86.89 kB / 487.8 MB, free: 3.777 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4863/0.9532, allocations: 114.5 MB / 0.5881 GB, free: 89.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.426e-06/0.9533, allocations: 0 / 0.5881 GB, free: 89.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006656/0.9539, allocations: 136.8 kB / 0.5883 GB, free: 89.79 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.01611/0.9701, allocations: 4.9 MB / 0.593 GB, free: 87.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.925e-05/0.9701, allocations: 15.19 kB / 0.5931 GB, free: 87.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006318/0.9765, allocations: 0.9481 MB / 0.594 GB, free: 87.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01348/0.99, allocations: 4.378 MB / 0.5983 GB, free: 84.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/0.9903, allocations: 172.2 kB / 0.5984 GB, free: 84.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001815/0.9921, allocations: 305.8 kB / 0.5987 GB, free: 84.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01084/1.003, allocations: 4.93 MB / 0.6035 GB, free: 81.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/1.015, allocations: 5.811 MB / 0.6092 GB, free: 75.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001368/1.015, allocations: 15.89 kB / 0.6092 GB, free: 75.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004618/1.015, allocations: 11.95 kB / 0.6092 GB, free: 75.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001797/1.015, allocations: 230.2 kB / 0.6094 GB, free: 75.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0301/1.046, allocations: 20.17 MB / 0.6291 GB, free: 55.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00561/1.051, allocations: 8.401 MB / 0.6373 GB, free: 45.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002484/1.054, allocations: 1.915 MB / 0.6392 GB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01039/1.064, allocations: 5.868 MB / 0.6449 GB, free: 38.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/1.064, allocations: 56.56 kB / 0.645 GB, free: 37.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=212): time 5.049e-06/1.064, allocations: 0 / 0.645 GB, free: 37.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=236): time 0.01392/1.078, allocations: 8.187 MB / 0.653 GB, free: 29.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/1.078, allocations: 77.41 kB / 0.6531 GB, free: 29.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002726/1.081, allocations: 2.039 MB / 0.6551 GB, free: 27.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001953/1.081, allocations: 25.7 kB / 0.6551 GB, free: 27.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009683/1.082, allocations: 2.347 MB / 0.6574 GB, free: 25.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000482/1.083, allocations: 0.7814 MB / 0.6581 GB, free: 24.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/1.083, allocations: 0 / 0.6581 GB, free: 24.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/1.083, allocations: 436.1 kB / 0.6586 GB, free: 23.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/1.084, allocations: 1.193 MB / 0.6597 GB, free: 22.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/1.086, allocations: 2.069 MB / 0.6617 GB, free: 20.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002185/1.088, allocations: 1.681 MB / 0.6634 GB, free: 18.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.414e-05/1.088, allocations: 12 kB / 0.6634 GB, free: 18.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.00609/1.094, allocations: 4.274 MB / 0.6676 GB, free: 14.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.281e-05/1.094, allocations: 16 kB / 0.6676 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.632e-05/1.094, allocations: 32 kB / 0.6676 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001464/1.096, allocations: 0.7033 MB / 0.6683 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/1.098, allocations: 0.702 MB / 0.669 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007185/1.106, allocations: 8.997 MB / 0.6778 GB, free: 3.297 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002668/1.108, allocations: 131.7 kB / 0.6779 GB, free: 3.168 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/1.109, allocations: 128 kB / 0.678 GB, free: 3.043 MB / 410.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 (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.0004742/1.109, allocations: 192 kB / 0.6782 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004445/1.109, allocations: 292.4 kB / 0.6785 GB, free: 2.559 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2378/1.347, allocations: 3.904 MB / 0.6823 GB, free: 79.22 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-05/1.347, allocations: 27.22 kB / 0.6823 GB, free: 79.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/1.347, allocations: 9.562 kB / 0.6823 GB, free: 79.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.61e-05/1.347, allocations: 12.42 kB / 0.6823 GB, free: 79.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01491/1.362, allocations: 7.947 MB / 0.6901 GB, free: 78.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/1.362, allocations: 3.125 kB / 0.6901 GB, free: 78.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/1.364, allocations: 390.9 kB / 0.6905 GB, free: 78.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002639/1.367, allocations: 0.9152 MB / 0.6914 GB, free: 78.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000244/1.367, allocations: 31.64 kB / 0.6914 GB, free: 78.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/1.382, allocations: 14.85 MB / 0.7059 GB, free: 69.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.986e-06/1.382, allocations: 13.28 kB / 0.7059 GB, free: 69.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008453/1.39, allocations: 5.849 MB / 0.7116 GB, free: 69.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/1.392, allocations: 0.6349 MB / 0.7123 GB, free: 68.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004872/1.392, allocations: 20.12 kB / 0.7123 GB, free: 68.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/1.394, allocations: 118.7 kB / 0.7124 GB, free: 68.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003963/1.394, allocations: 176.7 kB / 0.7126 GB, free: 68.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/1.394, allocations: 69.97 kB / 0.7126 GB, free: 68.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002202/1.396, allocations: 1.507 MB / 0.7141 GB, free: 68.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.396, allocations: 0 / 0.7141 GB, free: 68.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002994/1.399, allocations: 0.8905 MB / 0.715 GB, free: 68.79 MB / 410.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 (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.0008057/1.4, allocations: 414.9 kB / 0.7154 GB, free: 68.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006568/1.407, allocations: 3.781 MB / 0.719 GB, free: 68.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.407, allocations: 5.391 kB / 0.7191 GB, free: 68.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003539/1.41, allocations: 2.561 MB / 0.7216 GB, free: 67.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003261/1.414, allocations: 0.5876 MB / 0.7221 GB, free: 67.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/1.428, allocations: 7.726 MB / 0.7297 GB, free: 63.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003207/1.431, allocations: 3.401 MB / 0.733 GB, free: 62.67 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003024/1.435, allocations: 0.7235 MB / 0.7337 GB, free: 62.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005901/1.435, allocations: 202.4 kB / 0.7339 GB, free: 62.58 MB / 410.7 MB Notification: Performance of SimCode: time 1.263e-06/1.435, allocations: 0 / 0.7339 GB, free: 62.58 MB / 410.7 MB Notification: Performance of Templates: time 0.06326/1.498, allocations: 39.37 MB / 0.7723 GB, free: 45.7 MB / 410.7 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