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.001443/0.001443, allocations: 79.67 kB / 21.7 MB, free: 2.84 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.0013/0.0013, allocations: 162.4 kB / 24.99 MB, free: 9.332 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.9709/0.9709, allocations: 177 MB / 205.2 MB, free: 5.535 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.713e-06/1.713e-06, allocations: 0 / 273.1 MB, free: 1.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.502e-05/2.673e-05, allocations: 2.312 kB / 273.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1396/0.1396, allocations: 37.08 MB / 310.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.1575, allocations: 10.21 MB / 320.3 MB, free: 1.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006205/0.1637, allocations: 330.3 kB / 320.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01272/0.1764, allocations: 9.695 MB / 330.4 MB, free: 9.359 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0115/0.1879, allocations: 4.137 MB / 334.5 MB, free: 5.199 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005591/0.1935, allocations: 2.462 MB / 337 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01553/0.209, allocations: 14.86 MB / 351.8 MB, free: 3.836 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02252/0.2315, allocations: 16.95 MB / 368.8 MB, free: 2.723 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01592/0.2474, allocations: 10.95 MB / 379.7 MB, free: 7.758 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01064/0.2581, allocations: 7.541 MB / 387.3 MB, free: 208 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004376/0.2625, allocations: 2.02 MB / 389.3 MB, free: 14.18 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005751/0.2682, allocations: 2.444 MB / 391.7 MB, free: 11.74 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004473/0.2727, allocations: 4.192 MB / 395.9 MB, free: 7.535 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009023/0.2817, allocations: 5.318 MB / 401.2 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01602/0.2977, allocations: 12.92 MB / 414.2 MB, free: 5.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.2977, allocations: 0 / 414.2 MB, free: 5.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.2977, allocations: 4 kB / 414.2 MB, free: 5.246 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006702/0.2984, allocations: 4 kB / 414.2 MB, free: 5.242 MB / 362.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.02844/0.3268, allocations: 16.96 MB / 431.1 MB, free: 4.152 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.3269, allocations: 11.98 kB / 431.1 MB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2114/0.5383, allocations: 8.3 MB / 439.4 MB, free: 118.5 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0116/0.5499, allocations: 8.262 MB / 447.7 MB, free: 116 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005971/0.5505, allocations: 0.8993 MB / 448.6 MB, free: 115.6 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/0.553, allocations: 1.2 MB / 449.8 MB, free: 115.2 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01981/0.5728, allocations: 10.32 MB / 460.1 MB, free: 110.2 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002555/0.5731, allocations: 23.89 kB / 460.1 MB, free: 110.1 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00104/0.5741, allocations: 499.5 kB / 460.6 MB, free: 109.7 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003449/0.5745, allocations: 0.6537 MB / 461.3 MB, free: 109 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01192/0.5864, allocations: 5.472 MB / 466.8 MB, free: 103.5 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0566/0.643, allocations: 49.85 MB / 0.5045 GB, free: 53.29 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/0.6531, allocations: 9.237 MB / 0.5135 GB, free: 45.09 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002427/0.6556, allocations: 1.829 MB / 0.5153 GB, free: 43.25 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008735/0.6643, allocations: 6.727 MB / 0.5219 GB, free: 36.72 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/0.6644, allocations: 84.62 kB / 0.5219 GB, free: 36.62 MB / 378.8 MB Notification: Performance of pre-optimization done (n=402): time 6.202e-06/0.6644, allocations: 0 / 0.5219 GB, free: 36.62 MB / 378.8 MB Notification: Performance of matching and sorting (n=412): time 0.02184/0.6862, allocations: 13.19 MB / 0.5348 GB, free: 23.45 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.6862, allocations: 120.4 kB / 0.5349 GB, free: 23.32 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004609/0.6909, allocations: 4.421 MB / 0.5393 GB, free: 18.88 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002906/0.6911, allocations: 97.7 kB / 0.5394 GB, free: 18.78 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/0.693, allocations: 5.815 MB / 0.545 GB, free: 12.95 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007727/0.6938, allocations: 1.529 MB / 0.5465 GB, free: 11.44 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001208/0.695, allocations: 1.369 MB / 0.5479 GB, free: 10.05 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.25e-05/0.695, allocations: 476.8 kB / 0.5483 GB, free: 9.586 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.6966, allocations: 0.9573 MB / 0.5493 GB, free: 8.625 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002452/0.6991, allocations: 4.694 MB / 0.5538 GB, free: 2.332 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005764/0.7048, allocations: 6.211 MB / 0.5599 GB, free: 10.52 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.551e-05/0.7049, allocations: 27.94 kB / 0.5599 GB, free: 10.5 MB / 394.8 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.00946/0.7144, allocations: 5.943 MB / 0.5657 GB, free: 4.492 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.128e-05/0.7144, allocations: 40 kB / 0.5658 GB, free: 4.453 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.93e-05/0.7145, allocations: 80 kB / 0.5659 GB, free: 4.375 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/0.7168, allocations: 1.029 MB / 0.5669 GB, free: 3.324 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002903/0.7197, allocations: 1.451 MB / 0.5683 GB, free: 1.871 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1386/0.8583, allocations: 11.32 MB / 0.5793 GB, free: 94.95 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003952/0.8622, allocations: 355.8 kB / 0.5797 GB, free: 94.95 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/0.8633, allocations: 328.5 kB / 0.58 GB, free: 94.95 MB / 394.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.003127/0.8664, allocations: 0.5851 MB / 0.5806 GB, free: 94.79 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/0.8677, allocations: 0.6558 MB / 0.5812 GB, free: 94.79 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008475/0.8762, allocations: 3.985 MB / 0.5851 GB, free: 94.42 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004347/0.8806, allocations: 2.086 MB / 0.5871 GB, free: 94.21 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.164e-05/0.8806, allocations: 14.16 kB / 0.5871 GB, free: 94.21 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-05/0.8807, allocations: 21.28 kB / 0.5872 GB, free: 94.21 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02146/0.9021, allocations: 12.12 MB / 0.599 GB, free: 93.05 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.9021, allocations: 12.97 kB / 0.599 GB, free: 93.05 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002167/0.9043, allocations: 0.6853 MB / 0.5997 GB, free: 93.02 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002975/0.9073, allocations: 1.079 MB / 0.6007 GB, free: 92.93 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002932/0.9076, allocations: 102.5 kB / 0.6008 GB, free: 92.93 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/0.9187, allocations: 15.8 MB / 0.6163 GB, free: 79.99 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.9188, allocations: 5.594 kB / 0.6163 GB, free: 79.99 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009025/0.9278, allocations: 5.139 MB / 0.6213 GB, free: 78.21 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/0.9299, allocations: 0.9727 MB / 0.6222 GB, free: 77.91 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008609/0.9307, allocations: 84.22 kB / 0.6223 GB, free: 77.85 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.9322, allocations: 203.3 kB / 0.6225 GB, free: 77.79 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005921/0.9328, allocations: 327.1 kB / 0.6228 GB, free: 77.74 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002072/0.933, allocations: 134.5 kB / 0.6229 GB, free: 77.71 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.002967/0.936, allocations: 2.137 MB / 0.625 GB, free: 77.04 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.936, allocations: 0 / 0.625 GB, free: 77.04 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.006753/0.9427, allocations: 1.957 MB / 0.6269 GB, free: 76.47 MB / 394.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.0007368/0.9435, allocations: 278.9 kB / 0.6272 GB, free: 76.21 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.006873/0.9503, allocations: 4.805 MB / 0.6319 GB, free: 71.87 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.9503, allocations: 0 / 0.6319 GB, free: 71.87 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003374/0.9537, allocations: 3.053 MB / 0.6349 GB, free: 69.05 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005093/0.9588, allocations: 1.301 MB / 0.6362 GB, free: 68.02 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02377/0.9826, allocations: 17.66 MB / 0.6534 GB, free: 51.22 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002646/0.9852, allocations: 3.108 MB / 0.6564 GB, free: 48.09 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.003452/0.9887, allocations: 1.713 MB / 0.6581 GB, free: 46.37 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000807/0.9895, allocations: 408.4 kB / 0.6585 GB, free: 45.97 MB / 394.8 MB Notification: Performance of SimCode: time 1.934e-06/0.9895, allocations: 0 / 0.6585 GB, free: 45.97 MB / 394.8 MB Notification: Performance of Templates: time 0.2059/1.195, allocations: 73.15 MB / 0.7299 GB, free: 124.5 MB / 410.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.6159007421229035]