Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00227/0.00227, allocations: 180.9 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.043/2.043, 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.001085/0.001085, allocations: 78.67 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.088e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/0.09374, allocations: 47.58 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4675/0.5613, allocations: 130.4 MB / 499.5 MB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.5617, allocations: 96.69 kB / 499.5 MB, free: 11.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7499/1.312, allocations: 124.2 MB / 0.6091 GB, free: 75.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.312, allocations: 4 kB / 0.6091 GB, free: 75.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005722/1.312, allocations: 139.8 kB / 0.6093 GB, free: 75.12 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02037/1.333, allocations: 5.106 MB / 0.6142 GB, free: 69.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.333, allocations: 8.031 kB / 0.6142 GB, free: 69.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007737/1.34, allocations: 1.008 MB / 0.6152 GB, free: 68.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01642/1.357, allocations: 4.604 MB / 0.6197 GB, free: 64.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004895/1.357, allocations: 402.8 kB / 0.6201 GB, free: 63.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002138/1.36, allocations: 0.531 MB / 0.6206 GB, free: 63.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0217/1.381, allocations: 6.827 MB / 0.6273 GB, free: 56.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003337/1.382, allocations: 11.91 kB / 0.6273 GB, free: 56.28 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001933/1.384, allocations: 231.9 kB / 0.6275 GB, free: 56.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000311/1.384, allocations: 246.6 kB / 0.6278 GB, free: 55.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01794/1.402, allocations: 5.419 MB / 0.6331 GB, free: 50.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0593/1.461, allocations: 22.54 MB / 0.6551 GB, free: 27.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01234/1.474, allocations: 8.277 MB / 0.6631 GB, free: 18.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005743/1.48, allocations: 2.11 MB / 0.6652 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01989/1.499, allocations: 6.31 MB / 0.6714 GB, free: 9.539 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/1.5, allocations: 64.48 kB / 0.6714 GB, free: 9.465 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 5.46e-06/1.5, allocations: 4 kB / 0.6714 GB, free: 9.461 MB / 410.7 MB Notification: Performance of matching and sorting (n=254): time 0.03613/1.536, allocations: 10.07 MB / 0.6813 GB, free: 15.33 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/1.536, allocations: 77.41 kB / 0.6813 GB, free: 15.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008064/1.544, allocations: 2.725 MB / 0.684 GB, free: 12.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006445/1.545, allocations: 69.7 kB / 0.6841 GB, free: 12.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002746/1.547, allocations: 2.317 MB / 0.6863 GB, free: 10.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001597/1.549, allocations: 0.8742 MB / 0.6872 GB, free: 9.215 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004158/1.55, allocations: 68 kB / 0.6872 GB, free: 9.148 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003558/1.55, allocations: 437.9 kB / 0.6877 GB, free: 8.711 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004101/1.554, allocations: 1.322 MB / 0.689 GB, free: 7.387 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005128/1.559, allocations: 2.293 MB / 0.6912 GB, free: 4.664 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005081/1.564, allocations: 1.745 MB / 0.6929 GB, free: 2.895 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.613e-05/1.564, allocations: 16 kB / 0.6929 GB, free: 2.879 MB / 426.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.3217/1.886, allocations: 4.535 MB / 0.6973 GB, free: 82.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.459e-05/1.886, allocations: 17.84 kB / 0.6974 GB, free: 82.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.658e-05/1.886, allocations: 31.16 kB / 0.6974 GB, free: 82.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003381/1.89, allocations: 0.7271 MB / 0.6981 GB, free: 82.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006207/1.896, allocations: 0.758 MB / 0.6988 GB, free: 82.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0158/1.912, allocations: 9.757 MB / 0.7084 GB, free: 77.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004971/1.917, allocations: 204 kB / 0.7086 GB, free: 77.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000802/1.918, allocations: 142.9 kB / 0.7087 GB, free: 77.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (378): * Single equations (assignments): 372 * 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%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007814/1.918, allocations: 301.9 kB / 0.709 GB, free: 77.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/1.92, allocations: 347 kB / 0.7093 GB, free: 77.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/1.933, allocations: 4.221 MB / 0.7134 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.401e-05/1.933, allocations: 25.5 kB / 0.7135 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.527e-05/1.933, allocations: 9.688 kB / 0.7135 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.338e-05/1.933, allocations: 13.53 kB / 0.7135 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02818/1.961, allocations: 9.205 MB / 0.7225 GB, free: 76.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-05/1.961, allocations: 3.781 kB / 0.7225 GB, free: 76.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003718/1.965, allocations: 410 kB / 0.7229 GB, free: 76.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004457/1.969, allocations: 0.9598 MB / 0.7238 GB, free: 76.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006297/1.97, allocations: 66.75 kB / 0.7239 GB, free: 76.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02282/1.993, allocations: 15.93 MB / 0.7394 GB, free: 67.06 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/1.993, allocations: 5.656 kB / 0.7394 GB, free: 67.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/2.008, allocations: 6.377 MB / 0.7457 GB, free: 65 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002838/2.011, allocations: 0.7237 MB / 0.7464 GB, free: 64.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001263/2.013, allocations: 60.31 kB / 0.7464 GB, free: 64.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004003/2.017, allocations: 163.8 kB / 0.7466 GB, free: 64.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000941/2.018, allocations: 194.2 kB / 0.7468 GB, free: 64.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003134/2.018, allocations: 75.78 kB / 0.7468 GB, free: 64.47 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005604/2.024, allocations: 2.056 MB / 0.7488 GB, free: 63.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.493e-06/2.024, allocations: 2.438 kB / 0.7488 GB, free: 63.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006312/2.03, allocations: 1.089 MB / 0.7499 GB, free: 63.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001589/2.032, allocations: 0.5916 MB / 0.7505 GB, free: 63.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01035/2.042, allocations: 4.147 MB / 0.7545 GB, free: 61.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/2.042, allocations: 2.344 kB / 0.7545 GB, free: 61.54 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00729/2.049, allocations: 2.779 MB / 0.7573 GB, free: 60.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007165/2.057, allocations: 0.8869 MB / 0.7581 GB, free: 59.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02429/2.081, allocations: 8.288 MB / 0.7662 GB, free: 56.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00615/2.087, allocations: 3.445 MB / 0.7696 GB, free: 55.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/2.089, allocations: 266.5 kB / 0.7698 GB, free: 55.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.754e-06/2.089, allocations: 0 / 0.7698 GB, free: 55.05 MB / 426.7 MB Notification: Performance of Templates: time 0.6669/2.756, allocations: 225.4 MB / 0.99 GB, free: 9.668 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches