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.00163/0.00163, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.322/1.322, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.001022/0.001022, allocations: 88.16 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.000237, allocations: 8 kB / 328.3 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2246, allocations: 47.57 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2988/0.5235, allocations: 158.5 MB / 0.5218 GB, free: 98.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.5238, allocations: 102.6 kB / 0.5219 GB, free: 98.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.165/1.689, allocations: 388.6 MB / 0.9014 GB, free: 43.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.689, allocations: 0 / 0.9014 GB, free: 43.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007332/1.69, allocations: 289.6 kB / 0.9017 GB, free: 43.34 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.03687/1.727, allocations: 11.96 MB / 0.9133 GB, free: 39.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/1.727, allocations: 7.531 kB / 0.9133 GB, free: 39.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02907/1.756, allocations: 5.228 MB / 0.9184 GB, free: 38.69 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02429/1.78, allocations: 9.664 MB / 0.9279 GB, free: 35.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001035/1.781, allocations: 0.9012 MB / 0.9288 GB, free: 35.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005224/1.786, allocations: 1.175 MB / 0.9299 GB, free: 34.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04266/1.829, allocations: 19.58 MB / 0.949 GB, free: 18.46 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004975/1.83, allocations: 18.62 kB / 0.9491 GB, free: 18.45 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003316/1.833, allocations: 0.5086 MB / 0.9496 GB, free: 17.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006923/1.834, allocations: 0.7635 MB / 0.9503 GB, free: 17.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03623/1.87, allocations: 17.41 MB / 0.9673 GB, free: 2.074 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3508/2.221, allocations: 63.21 MB / 1.029 GB, free: 39.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02288/2.244, allocations: 22.42 MB / 1.051 GB, free: 28.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04757/2.291, allocations: 22.91 MB / 1.073 GB, free: 21.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.58e-05/2.291, allocations: 102.8 kB / 1.073 GB, free: 21.44 MB / 458.7 MB Notification: Performance of pre-optimization done (n=755): time 1.089e-05/2.291, allocations: 3.906 kB / 1.073 GB, free: 21.44 MB / 458.7 MB Notification: Performance of matching and sorting (n=765): time 0.0821/2.374, allocations: 41.65 MB / 1.114 GB, free: 15.29 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/2.374, allocations: 147 kB / 1.114 GB, free: 15.18 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007641/2.381, allocations: 3.914 MB / 1.118 GB, free: 13.72 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001205/2.383, allocations: 131.6 kB / 1.118 GB, free: 13.61 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003324/2.386, allocations: 4.745 MB / 1.123 GB, free: 10.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003201/2.389, allocations: 2.545 MB / 1.125 GB, free: 8.062 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001201/2.39, allocations: 145 kB / 1.125 GB, free: 7.949 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007392/2.391, allocations: 0.6355 MB / 1.126 GB, free: 7.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008289/2.399, allocations: 4.838 MB / 1.131 GB, free: 5.512 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009594/2.409, allocations: 6.695 MB / 1.137 GB, free: 1.312 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02513/2.434, allocations: 7.146 MB / 1.144 GB, free: 15.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.912e-05/2.434, allocations: 16 kB / 1.144 GB, free: 15.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.03278/2.467, allocations: 14.51 MB / 1.158 GB, free: 2.613 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/2.467, allocations: 28 kB / 1.158 GB, free: 2.586 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001842/2.467, allocations: 59.75 kB / 1.159 GB, free: 2.531 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2711/2.739, allocations: 3.4 MB / 1.162 GB, free: 87.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006644/2.745, allocations: 1.496 MB / 1.163 GB, free: 87.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/2.758, allocations: 13.87 MB / 1.177 GB, free: 80.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006623/2.765, allocations: 402.5 kB / 1.177 GB, free: 80.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001913/2.767, allocations: 334.7 kB / 1.178 GB, free: 80.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (792): * Single equations (assignments): 727 * 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.01027/2.777, allocations: 4.264 MB / 1.182 GB, free: 80.71 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00259/2.779, allocations: 0.5937 MB / 1.182 GB, free: 80.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02827/2.808, allocations: 13.72 MB / 1.196 GB, free: 80.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0185/2.826, allocations: 10.43 MB / 1.206 GB, free: 79.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-05/2.826, allocations: 5.469 kB / 1.206 GB, free: 79.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001499/2.827, allocations: 38.48 kB / 1.206 GB, free: 79.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05322/2.88, allocations: 28.22 MB / 1.233 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.781e-05/2.88, allocations: 3.062 kB / 1.234 GB, free: 70.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004552/2.884, allocations: 0.9653 MB / 1.234 GB, free: 70.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007009/2.891, allocations: 3.481 MB / 1.238 GB, free: 69.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001491/2.893, allocations: 169.2 kB / 1.238 GB, free: 69.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01605/2.909, allocations: 18.35 MB / 1.256 GB, free: 55.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/2.909, allocations: 9.219 kB / 1.256 GB, free: 55.95 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03632/2.945, allocations: 21.03 MB / 1.276 GB, free: 46.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00627/2.952, allocations: 1.743 MB / 1.278 GB, free: 45.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003287/2.955, allocations: 126 kB / 1.278 GB, free: 45.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005585/2.961, allocations: 318.5 kB / 1.279 GB, free: 44.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002204/2.963, allocations: 0.5545 MB / 1.279 GB, free: 44.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001549/2.965, allocations: 208.1 kB / 1.279 GB, free: 44.79 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006511/2.971, allocations: 2.941 MB / 1.282 GB, free: 42.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.91e-07/2.971, allocations: 1.875 kB / 1.282 GB, free: 42.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01282/2.984, allocations: 2.159 MB / 1.284 GB, free: 40.75 MB / 490.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (513): * Single equations (assignments): 447 * 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%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.00315/2.987, allocations: 0.7477 MB / 1.285 GB, free: 40.24 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02297/3.01, allocations: 12.23 MB / 1.297 GB, free: 29.58 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/3.01, allocations: 4 kB / 1.297 GB, free: 29.57 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01314/3.023, allocations: 6.707 MB / 1.304 GB, free: 23.69 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009118/3.032, allocations: 1.307 MB / 1.305 GB, free: 22.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05626/3.089, allocations: 29.36 MB / 1.333 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2854/3.374, allocations: 7.944 MB / 1.341 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009584/3.384, allocations: 1.825 MB / 1.343 GB, free: 90.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00284/3.387, allocations: 420.9 kB / 1.343 GB, free: 90.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.533e-06/3.387, allocations: 0 / 1.343 GB, free: 90.43 MB / 0.4948 GB Notification: Performance of Templates: time 0.1985/3.585, allocations: 127.4 MB / 1.468 GB, free: 46.45 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