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.002258/0.002259, allocations: 172.4 kB / 14.1 MB, free: 1.223 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.585/1.585, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009509/0.0009507, allocations: 90.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.187e-05/3.19e-05, allocations: 3.984 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09095, allocations: 47.57 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3618/0.4528, allocations: 130.4 MB / 0.4887 GB, free: 11.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.4531, allocations: 83.39 kB / 0.4887 GB, free: 11.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4933/0.9464, allocations: 124.2 MB / 0.61 GB, free: 74.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.9465, allocations: 0 / 0.61 GB, free: 74.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004723/0.947, allocations: 143.8 kB / 0.6102 GB, free: 74.78 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.01427/0.9612, allocations: 5.113 MB / 0.6152 GB, free: 69.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.9613, allocations: 8.031 kB / 0.6152 GB, free: 69.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005926/0.9672, allocations: 1.015 MB / 0.6162 GB, free: 68.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01134/0.9786, allocations: 4.585 MB / 0.6206 GB, free: 63.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003394/0.979, allocations: 406.8 kB / 0.621 GB, free: 63.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001842/0.9808, allocations: 0.5271 MB / 0.6215 GB, free: 62.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01544/0.9963, allocations: 6.827 MB / 0.6282 GB, free: 55.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001491/0.9965, allocations: 15.84 kB / 0.6282 GB, free: 55.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005936/0.9971, allocations: 232 kB / 0.6284 GB, free: 55.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001746/0.9973, allocations: 246.6 kB / 0.6287 GB, free: 55.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/1.008, allocations: 5.423 MB / 0.634 GB, free: 50.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03765/1.045, allocations: 22.54 MB / 0.656 GB, free: 26.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006434/1.052, allocations: 8.277 MB / 0.6641 GB, free: 17.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002862/1.055, allocations: 2.106 MB / 0.6661 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0102/1.065, allocations: 6.314 MB / 0.6723 GB, free: 9.184 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/1.065, allocations: 56.5 kB / 0.6723 GB, free: 9.117 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 4.579e-06/1.065, allocations: 0 / 0.6723 GB, free: 9.117 MB / 410.7 MB Notification: Performance of matching and sorting (n=254): time 0.0219/1.087, allocations: 10.07 MB / 0.6822 GB, free: 14.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/1.087, allocations: 81.41 kB / 0.6822 GB, free: 14.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004614/1.092, allocations: 2.733 MB / 0.6849 GB, free: 12.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004355/1.092, allocations: 65.7 kB / 0.685 GB, free: 12.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001718/1.094, allocations: 2.491 MB / 0.6874 GB, free: 9.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009672/1.095, allocations: 0.8703 MB / 0.6883 GB, free: 8.688 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/1.095, allocations: 68 kB / 0.6883 GB, free: 8.621 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002005/1.095, allocations: 432.8 kB / 0.6887 GB, free: 8.191 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/1.097, allocations: 1.322 MB / 0.69 GB, free: 6.867 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002646/1.1, allocations: 2.293 MB / 0.6923 GB, free: 4.145 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002513/1.102, allocations: 1.737 MB / 0.694 GB, free: 2.383 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/1.102, allocations: 11.94 kB / 0.694 GB, free: 2.371 MB / 426.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.2734/1.376, allocations: 4.761 MB / 0.6986 GB, free: 83.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.39e-05/1.376, allocations: 18.91 kB / 0.6986 GB, free: 83.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.619e-05/1.376, allocations: 31.16 kB / 0.6987 GB, free: 83.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00266/1.379, allocations: 0.7268 MB / 0.6994 GB, free: 83.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004978/1.384, allocations: 0.7555 MB / 0.7001 GB, free: 83.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01398/1.398, allocations: 9.764 MB / 0.7097 GB, free: 78.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004965/1.403, allocations: 206.4 kB / 0.7099 GB, free: 78.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008179/1.404, allocations: 141.7 kB / 0.71 GB, free: 78.39 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.0009013/1.404, allocations: 305.1 kB / 0.7103 GB, free: 78.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001434/1.406, allocations: 347.5 kB / 0.7106 GB, free: 78.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/1.417, allocations: 4.22 MB / 0.7147 GB, free: 77.83 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.819e-05/1.418, allocations: 24.12 kB / 0.7148 GB, free: 77.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.805e-05/1.418, allocations: 10.88 kB / 0.7148 GB, free: 77.83 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.871e-05/1.418, allocations: 12.33 kB / 0.7148 GB, free: 77.83 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02907/1.447, allocations: 9.201 MB / 0.7238 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-05/1.447, allocations: 5.094 kB / 0.7238 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002723/1.45, allocations: 415.3 kB / 0.7242 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003409/1.453, allocations: 0.9545 MB / 0.7251 GB, free: 76.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004792/1.453, allocations: 69.89 kB / 0.7252 GB, free: 76.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02093/1.474, allocations: 15.93 MB / 0.7407 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/1.474, allocations: 6.547 kB / 0.7407 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01157/1.486, allocations: 6.366 MB / 0.7469 GB, free: 65.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002033/1.488, allocations: 0.7221 MB / 0.7476 GB, free: 65.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006599/1.489, allocations: 57.59 kB / 0.7477 GB, free: 65.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/1.491, allocations: 165.4 kB / 0.7479 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004619/1.491, allocations: 194.8 kB / 0.748 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/1.491, allocations: 75.31 kB / 0.7481 GB, free: 65.14 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003471/1.495, allocations: 2.056 MB / 0.7501 GB, free: 64.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.495, allocations: 0 / 0.7501 GB, free: 64.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004513/1.499, allocations: 1.091 MB / 0.7512 GB, free: 64.23 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.001138/1.5, allocations: 0.5973 MB / 0.7518 GB, free: 64.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005968/1.506, allocations: 4.144 MB / 0.7558 GB, free: 62.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/1.506, allocations: 5.25 kB / 0.7558 GB, free: 62.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005004/1.511, allocations: 2.783 MB / 0.7585 GB, free: 60.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004851/1.516, allocations: 0.8798 MB / 0.7594 GB, free: 60.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.533, allocations: 8.271 MB / 0.7675 GB, free: 57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004032/1.537, allocations: 3.531 MB / 0.7709 GB, free: 55.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003368/1.54, allocations: 0.7947 MB / 0.7717 GB, free: 55.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007762/1.541, allocations: 244.1 kB / 0.7719 GB, free: 55.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/1.541, allocations: 0 / 0.7719 GB, free: 55.59 MB / 426.7 MB Notification: Performance of Templates: time 0.08434/1.625, allocations: 54.64 MB / 0.8253 GB, free: 17.61 MB / 426.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/jenkins/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