Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001236/0.001236, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.481/1.481, allocations: 205.4 MB / 224.2 MB, free: 9.039 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.0008516/0.0008516, allocations: 97.22 kB / 272.5 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002861, allocations: 8 kB / 329.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1995, allocations: 47.58 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2961/0.4957, allocations: 130.8 MB / 0.496 GB, free: 109.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.496, allocations: 89.8 kB / 0.4961 GB, free: 109.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2712/0.7672, allocations: 123.9 MB / 0.6171 GB, free: 0.707 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7672, allocations: 0 / 0.6171 GB, free: 0.707 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005272/0.7677, allocations: 143.8 kB / 0.6172 GB, free: 0.5664 MB / 378.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.01789/0.7856, allocations: 5.585 MB / 0.6227 GB, free: 10.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.7857, allocations: 8.031 kB / 0.6227 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006288/0.792, allocations: 1.016 MB / 0.6237 GB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01171/0.8038, allocations: 4.069 MB / 0.6276 GB, free: 5.723 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006099/0.8044, allocations: 403.2 kB / 0.628 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002577/0.807, allocations: 0.5275 MB / 0.6285 GB, free: 4.801 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02067/0.8277, allocations: 7.014 MB / 0.6354 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003148/0.8281, allocations: 15.84 kB / 0.6354 GB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001538/0.8296, allocations: 224 kB / 0.6356 GB, free: 13.35 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002852/0.8299, allocations: 246.6 kB / 0.6359 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.8437, allocations: 5.632 MB / 0.6414 GB, free: 7.465 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2282/1.072, allocations: 22.54 MB / 0.6634 GB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006249/1.078, allocations: 8.412 MB / 0.6716 GB, free: 37.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002975/1.081, allocations: 2.197 MB / 0.6737 GB, free: 37.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009639/1.091, allocations: 6.346 MB / 0.6799 GB, free: 36.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/1.091, allocations: 60 kB / 0.68 GB, free: 36.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=229): time 3.997e-06/1.091, allocations: 2.156 kB / 0.68 GB, free: 36.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=256): time 0.02462/1.116, allocations: 12.48 MB / 0.6922 GB, free: 34.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/1.116, allocations: 80.83 kB / 0.6923 GB, free: 34.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004226/1.12, allocations: 3.118 MB / 0.6953 GB, free: 34.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000325/1.12, allocations: 73.72 kB / 0.6954 GB, free: 34.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001361/1.122, allocations: 2.478 MB / 0.6978 GB, free: 33.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006516/1.122, allocations: 0.8881 MB / 0.6987 GB, free: 32.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/1.122, allocations: 65.34 kB / 0.6987 GB, free: 32.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/1.123, allocations: 435.1 kB / 0.6991 GB, free: 32.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/1.125, allocations: 1.402 MB / 0.7005 GB, free: 32.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/1.127, allocations: 2.391 MB / 0.7028 GB, free: 31.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004537/1.132, allocations: 4.053 MB / 0.7068 GB, free: 30.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.016e-05/1.132, allocations: 9.969 kB / 0.7068 GB, free: 30.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.007598/1.139, allocations: 4.945 MB / 0.7116 GB, free: 29.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/1.139, allocations: 16.81 kB / 0.7117 GB, free: 29.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.164e-05/1.139, allocations: 30.97 kB / 0.7117 GB, free: 29.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/1.141, allocations: 0.7265 MB / 0.7124 GB, free: 29.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/1.143, allocations: 0.7671 MB / 0.7131 GB, free: 29.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008034/1.152, allocations: 9.759 MB / 0.7227 GB, free: 22.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00331/1.155, allocations: 204.2 kB / 0.7229 GB, free: 22.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002986/1.155, allocations: 139.8 kB / 0.723 GB, free: 22.47 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (380): * Single equations (assignments): 374 * 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.003058/1.158, allocations: 1.582 MB / 0.7245 GB, free: 21.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008239/1.159, allocations: 359.4 kB / 0.7249 GB, free: 21.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006647/1.166, allocations: 4.378 MB / 0.7292 GB, free: 19.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/1.166, allocations: 23.12 kB / 0.7292 GB, free: 19.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/1.166, allocations: 15.61 kB / 0.7292 GB, free: 19.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.259e-05/1.166, allocations: 17.41 kB / 0.7292 GB, free: 19.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01526/1.181, allocations: 9.366 MB / 0.7384 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/1.181, allocations: 9.375 kB / 0.7384 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/1.183, allocations: 415.9 kB / 0.7388 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/1.185, allocations: 0.9719 MB / 0.7397 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002306/1.185, allocations: 69.64 kB / 0.7398 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/1.199, allocations: 15.98 MB / 0.7554 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/1.199, allocations: 6.375 kB / 0.7554 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009984/1.209, allocations: 6.253 MB / 0.7615 GB, free: 132 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/1.211, allocations: 0.7298 MB / 0.7622 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009944/1.212, allocations: 63.89 kB / 0.7623 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002218/1.214, allocations: 161.8 kB / 0.7624 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004558/1.215, allocations: 191.5 kB / 0.7626 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/1.215, allocations: 74.19 kB / 0.7627 GB, free: 15.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00421/1.219, allocations: 2.097 MB / 0.7647 GB, free: 14.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.219, allocations: 0 / 0.7647 GB, free: 14.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005114/1.224, allocations: 1.089 MB / 0.7658 GB, free: 13.52 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 192 * 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.001086/1.225, allocations: 0.5371 MB / 0.7663 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007729/1.233, allocations: 4.316 MB / 0.7705 GB, free: 9.258 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.233, allocations: 4 kB / 0.7705 GB, free: 9.254 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004813/1.238, allocations: 2.889 MB / 0.7734 GB, free: 6.637 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007556/1.245, allocations: 0.8925 MB / 0.7742 GB, free: 5.938 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/1.267, allocations: 12.07 MB / 0.786 GB, free: 10.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005026/1.272, allocations: 3.433 MB / 0.7894 GB, free: 8.195 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003508/1.276, allocations: 0.8058 MB / 0.7902 GB, free: 7.629 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007592/1.277, allocations: 241.1 kB / 0.7904 GB, free: 7.406 MB / 442.7 MB Notification: Performance of SimCode: time 9.01e-07/1.277, allocations: 0 / 0.7904 GB, free: 7.406 MB / 442.7 MB Notification: Performance of Templates: time 0.2978/1.575, allocations: 54.64 MB / 0.8437 GB, free: 75.75 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches