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.001131/0.001131, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 66.7 kB / 307 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08615/0.08734, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1749/0.2623, allocations: 37.9 MB / 395.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0215/0.2838, allocations: 10.29 MB / 405.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008283/0.2921, allocations: 275.4 kB / 406 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02075/0.3129, allocations: 9.11 MB / 415.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01268/0.3256, allocations: 3.921 MB / 419 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007346/0.333, allocations: 2.436 MB / 421.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01691/0.3499, allocations: 14.12 MB / 435.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03472/0.3846, allocations: 25.78 MB / 461.3 MB, free: 4.074 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009996/0.3947, allocations: 7.164 MB / 468.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01146/0.4062, allocations: 8.074 MB / 476.6 MB, free: 4.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00451/0.4107, allocations: 2.027 MB / 478.6 MB, free: 2.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006456/0.4172, allocations: 2.457 MB / 481 MB, free: 312 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004844/0.422, allocations: 4.037 MB / 485.1 MB, free: 12.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01146/0.4335, allocations: 7.825 MB / 492.9 MB, free: 4.398 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02715/0.4607, allocations: 26.83 MB / 0.5076 GB, free: 9.496 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4607, allocations: 4 kB / 0.5076 GB, free: 9.492 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.4607, allocations: 0 / 0.5076 GB, free: 9.492 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000544/0.4613, allocations: 3.938 kB / 0.5076 GB, free: 9.488 MB / 430.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.04292/0.5042, allocations: 15.94 MB / 0.5231 GB, free: 9.426 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.5043, allocations: 8.031 kB / 0.5231 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03658/0.5409, allocations: 6.408 MB / 0.5294 GB, free: 2.988 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4304/0.9713, allocations: 8.348 MB / 0.5376 GB, free: 124.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001149/0.9725, allocations: 0.9087 MB / 0.5384 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005004/0.9775, allocations: 1.197 MB / 0.5396 GB, free: 123.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04714/1.025, allocations: 18.76 MB / 0.5579 GB, free: 116 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003409/1.025, allocations: 25.69 kB / 0.558 GB, free: 116 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002119/1.027, allocations: 0.4937 MB / 0.5584 GB, free: 115.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004626/1.028, allocations: 0.6519 MB / 0.5591 GB, free: 115.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02755/1.055, allocations: 16.99 MB / 0.5757 GB, free: 103.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07921/1.134, allocations: 63.93 MB / 0.6381 GB, free: 38.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02115/1.156, allocations: 30 MB / 0.6674 GB, free: 5.242 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005256/1.161, allocations: 4.051 MB / 0.6714 GB, free: 1.184 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01719/1.178, allocations: 10.4 MB / 0.6815 GB, free: 6.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.294e-05/1.178, allocations: 81.73 kB / 0.6816 GB, free: 6.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 5.53e-06/1.178, allocations: 0 / 0.6816 GB, free: 6.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.04247/1.221, allocations: 20.12 MB / 0.7012 GB, free: 2.215 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.517e-05/1.221, allocations: 120.4 kB / 0.7014 GB, free: 2.074 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007491/1.228, allocations: 5.187 MB / 0.7064 GB, free: 12.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006219/1.229, allocations: 93.7 kB / 0.7065 GB, free: 12.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003596/1.233, allocations: 5.371 MB / 0.7118 GB, free: 7.398 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001452/1.234, allocations: 1.42 MB / 0.7131 GB, free: 5.988 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001799/1.236, allocations: 1.247 MB / 0.7144 GB, free: 4.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.2e-05/1.236, allocations: 305.1 kB / 0.7146 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00432/1.24, allocations: 2.847 MB / 0.7174 GB, free: 1.578 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1821/1.422, allocations: 5.346 MB / 0.7226 GB, free: 153.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009615/1.432, allocations: 8.735 MB / 0.7312 GB, free: 148.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.2e-05/1.432, allocations: 27.44 kB / 0.7312 GB, free: 148.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01588/1.448, allocations: 9.678 MB / 0.7407 GB, free: 144.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.448, allocations: 39.88 kB / 0.7407 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/1.448, allocations: 81.12 kB / 0.7408 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003455/1.452, allocations: 1.126 MB / 0.7419 GB, free: 144.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005628/1.458, allocations: 1.45 MB / 0.7433 GB, free: 144.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01396/1.472, allocations: 13.48 MB / 0.7565 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005311/1.477, allocations: 358.7 kB / 0.7568 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.478, allocations: 324.7 kB / 0.7571 GB, free: 134.8 MB / 494.1 MB 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.006582/1.485, allocations: 4.232 MB / 0.7612 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001411/1.486, allocations: 0.531 MB / 0.7618 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/1.498, allocations: 7.097 MB / 0.7687 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006246/1.505, allocations: 4.227 MB / 0.7728 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.647e-05/1.505, allocations: 17.19 kB / 0.7728 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.705e-05/1.505, allocations: 22.22 kB / 0.7729 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02817/1.533, allocations: 16.99 MB / 0.7894 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/1.533, allocations: 8 kB / 0.7894 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002788/1.536, allocations: 0.6784 MB / 0.7901 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002935/1.539, allocations: 1.202 MB / 0.7913 GB, free: 115.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003717/1.539, allocations: 95.97 kB / 0.7914 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/1.554, allocations: 17.4 MB / 0.8084 GB, free: 97.03 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.554, allocations: 8 kB / 0.8084 GB, free: 97.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01367/1.568, allocations: 10.28 MB / 0.8184 GB, free: 86.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002388/1.57, allocations: 1.115 MB / 0.8195 GB, free: 85.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009816/1.571, allocations: 87.92 kB / 0.8196 GB, free: 85.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002615/1.574, allocations: 212.5 kB / 0.8198 GB, free: 85.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006272/1.574, allocations: 303.4 kB / 0.8201 GB, free: 85.06 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/1.575, allocations: 124 kB / 0.8202 GB, free: 84.94 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004861/1.58, allocations: 3.485 MB / 0.8236 GB, free: 81.47 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.58, allocations: 0 / 0.8236 GB, free: 81.47 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007241/1.587, allocations: 1.956 MB / 0.8255 GB, free: 79.52 MB / 494.1 MB 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.0008888/1.588, allocations: 296 kB / 0.8258 GB, free: 79.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02128/1.609, allocations: 10.83 MB / 0.8364 GB, free: 68.36 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.609, allocations: 0 / 0.8364 GB, free: 68.36 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005921/1.615, allocations: 4.074 MB / 0.8404 GB, free: 64.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007178/1.622, allocations: 1.457 MB / 0.8418 GB, free: 62.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03492/1.657, allocations: 20.6 MB / 0.8619 GB, free: 42.14 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007504/1.665, allocations: 7.379 MB / 0.8691 GB, free: 34.72 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00602/1.671, allocations: 2.005 MB / 0.8711 GB, free: 32.71 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001245/1.672, allocations: 399.4 kB / 0.8714 GB, free: 32.32 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/1.672, allocations: 0 / 0.8714 GB, free: 32.32 MB / 494.1 MB Notification: Performance of Templates: time 0.3637/2.036, allocations: 85.18 MB / 0.9546 GB, free: 112.7 MB / 494.1 MB 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