Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001316/0.001316, allocations: 172.6 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.61/1.61, 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.0008918/0.000892, allocations: 93.91 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.819e-05/2.825e-05, allocations: 4 kB / 322.5 MB, free: 17.33 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08708, allocations: 47.57 MB / 370.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4056/0.4927, allocations: 158.4 MB / 0.5161 GB, free: 15.99 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.493, allocations: 101.4 kB / 0.5162 GB, free: 15.94 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.462/1.955, allocations: 388.3 MB / 0.8954 GB, free: 32.21 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.955, allocations: 0 / 0.8954 GB, free: 32.21 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009843/1.956, allocations: 291.1 kB / 0.8956 GB, free: 32.18 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.04141/1.998, allocations: 11.23 MB / 0.9066 GB, free: 28.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/1.998, allocations: 10.03 kB / 0.9066 GB, free: 28.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04327/2.041, allocations: 5.196 MB / 0.9117 GB, free: 27.94 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03347/2.075, allocations: 9.631 MB / 0.9211 GB, free: 26.74 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001593/2.076, allocations: 0.8997 MB / 0.922 GB, free: 26.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006199/2.082, allocations: 1.174 MB / 0.9231 GB, free: 26.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06858/2.151, allocations: 19.33 MB / 0.942 GB, free: 25.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007595/2.152, allocations: 21.2 kB / 0.942 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005845/2.158, allocations: 0.5002 MB / 0.9425 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001005/2.159, allocations: 0.7718 MB / 0.9433 GB, free: 25.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03441/2.193, allocations: 17.07 MB / 0.9599 GB, free: 19.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1158/2.309, allocations: 63.22 MB / 1.022 GB, free: 2.145 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3059/2.615, allocations: 22.97 MB / 1.044 GB, free: 48.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0123/2.627, allocations: 7.307 MB / 1.051 GB, free: 48.81 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0458/2.673, allocations: 22.82 MB / 1.074 GB, free: 47.75 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.941e-05/2.673, allocations: 103.5 kB / 1.074 GB, free: 47.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=747): time 1.049e-05/2.673, allocations: 3.844 kB / 1.074 GB, free: 47.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=757): time 0.04658/2.72, allocations: 25.9 MB / 1.099 GB, free: 43.79 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/2.72, allocations: 146.5 kB / 1.099 GB, free: 43.69 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006206/2.726, allocations: 3.872 MB / 1.103 GB, free: 42.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00148/2.728, allocations: 127.7 kB / 1.103 GB, free: 42.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00248/2.73, allocations: 4.762 MB / 1.108 GB, free: 38.53 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003083/2.733, allocations: 2.519 MB / 1.11 GB, free: 36.57 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008403/2.734, allocations: 144.6 kB / 1.11 GB, free: 36.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005439/2.735, allocations: 0.6302 MB / 1.111 GB, free: 36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006669/2.741, allocations: 4.726 MB / 1.115 GB, free: 34.03 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008492/2.75, allocations: 6.578 MB / 1.122 GB, free: 29.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009016/2.759, allocations: 5.881 MB / 1.128 GB, free: 27.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.295e-05/2.759, allocations: 18 kB / 1.128 GB, free: 27.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=1043) (initialization): time 0.02381/2.783, allocations: 14.22 MB / 1.141 GB, free: 21.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.383e-05/2.783, allocations: 28.88 kB / 1.142 GB, free: 21.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.574e-05/2.783, allocations: 49.84 kB / 1.142 GB, free: 21.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0059/2.789, allocations: 3.359 MB / 1.145 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006392/2.795, allocations: 1.477 MB / 1.146 GB, free: 20.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/2.806, allocations: 13.83 MB / 1.16 GB, free: 10.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006736/2.813, allocations: 395.3 kB / 1.16 GB, free: 10.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001867/2.815, allocations: 336.9 kB / 1.161 GB, free: 10.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (786): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.001735/2.817, allocations: 0.5209 MB / 1.161 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/2.819, allocations: 0.5849 MB / 1.162 GB, free: 9.816 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02197/2.841, allocations: 13.47 MB / 1.175 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03218/2.873, allocations: 11.22 MB / 1.186 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.232e-05/2.873, allocations: 7.953 kB / 1.186 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001529/2.873, allocations: 31.64 kB / 1.186 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05728/2.93, allocations: 27.93 MB / 1.213 GB, free: 2.789 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.242e-05/2.93, allocations: 6.844 kB / 1.213 GB, free: 2.785 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004717/2.935, allocations: 0.9508 MB / 1.214 GB, free: 2.055 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3095/3.245, allocations: 3.431 MB / 1.217 GB, free: 87.02 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001815/3.246, allocations: 168 kB / 1.217 GB, free: 87.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01688/3.263, allocations: 18.22 MB / 1.235 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/3.263, allocations: 4.906 kB / 1.235 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03544/3.299, allocations: 20.65 MB / 1.255 GB, free: 75.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006268/3.305, allocations: 1.725 MB / 1.257 GB, free: 75.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002207/3.307, allocations: 122.9 kB / 1.257 GB, free: 75.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005002/3.312, allocations: 314.7 kB / 1.258 GB, free: 75.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001929/3.314, allocations: 0.5479 MB / 1.258 GB, free: 75.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008016/3.315, allocations: 210.7 kB / 1.258 GB, free: 75.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005681/3.321, allocations: 2.902 MB / 1.261 GB, free: 75.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.11e-07/3.321, allocations: 0 / 1.261 GB, free: 75.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01091/3.332, allocations: 2.152 MB / 1.263 GB, free: 75.46 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (505): * Single equations (assignments): 439 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.002416/3.334, allocations: 0.939 MB / 1.264 GB, free: 75.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02069/3.355, allocations: 11.98 MB / 1.276 GB, free: 74.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/3.355, allocations: 0 / 1.276 GB, free: 74.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01195/3.367, allocations: 6.564 MB / 1.282 GB, free: 73.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008377/3.375, allocations: 1.309 MB / 1.283 GB, free: 73.81 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04229/3.418, allocations: 21.36 MB / 1.304 GB, free: 67.81 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0096/3.427, allocations: 7.766 MB / 1.312 GB, free: 65.18 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006607/3.434, allocations: 1.81 MB / 1.314 GB, free: 64.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/3.436, allocations: 422.9 kB / 1.314 GB, free: 64.95 MB / 0.4948 GB Notification: Performance of SimCode: time 9.32e-07/3.436, allocations: 0 / 1.314 GB, free: 64.95 MB / 0.4948 GB Notification: Performance of Templates: time 0.447/3.883, allocations: 122.1 MB / 1.433 GB, free: 82.8 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches