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.001634/0.001634, allocations: 178.4 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.56/1.56, allocations: 205.3 MB / 214.4 MB, free: 1.672 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.000877/0.0008769, allocations: 82.7 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.506e-05/1.509e-05, allocations: 4 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08374/0.08377, allocations: 47.59 MB / 363.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3512/0.435, allocations: 129.9 MB / 493 MB, free: 14.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.4353, allocations: 90.33 kB / 493.1 MB, free: 14.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5014/0.9367, allocations: 122.5 MB / 0.6012 GB, free: 85.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.9368, allocations: 0 / 0.6012 GB, free: 85.06 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006544/0.9375, allocations: 139.8 kB / 0.6014 GB, free: 84.93 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.01609/0.9536, allocations: 5.102 MB / 0.6063 GB, free: 79.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.9536, allocations: 8.031 kB / 0.6063 GB, free: 79.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005806/0.9594, allocations: 1.008 MB / 0.6073 GB, free: 78.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/0.9706, allocations: 4.59 MB / 0.6118 GB, free: 74.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002763/0.9709, allocations: 187.9 kB / 0.612 GB, free: 73.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001628/0.9726, allocations: 319.8 kB / 0.6123 GB, free: 73.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01024/0.9828, allocations: 5.102 MB / 0.6173 GB, free: 68.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01481/0.9977, allocations: 6.049 MB / 0.6232 GB, free: 62.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002669/0.998, allocations: 11.84 kB / 0.6232 GB, free: 62.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001356/0.9994, allocations: 4 kB / 0.6232 GB, free: 62.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002229/0.9996, allocations: 250.6 kB / 0.6234 GB, free: 62.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03687/1.036, allocations: 21.5 MB / 0.6444 GB, free: 40.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006634/1.043, allocations: 8.18 MB / 0.6524 GB, free: 31.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00309/1.046, allocations: 2.017 MB / 0.6544 GB, free: 29.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01113/1.057, allocations: 6.164 MB / 0.6604 GB, free: 22.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/1.058, allocations: 64.59 kB / 0.6605 GB, free: 22.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 5.069e-06/1.058, allocations: 0 / 0.6605 GB, free: 22.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=258): time 0.01541/1.073, allocations: 8.693 MB / 0.669 GB, free: 14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/1.073, allocations: 77.44 kB / 0.669 GB, free: 13.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003519/1.077, allocations: 2.206 MB / 0.6712 GB, free: 11.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003216/1.077, allocations: 25.7 kB / 0.6712 GB, free: 11.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/1.078, allocations: 2.492 MB / 0.6737 GB, free: 9.145 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006404/1.079, allocations: 0.8545 MB / 0.6745 GB, free: 8.277 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/1.079, allocations: 0 / 0.6745 GB, free: 8.277 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/1.079, allocations: 436.8 kB / 0.6749 GB, free: 7.844 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001545/1.081, allocations: 1.268 MB / 0.6761 GB, free: 6.574 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001809/1.082, allocations: 2.224 MB / 0.6783 GB, free: 3.922 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002384/1.085, allocations: 1.823 MB / 0.6801 GB, free: 2.078 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/1.085, allocations: 8 kB / 0.6801 GB, free: 2.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.2468/1.332, allocations: 4.548 MB / 0.6845 GB, free: 75.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.129e-05/1.332, allocations: 18.69 kB / 0.6846 GB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.756e-05/1.332, allocations: 31.64 kB / 0.6846 GB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/1.334, allocations: 0.7111 MB / 0.6853 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003243/1.337, allocations: 0.7646 MB / 0.686 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009684/1.347, allocations: 9.345 MB / 0.6952 GB, free: 70.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003312/1.35, allocations: 132.8 kB / 0.6953 GB, free: 70.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005015/1.35, allocations: 145.4 kB / 0.6954 GB, free: 70.14 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (382): * Single equations (assignments): 376 * 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.0005806/1.351, allocations: 198.2 kB / 0.6956 GB, free: 70.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007323/1.352, allocations: 320.7 kB / 0.6959 GB, free: 70.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008339/1.36, allocations: 4.137 MB / 0.7 GB, free: 69.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.862e-05/1.36, allocations: 24.12 kB / 0.7 GB, free: 69.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/1.36, allocations: 10.69 kB / 0.7 GB, free: 69.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.573e-05/1.36, allocations: 14.34 kB / 0.7 GB, free: 69.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/1.374, allocations: 8.469 MB / 0.7083 GB, free: 68.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/1.374, allocations: 3.5 kB / 0.7083 GB, free: 68.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001738/1.376, allocations: 424.8 kB / 0.7087 GB, free: 68.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002248/1.378, allocations: 0.9479 MB / 0.7096 GB, free: 68.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002092/1.379, allocations: 33.84 kB / 0.7096 GB, free: 68.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/1.391, allocations: 15.32 MB / 0.7246 GB, free: 60.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/1.391, allocations: 8.781 kB / 0.7246 GB, free: 60.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008528/1.4, allocations: 6.3 MB / 0.7308 GB, free: 58.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/1.401, allocations: 0.6814 MB / 0.7314 GB, free: 58.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004129/1.402, allocations: 17.27 kB / 0.7314 GB, free: 58.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/1.403, allocations: 128.4 kB / 0.7316 GB, free: 58.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004287/1.404, allocations: 191.1 kB / 0.7317 GB, free: 58.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/1.404, allocations: 73.69 kB / 0.7318 GB, free: 58.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002565/1.407, allocations: 1.623 MB / 0.7334 GB, free: 57.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.407, allocations: 0 / 0.7334 GB, free: 57.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004578/1.411, allocations: 0.9466 MB / 0.7343 GB, free: 57.36 MB / 410.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 (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.0009818/1.412, allocations: 490 kB / 0.7348 GB, free: 57.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005555/1.418, allocations: 3.97 MB / 0.7387 GB, free: 55.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/1.418, allocations: 3.062 kB / 0.7387 GB, free: 55.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00337/1.421, allocations: 2.679 MB / 0.7413 GB, free: 54.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003889/1.425, allocations: 0.6863 MB / 0.742 GB, free: 53.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/1.442, allocations: 8.08 MB / 0.7499 GB, free: 50.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003067/1.445, allocations: 3.53 MB / 0.7533 GB, free: 49.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003034/1.448, allocations: 0.7746 MB / 0.7541 GB, free: 49.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006677/1.449, allocations: 220.9 kB / 0.7543 GB, free: 49.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/1.449, allocations: 0 / 0.7543 GB, free: 49.05 MB / 410.7 MB Notification: Performance of Templates: time 0.07511/1.524, allocations: 43.17 MB / 0.7964 GB, free: 20.71 MB / 410.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