Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008646/0.0008647, allocations: 84.86 kB / 292.1 MB, free: 5.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.878e-05/3.882e-05, allocations: 4 kB / 350.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 51.48 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4206/0.5303, allocations: 159.9 MB / 0.5488 GB, free: 10.71 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/0.5306, allocations: 95.75 kB / 0.5489 GB, free: 10.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.642/2.173, allocations: 405.5 MB / 0.9449 GB, free: 29.58 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.845e-06/2.173, allocations: 0 / 0.9449 GB, free: 29.58 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008492/2.174, allocations: 288.1 kB / 0.9452 GB, free: 29.55 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04198/2.216, allocations: 11.2 MB / 0.9561 GB, free: 26.06 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/2.216, allocations: 14.25 kB / 0.9561 GB, free: 26.06 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02837/2.244, allocations: 4.59 MB / 0.9606 GB, free: 25.38 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02567/2.27, allocations: 9.756 MB / 0.9702 GB, free: 24.18 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001277/2.271, allocations: 0.8784 MB / 0.971 GB, free: 24.16 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006897/2.278, allocations: 1.157 MB / 0.9721 GB, free: 24.15 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05192/2.33, allocations: 18.32 MB / 0.99 GB, free: 22.66 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005411/2.331, allocations: 26.75 kB / 0.9901 GB, free: 22.65 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003566/2.334, allocations: 0.4937 MB / 0.9905 GB, free: 22.65 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000847/2.335, allocations: 0.7968 MB / 0.9913 GB, free: 22.62 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03326/2.368, allocations: 15.55 MB / 1.007 GB, free: 22.52 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1044/2.473, allocations: 62.59 MB / 1.068 GB, free: 5.344 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02883/2.502, allocations: 29.91 MB / 1.097 GB, free: 6.508 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00772/2.509, allocations: 4.023 MB / 1.101 GB, free: 2.832 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4298/2.939, allocations: 10.31 MB / 1.111 GB, free: 76.33 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/2.939, allocations: 79.73 kB / 1.111 GB, free: 76.29 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=410): time 6.853e-06/2.939, allocations: 2.469 kB / 1.111 GB, free: 76.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=420): time 0.03073/2.97, allocations: 15.19 MB / 1.126 GB, free: 73.04 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/2.97, allocations: 122 kB / 1.126 GB, free: 72.95 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008223/2.978, allocations: 4.52 MB / 1.13 GB, free: 72.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009473/2.979, allocations: 95.05 kB / 1.13 GB, free: 72.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003391/2.983, allocations: 5.355 MB / 1.136 GB, free: 69.96 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002176/2.985, allocations: 1.452 MB / 1.137 GB, free: 69.05 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005166/2.985, allocations: 129.7 kB / 1.137 GB, free: 69.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003633/2.986, allocations: 0.5641 MB / 1.138 GB, free: 68.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005337/2.991, allocations: 2.809 MB / 1.14 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006682/2.998, allocations: 5.29 MB / 1.146 GB, free: 65.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007159/3.005, allocations: 4.012 MB / 1.15 GB, free: 65.64 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/3.005, allocations: 25.72 kB / 1.15 GB, free: 65.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02236/3.028, allocations: 9.612 MB / 1.159 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/3.028, allocations: 41.53 kB / 1.159 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001632/3.028, allocations: 86.97 kB / 1.159 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003033/3.031, allocations: 1.129 MB / 1.16 GB, free: 65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006119/3.037, allocations: 1.46 MB / 1.162 GB, free: 65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/3.052, allocations: 12.48 MB / 1.174 GB, free: 59.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007516/3.06, allocations: 362.4 kB / 1.174 GB, free: 59.63 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001928/3.062, allocations: 323.7 kB / 1.174 GB, free: 59.63 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003115/3.065, allocations: 0.5099 MB / 1.175 GB, free: 59.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002394/3.067, allocations: 0.5306 MB / 1.175 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/3.08, allocations: 7.069 MB / 1.182 GB, free: 58.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006246/3.086, allocations: 4.212 MB / 1.186 GB, free: 58.49 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.222e-05/3.086, allocations: 17.31 kB / 1.186 GB, free: 58.49 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.599e-05/3.087, allocations: 21.8 kB / 1.187 GB, free: 58.49 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03372/3.12, allocations: 17.05 MB / 1.203 GB, free: 55.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/3.12, allocations: 7.625 kB / 1.203 GB, free: 55.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003085/3.123, allocations: 0.6929 MB / 1.204 GB, free: 55.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003126/3.127, allocations: 1.191 MB / 1.205 GB, free: 54.74 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005136/3.127, allocations: 103.3 kB / 1.205 GB, free: 54.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/3.142, allocations: 16.02 MB / 1.221 GB, free: 42.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/3.142, allocations: 7.125 kB / 1.221 GB, free: 42.78 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0162/3.159, allocations: 10.85 MB / 1.231 GB, free: 37.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003985/3.163, allocations: 1.136 MB / 1.232 GB, free: 36.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/3.164, allocations: 83.06 kB / 1.233 GB, free: 36.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003381/3.168, allocations: 223.9 kB / 1.233 GB, free: 36.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006839/3.168, allocations: 313.1 kB / 1.233 GB, free: 36.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002982/3.169, allocations: 123.8 kB / 1.233 GB, free: 36.47 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005501/3.174, allocations: 3.371 MB / 1.236 GB, free: 35.18 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.91e-07/3.174, allocations: 4 kB / 1.236 GB, free: 35.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01077/3.185, allocations: 2.041 MB / 1.238 GB, free: 34.97 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (357): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001942/3.187, allocations: 0.9233 MB / 1.239 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01239/3.199, allocations: 7.609 MB / 1.247 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/3.199, allocations: 4 kB / 1.247 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006305/3.206, allocations: 4.035 MB / 1.251 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007489/3.213, allocations: 1.326 MB / 1.252 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03963/3.253, allocations: 17.52 MB / 1.269 GB, free: 9.309 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01254/3.265, allocations: 7.575 MB / 1.277 GB, free: 3.648 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009723/3.275, allocations: 1.999 MB / 1.278 GB, free: 2.332 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00168/3.277, allocations: 403.1 kB / 1.279 GB, free: 1.957 MB / 0.5105 GB Notification: Performance of SimCode: time 1.493e-06/3.277, allocations: 0 / 1.279 GB, free: 1.957 MB / 0.5105 GB Notification: Performance of Templates: time 0.5244/3.801, allocations: 86.66 MB / 1.363 GB, free: 71.55 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches