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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001408/0.001409, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001649/0.00165, allocations: 201.2 kB / 18.73 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2464, allocations: 50.55 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03855/0.285, allocations: 37.89 MB / 447.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.3063, allocations: 10.29 MB / 457.5 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008789/0.3152, allocations: 275.1 kB / 457.7 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02208/0.3373, allocations: 9.195 MB / 466.9 MB, free: 7.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01422/0.3515, allocations: 4.009 MB / 470.9 MB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009134/0.3607, allocations: 2.431 MB / 473.4 MB, free: 1.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02008/0.3808, allocations: 14.22 MB / 487.6 MB, free: 2.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04124/0.4221, allocations: 25.63 MB / 0.5012 GB, free: 9.176 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01213/0.4343, allocations: 7.223 MB / 0.5083 GB, free: 1.938 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01502/0.4493, allocations: 8.051 MB / 0.5161 GB, free: 9.855 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006023/0.4554, allocations: 2.027 MB / 0.5181 GB, free: 7.828 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007495/0.4629, allocations: 2.445 MB / 0.5205 GB, free: 5.387 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006855/0.4698, allocations: 4.025 MB / 0.5244 GB, free: 1.352 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01336/0.4832, allocations: 7.825 MB / 0.5321 GB, free: 9.492 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4135/0.8967, allocations: 26.98 MB / 0.5584 GB, free: 56.97 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.8967, allocations: 3.125 kB / 0.5584 GB, free: 56.97 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8967, allocations: 0 / 0.5584 GB, free: 56.97 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006779/0.8974, allocations: 4.75 kB / 0.5584 GB, free: 56.97 MB / 462.1 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.04672/0.9441, allocations: 15.88 MB / 0.5739 GB, free: 50.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.9442, allocations: 12.22 kB / 0.5739 GB, free: 50.09 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03522/0.9794, allocations: 6.459 MB / 0.5802 GB, free: 47.61 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01643/0.9959, allocations: 8.596 MB / 0.5886 GB, free: 43.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00062/0.9965, allocations: 0.9002 MB / 0.5895 GB, free: 42.74 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003801/1, allocations: 1.193 MB / 0.5907 GB, free: 42.35 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03666/1.037, allocations: 18.76 MB / 0.609 GB, free: 24.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002714/1.037, allocations: 27.36 kB / 0.609 GB, free: 24.53 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001302/1.039, allocations: 0.4935 MB / 0.6095 GB, free: 24.05 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004268/1.039, allocations: 0.6537 MB / 0.6101 GB, free: 23.39 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0266/1.066, allocations: 17 MB / 0.6267 GB, free: 6.391 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09526/1.161, allocations: 63.19 MB / 0.6885 GB, free: 6.441 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02663/1.188, allocations: 30.01 MB / 0.7178 GB, free: 4.922 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006154/1.194, allocations: 4.025 MB / 0.7217 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01657/1.21, allocations: 10.36 MB / 0.7318 GB, free: 6.535 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.924e-05/1.21, allocations: 80.42 kB / 0.7319 GB, free: 6.449 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 5.5e-06/1.21, allocations: 0 / 0.7319 GB, free: 6.449 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.04369/1.254, allocations: 20.11 MB / 0.7515 GB, free: 2.066 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/1.254, allocations: 127.7 kB / 0.7517 GB, free: 1.926 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2171/1.471, allocations: 5.187 MB / 0.7567 GB, free: 216.6 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007308/1.472, allocations: 94.64 kB / 0.7568 GB, free: 216.6 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.002315/1.474, allocations: 5.363 MB / 0.762 GB, free: 214.9 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009682/1.475, allocations: 1.421 MB / 0.7634 GB, free: 213.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/1.477, allocations: 1.24 MB / 0.7646 GB, free: 213.2 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.35e-05/1.477, allocations: 308.8 kB / 0.7649 GB, free: 212.9 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003507/1.481, allocations: 2.846 MB / 0.7677 GB, free: 211.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004382/1.485, allocations: 5.35 MB / 0.7729 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008574/1.494, allocations: 8.729 MB / 0.7815 GB, free: 201.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.606e-05/1.494, allocations: 30.58 kB / 0.7815 GB, free: 201.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01321/1.507, allocations: 9.68 MB / 0.791 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 5.144e-05/1.507, allocations: 41.75 kB / 0.791 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.67e-05/1.507, allocations: 79.5 kB / 0.7911 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002634/1.51, allocations: 1.122 MB / 0.7922 GB, free: 197.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004652/1.514, allocations: 1.451 MB / 0.7936 GB, free: 196.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/1.527, allocations: 13.47 MB / 0.8067 GB, free: 183.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004532/1.531, allocations: 364.9 kB / 0.8071 GB, free: 183.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005098/1.532, allocations: 323.9 kB / 0.8074 GB, free: 183.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005152/1.537, allocations: 4.235 MB / 0.8115 GB, free: 179.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00093/1.538, allocations: 0.5285 MB / 0.812 GB, free: 179.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009766/1.548, allocations: 7.096 MB / 0.819 GB, free: 173 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005329/1.553, allocations: 4.226 MB / 0.8231 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-05/1.553, allocations: 12 kB / 0.8231 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.206e-05/1.553, allocations: 23.64 kB / 0.8231 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02695/1.58, allocations: 16.97 MB / 0.8397 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/1.58, allocations: 8 kB / 0.8397 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002937/1.583, allocations: 0.6909 MB / 0.8404 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002973/1.586, allocations: 1.171 MB / 0.8415 GB, free: 151.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006093/1.587, allocations: 107.9 kB / 0.8416 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01415/1.601, allocations: 17.38 MB / 0.8586 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.601, allocations: 11.94 kB / 0.8586 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/1.614, allocations: 10.28 MB / 0.8686 GB, free: 122.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002826/1.617, allocations: 1.123 MB / 0.8697 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008427/1.617, allocations: 84 kB / 0.8698 GB, free: 121.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002302/1.62, allocations: 207.8 kB / 0.87 GB, free: 121.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006002/1.62, allocations: 307.3 kB / 0.8703 GB, free: 121 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.621, allocations: 124 kB / 0.8704 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004177/1.625, allocations: 3.481 MB / 0.8738 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.11e-07/1.625, allocations: 0 / 0.8738 GB, free: 117.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006159/1.631, allocations: 1.96 MB / 0.8757 GB, free: 115.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008019/1.632, allocations: 278.7 kB / 0.876 GB, free: 115.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01046/1.642, allocations: 7.701 MB / 0.8835 GB, free: 107.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/1.642, allocations: 0 / 0.8835 GB, free: 107.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005845/1.648, allocations: 4.088 MB / 0.8875 GB, free: 103.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006362/1.654, allocations: 1.441 MB / 0.8889 GB, free: 101.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03311/1.688, allocations: 20.36 MB / 0.9088 GB, free: 81.42 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007589/1.695, allocations: 7.376 MB / 0.916 GB, free: 74 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005851/1.701, allocations: 2.005 MB / 0.918 GB, free: 71.99 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/1.702, allocations: 403.4 kB / 0.9184 GB, free: 71.59 MB / 0.5763 GB Notification: Performance of SimCode: time 8.82e-07/1.702, allocations: 0 / 0.9184 GB, free: 71.59 MB / 0.5763 GB Notification: Performance of Templates: time 0.3512/2.054, allocations: 80.46 MB / 0.9969 GB, free: 194.6 MB / 0.5763 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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