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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000935/0.000935, allocations: 85.91 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009936/0.0009936, allocations: 159 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9099/0.9099, allocations: 177 MB / 205.9 MB, free: 4.461 MB / 186.7 MB " [Timeout remaining time 179] 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=10000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..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=10000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 274.2 MB, free: 4.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.097e-05, allocations: 9.641 kB / 274.2 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02928/0.0293, allocations: 35.65 MB / 309.8 MB, free: 448 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.04659, allocations: 10.17 MB / 320 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005077/0.05167, allocations: 334.2 kB / 320.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01062/0.06229, allocations: 9.424 MB / 329.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009845/0.07214, allocations: 4.131 MB / 333.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004573/0.07671, allocations: 2.442 MB / 336.3 MB, free: 5.852 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1356/0.2123, allocations: 14.86 MB / 351.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02163/0.234, allocations: 16.95 MB / 368.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01205/0.246, allocations: 10.96 MB / 379.1 MB, free: 9.086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00848/0.2545, allocations: 7.7 MB / 386.8 MB, free: 5.062 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0036/0.2581, allocations: 2.02 MB / 388.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00375/0.2618, allocations: 2.439 MB / 391.2 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002785/0.2646, allocations: 4.191 MB / 395.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007438/0.2721, allocations: 5.308 MB / 400.7 MB, free: 8.215 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.2868, allocations: 12.91 MB / 413.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.2868, allocations: 0 / 413.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2868, allocations: 0 / 413.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000627/0.2875, allocations: 0.6562 kB / 413.7 MB, free: 12.2 MB / 346.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.0303/0.3178, allocations: 16.07 MB / 429.7 MB, free: 12.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3178, allocations: 12.03 kB / 429.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03123/0.349, allocations: 6.687 MB / 436.4 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01774/0.3668, allocations: 7.749 MB / 444.2 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009163/0.3677, allocations: 0.908 MB / 445.1 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002888/0.3706, allocations: 1.198 MB / 446.3 MB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02348/0.3941, allocations: 9.469 MB / 455.7 MB, free: 3.535 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003401/0.3944, allocations: 29.42 kB / 455.8 MB, free: 3.516 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001829/0.3962, allocations: 0.4899 MB / 456.3 MB, free: 3.035 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004769/0.3967, allocations: 0.6498 MB / 456.9 MB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009819/0.4065, allocations: 4.264 MB / 461.2 MB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2905/0.697, allocations: 49.21 MB / 0.4984 GB, free: 64.27 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008311/0.7054, allocations: 7.828 MB / 0.5061 GB, free: 63.86 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.707, allocations: 1.585 MB / 0.5076 GB, free: 63.8 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008422/0.7154, allocations: 6.462 MB / 0.5139 GB, free: 63.13 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.7155, allocations: 80.78 kB / 0.514 GB, free: 63.09 MB / 410.8 MB Notification: Performance of pre-optimization done (n=402): time 6.553e-06/0.7155, allocations: 0 / 0.514 GB, free: 63.09 MB / 410.8 MB Notification: Performance of matching and sorting (n=412): time 0.0179/0.7334, allocations: 9.48 MB / 0.5233 GB, free: 61.61 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.7334, allocations: 125.8 kB / 0.5234 GB, free: 61.5 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003816/0.7372, allocations: 4.332 MB / 0.5276 GB, free: 60.97 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003507/0.7376, allocations: 93.19 kB / 0.5277 GB, free: 60.94 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001956/0.7395, allocations: 5.854 MB / 0.5334 GB, free: 58.66 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008669/0.7404, allocations: 1.533 MB / 0.5349 GB, free: 57.71 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001163/0.7416, allocations: 1.398 MB / 0.5363 GB, free: 57.59 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.724e-05/0.7416, allocations: 484.1 kB / 0.5367 GB, free: 57.11 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008466/0.7425, allocations: 0.7318 MB / 0.5375 GB, free: 57.1 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/0.7443, allocations: 4.502 MB / 0.5419 GB, free: 52.56 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003354/0.7477, allocations: 5.853 MB / 0.5476 GB, free: 47.97 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.941e-05/0.7477, allocations: 22.94 kB / 0.5476 GB, free: 47.97 MB / 410.8 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.00616/0.7539, allocations: 5.418 MB / 0.5529 GB, free: 47.38 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.7539, allocations: 41.28 kB / 0.5529 GB, free: 47.38 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.983e-05/0.754, allocations: 82.5 kB / 0.553 GB, free: 47.38 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001757/0.7557, allocations: 1 MB / 0.554 GB, free: 47.28 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/0.7581, allocations: 1.366 MB / 0.5553 GB, free: 46.76 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0062/0.7643, allocations: 10.97 MB / 0.566 GB, free: 37.49 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003467/0.7677, allocations: 250 kB / 0.5663 GB, free: 37.35 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006468/0.7684, allocations: 277.2 kB / 0.5665 GB, free: 37.15 MB / 410.8 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.002607/0.771, allocations: 0.584 MB / 0.5671 GB, free: 36.84 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/0.772, allocations: 0.6534 MB / 0.5677 GB, free: 36.23 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00458/0.7766, allocations: 3.607 MB / 0.5713 GB, free: 34.07 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00207/0.7787, allocations: 1.802 MB / 0.573 GB, free: 32.76 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.37e-05/0.7787, allocations: 12 kB / 0.573 GB, free: 32.75 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.853e-05/0.7788, allocations: 26.56 kB / 0.5731 GB, free: 32.74 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01526/0.794, allocations: 11.74 MB / 0.5845 GB, free: 23.62 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.794, allocations: 7.562 kB / 0.5845 GB, free: 23.61 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.7954, allocations: 0.6132 MB / 0.5851 GB, free: 23.03 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001958/0.7974, allocations: 1.042 MB / 0.5862 GB, free: 21.98 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001955/0.7976, allocations: 108 kB / 0.5863 GB, free: 21.88 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007474/0.8051, allocations: 15.36 MB / 0.6013 GB, free: 6.078 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.8051, allocations: 11.94 kB / 0.6013 GB, free: 6.066 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006311/0.8114, allocations: 4.578 MB / 0.6057 GB, free: 1.461 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/0.8132, allocations: 0.9179 MB / 0.6066 GB, free: 0.5391 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005932/0.8138, allocations: 80 kB / 0.6067 GB, free: 472 kB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.815, allocations: 116 kB / 0.6068 GB, free: 356 kB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004576/0.8155, allocations: 330.2 kB / 0.6071 GB, free: 28 kB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002006/0.8157, allocations: 99.95 kB / 0.6072 GB, free: 15.93 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002117/0.8178, allocations: 1.967 MB / 0.6092 GB, free: 14.16 MB / 426.8 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8178, allocations: 0 / 0.6092 GB, free: 14.16 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006724/0.8245, allocations: 1.953 MB / 0.6111 GB, free: 12.21 MB / 426.8 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.0008354/0.8253, allocations: 286.1 kB / 0.6113 GB, free: 11.96 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.005722/0.8311, allocations: 4.412 MB / 0.6156 GB, free: 7.797 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.8311, allocations: 0 / 0.6156 GB, free: 7.797 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002899/0.834, allocations: 2.893 MB / 0.6185 GB, free: 4.914 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004098/0.8381, allocations: 1.308 MB / 0.6197 GB, free: 3.652 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02359/0.8617, allocations: 17.5 MB / 0.6368 GB, free: 2.043 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1254/0.987, allocations: 3.107 MB / 0.6399 GB, free: 104.8 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003109/0.9901, allocations: 0.8181 MB / 0.6407 GB, free: 104.7 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002221/0.9924, allocations: 1.32 MB / 0.642 GB, free: 104.7 MB / 442.8 MB Notification: Performance of SimCode: time 2.124e-06/0.9924, allocations: 0 / 0.642 GB, free: 104.7 MB / 442.8 MB Notification: Performance of Templates: time 0.1088/1.101, allocations: 81.36 MB / 0.7214 GB, free: 57.7 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 240] 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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.827200984116644]