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.00186/0.00186, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0009518/0.0009519, allocations: 92.86 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005149/0.000515, allocations: 12 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3184, allocations: 47.57 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01599/0.3344, allocations: 17.87 MB / 393 MB, free: 30.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3454, allocations: 5.595 MB / 398.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004277/0.3497, allocations: 107.5 kB / 398.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004019/0.3538, allocations: 0.986 MB / 399.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006382/0.3602, allocations: 1.604 MB / 401.3 MB, free: 22.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003301/0.3635, allocations: 0.8335 MB / 402.1 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008101/0.3716, allocations: 6.217 MB / 408.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007325/0.379, allocations: 4.461 MB / 412.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003599/0.3826, allocations: 1.996 MB / 414.8 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00428/0.3869, allocations: 2.661 MB / 417.4 MB, free: 6.172 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0016/0.3886, allocations: 324 kB / 417.8 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003068/0.3916, allocations: 0.6089 MB / 418.4 MB, free: 5.246 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002247/0.3939, allocations: 1.374 MB / 419.7 MB, free: 3.867 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00529/0.3992, allocations: 2.649 MB / 422.4 MB, free: 1.199 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009947/0.4092, allocations: 8.372 MB / 430.8 MB, free: 8.805 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4092, allocations: 0 / 430.8 MB, free: 8.805 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4093, allocations: 0 / 430.8 MB, free: 8.805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000348/0.4096, allocations: 0 / 430.8 MB, free: 8.805 MB / 314.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.01461/0.4242, allocations: 5.525 MB / 436.3 MB, free: 3.199 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4243, allocations: 16.03 kB / 436.3 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005569/0.4299, allocations: 1.013 MB / 437.3 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007673/0.4376, allocations: 3.271 MB / 440.6 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005381/0.4381, allocations: 398.8 kB / 441 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001848/0.44, allocations: 0.5114 MB / 441.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01789/0.4579, allocations: 6.74 MB / 448.2 MB, free: 7.102 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002843/0.4582, allocations: 15.84 kB / 448.2 MB, free: 7.086 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001404/0.4597, allocations: 208 kB / 448.4 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000328/0.46, allocations: 246.2 kB / 448.7 MB, free: 6.641 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01447/0.4745, allocations: 5.728 MB / 454.4 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04433/0.5189, allocations: 21.2 MB / 475.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009117/0.528, allocations: 8.541 MB / 484.2 MB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003993/0.5321, allocations: 2.124 MB / 486.3 MB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01324/0.5453, allocations: 5.962 MB / 492.2 MB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.71e-05/0.5455, allocations: 56.56 kB / 492.3 MB, free: 9.418 MB / 378.7 MB Notification: Performance of pre-optimization done (n=205): time 6.212e-06/0.5455, allocations: 0 / 492.3 MB, free: 9.418 MB / 378.7 MB Notification: Performance of matching and sorting (n=222): time 0.2219/0.7674, allocations: 10.38 MB / 0.4909 GB, free: 102.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.7675, allocations: 80.25 kB / 0.491 GB, free: 102.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006298/0.7738, allocations: 2.883 MB / 0.4938 GB, free: 101.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004589/0.7743, allocations: 62.27 kB / 0.4938 GB, free: 101.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002003/0.7763, allocations: 2.358 MB / 0.4961 GB, free: 100.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009712/0.7773, allocations: 0.7611 MB / 0.4969 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003407/0.7776, allocations: 62.03 kB / 0.4969 GB, free: 100 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.7779, allocations: 424.1 kB / 0.4974 GB, free: 99.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/0.7806, allocations: 1.275 MB / 0.4986 GB, free: 99.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003115/0.7837, allocations: 2.181 MB / 0.5007 GB, free: 97.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005817/0.7895, allocations: 3.681 MB / 0.5043 GB, free: 95.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.871e-05/0.7896, allocations: 8.656 kB / 0.5043 GB, free: 95.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008746/0.7984, allocations: 4.455 MB / 0.5087 GB, free: 93.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.7984, allocations: 15.44 kB / 0.5087 GB, free: 93.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-05/0.7985, allocations: 34.03 kB / 0.5087 GB, free: 93.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.7997, allocations: 0.5093 MB / 0.5092 GB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002529/0.8022, allocations: 0.6969 MB / 0.5099 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006877/0.8091, allocations: 9.337 MB / 0.519 GB, free: 84.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003633/0.8128, allocations: 177.4 kB / 0.5192 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006324/0.8134, allocations: 130.7 kB / 0.5193 GB, free: 84.65 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 5 * 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: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003576/0.817, allocations: 1.52 MB / 0.5208 GB, free: 83.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009522/0.818, allocations: 324.1 kB / 0.5211 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006648/0.8247, allocations: 3.894 MB / 0.5249 GB, free: 79.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.8247, allocations: 20 kB / 0.5249 GB, free: 79.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-05/0.8248, allocations: 8 kB / 0.5249 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/0.8248, allocations: 7.969 kB / 0.5249 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01545/0.8402, allocations: 8.509 MB / 0.5333 GB, free: 70.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/0.8403, allocations: 8.094 kB / 0.5333 GB, free: 70.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.8419, allocations: 391.4 kB / 0.5336 GB, free: 70.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/0.8437, allocations: 0.7219 MB / 0.5343 GB, free: 69.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002112/0.8439, allocations: 59.97 kB / 0.5344 GB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.8545, allocations: 15.19 MB / 0.5492 GB, free: 53.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.8545, allocations: 7.938 kB / 0.5492 GB, free: 53.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007472/0.862, allocations: 5.575 MB / 0.5547 GB, free: 47.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/0.8634, allocations: 0.6571 MB / 0.5553 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004282/0.8638, allocations: 63.86 kB / 0.5554 GB, free: 46.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.8652, allocations: 143.9 kB / 0.5555 GB, free: 46.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.8656, allocations: 166.7 kB / 0.5557 GB, free: 46.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.8657, allocations: 67.98 kB / 0.5558 GB, free: 46.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002444/0.8682, allocations: 1.947 MB / 0.5577 GB, free: 44.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8682, allocations: 0 / 0.5577 GB, free: 44.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002827/0.871, allocations: 0.9323 MB / 0.5586 GB, free: 43.45 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(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.0004961/0.8715, allocations: 250.3 kB / 0.5588 GB, free: 43.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004956/0.8765, allocations: 3.974 MB / 0.5627 GB, free: 39.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.8765, allocations: 1 kB / 0.5627 GB, free: 39.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003181/0.8797, allocations: 2.658 MB / 0.5653 GB, free: 36.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004612/0.8843, allocations: 0.8007 MB / 0.5661 GB, free: 35.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.898, allocations: 11.41 MB / 0.5772 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002417/0.9005, allocations: 3.219 MB / 0.5804 GB, free: 20.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.9015, allocations: 243.4 kB / 0.5806 GB, free: 20.62 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.9015, allocations: 0 / 0.5806 GB, free: 20.62 MB / 378.7 MB Notification: Performance of Templates: time 0.5504/1.452, allocations: 249.7 MB / 0.8244 GB, free: 148.4 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/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches