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.001556/0.001556, allocations: 186.9 kB / 18.04 MB, free: 3.656 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.556/1.556, allocations: 205.4 MB / 224.2 MB, free: 9.043 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.0007816/0.0007817, allocations: 86.34 kB / 272.5 MB, free: 8.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003263, allocations: 8 kB / 329.5 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2074, allocations: 47.57 MB / 377 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3348/0.5422, allocations: 159.2 MB / 0.5236 GB, free: 97.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.5425, allocations: 102.4 kB / 0.5237 GB, free: 97.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036/1.579, allocations: 386 MB / 0.9007 GB, free: 43.13 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.676e-06/1.579, allocations: 0 / 0.9007 GB, free: 43.13 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009106/1.579, allocations: 284.6 kB / 0.901 GB, free: 43.09 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.03478/1.614, allocations: 11.83 MB / 0.9125 GB, free: 39.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/1.614, allocations: 7.25 kB / 0.9125 GB, free: 39.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02756/1.642, allocations: 5.238 MB / 0.9177 GB, free: 38.44 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02012/1.662, allocations: 9.049 MB / 0.9265 GB, free: 35.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009408/1.663, allocations: 0.9016 MB / 0.9274 GB, free: 35.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004051/1.667, allocations: 1.182 MB / 0.9285 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04195/1.709, allocations: 19.68 MB / 0.9477 GB, free: 19.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004754/1.71, allocations: 19.52 kB / 0.9478 GB, free: 19.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003536/1.713, allocations: 0.4984 MB / 0.9482 GB, free: 19.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007009/1.714, allocations: 0.7727 MB / 0.949 GB, free: 18.61 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03542/1.749, allocations: 17.4 MB / 0.966 GB, free: 3.438 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3374/2.087, allocations: 63.34 MB / 1.028 GB, free: 40.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02047/2.107, allocations: 22.43 MB / 1.05 GB, free: 28.93 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01032/2.118, allocations: 7.417 MB / 1.057 GB, free: 28.83 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03528/2.153, allocations: 22.84 MB / 1.079 GB, free: 19.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.066e-05/2.153, allocations: 105.1 kB / 1.079 GB, free: 19.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=749): time 9.187e-06/2.153, allocations: 1.375 kB / 1.079 GB, free: 19.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=759): time 0.06744/2.221, allocations: 36.36 MB / 1.115 GB, free: 3.105 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/2.221, allocations: 144.1 kB / 1.115 GB, free: 3.004 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006532/2.227, allocations: 4.406 MB / 1.119 GB, free: 1.359 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001224/2.228, allocations: 132.3 kB / 1.119 GB, free: 1.246 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00298/2.231, allocations: 4.754 MB / 1.124 GB, free: 13.68 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003244/2.235, allocations: 2.519 MB / 1.127 GB, free: 11.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008042/2.236, allocations: 148.7 kB / 1.127 GB, free: 11.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005471/2.236, allocations: 0.6331 MB / 1.127 GB, free: 11.15 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007406/2.243, allocations: 4.821 MB / 1.132 GB, free: 9.168 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009886/2.253, allocations: 6.71 MB / 1.139 GB, free: 2.535 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02082/2.274, allocations: 12.21 MB / 1.151 GB, free: 6.836 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.545e-05/2.274, allocations: 16 kB / 1.151 GB, free: 6.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=1045) (initialization): time 0.0286/2.303, allocations: 14.45 MB / 1.165 GB, free: 10.25 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 7.502e-05/2.303, allocations: 32 kB / 1.165 GB, free: 10.22 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/2.303, allocations: 56 kB / 1.165 GB, free: 10.16 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007053/2.31, allocations: 3.379 MB / 1.168 GB, free: 7.391 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00642/2.317, allocations: 1.483 MB / 1.169 GB, free: 6.145 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2351/2.552, allocations: 13.87 MB / 1.183 GB, free: 96.07 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00613/2.558, allocations: 398.5 kB / 1.183 GB, free: 96.07 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001813/2.56, allocations: 340.1 kB / 1.184 GB, free: 96.07 MB / 0.4949 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (788): * Single equations (assignments): 723 * 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.008412/2.568, allocations: 4.268 MB / 1.188 GB, free: 95.95 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001839/2.57, allocations: 0.5897 MB / 1.188 GB, free: 95.95 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02211/2.592, allocations: 13.62 MB / 1.202 GB, free: 95.35 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01646/2.609, allocations: 10.41 MB / 1.212 GB, free: 95.06 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-05/2.609, allocations: 8.406 kB / 1.212 GB, free: 95.06 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001067/2.609, allocations: 33.19 kB / 1.212 GB, free: 95.06 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04248/2.651, allocations: 28.15 MB / 1.239 GB, free: 88.46 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.593e-05/2.652, allocations: 11 kB / 1.239 GB, free: 88.46 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004048/2.656, allocations: 0.9393 MB / 1.24 GB, free: 88.44 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006509/2.662, allocations: 3.477 MB / 1.244 GB, free: 87.37 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001028/2.663, allocations: 170.4 kB / 1.244 GB, free: 87.27 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01418/2.677, allocations: 18.27 MB / 1.262 GB, free: 73.66 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/2.677, allocations: 5.906 kB / 1.262 GB, free: 73.66 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0277/2.705, allocations: 20.44 MB / 1.282 GB, free: 64.45 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004005/2.709, allocations: 1.73 MB / 1.283 GB, free: 63.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/2.71, allocations: 123.3 kB / 1.284 GB, free: 63.57 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003188/2.714, allocations: 316 kB / 1.284 GB, free: 63.49 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001085/2.715, allocations: 0.5547 MB / 1.284 GB, free: 63.38 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004926/2.715, allocations: 207.5 kB / 1.285 GB, free: 63.33 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004766/2.72, allocations: 2.946 MB / 1.288 GB, free: 62.22 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.31e-07/2.72, allocations: 0 / 1.288 GB, free: 62.22 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007615/2.728, allocations: 2.148 MB / 1.29 GB, free: 62 MB / 0.4949 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 441 * 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 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.001414/2.729, allocations: 0.7463 MB / 1.29 GB, free: 61.76 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01645/2.746, allocations: 12.18 MB / 1.302 GB, free: 53.46 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/2.746, allocations: 0 / 1.302 GB, free: 53.46 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01006/2.756, allocations: 6.679 MB / 1.309 GB, free: 47.59 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01078/2.766, allocations: 1.39 MB / 1.31 GB, free: 46.53 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0392/2.806, allocations: 28.75 MB / 1.338 GB, free: 20.3 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009324/2.815, allocations: 7.57 MB / 1.346 GB, free: 14.48 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.006854/2.822, allocations: 1.815 MB / 1.347 GB, free: 13.22 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/2.823, allocations: 424.7 kB / 1.348 GB, free: 12.83 MB / 0.4949 GB Notification: Performance of SimCode: time 6.62e-07/2.823, allocations: 0 / 1.348 GB, free: 12.83 MB / 0.4949 GB Notification: Performance of Templates: time 0.3982/3.222, allocations: 128.2 MB / 1.473 GB, free: 63.7 MB / 0.4949 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/jenkins1/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