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.0008991/0.0008991, allocations: 81.91 kB / 21.43 MB, free: 3.062 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.0009713/0.0009713, allocations: 162.7 kB / 24.82 MB, free: 9.262 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.9226/0.9226, allocations: 177 MB / 205.1 MB, free: 5.449 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.823e-06/1.823e-06, allocations: 0 / 273.4 MB, free: 1.152 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.545e-05, allocations: 2.312 kB / 273.4 MB, free: 1.148 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1458/0.1458, allocations: 35.65 MB / 309 MB, free: 9.973 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01779/0.1636, allocations: 10.17 MB / 319.2 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007423/0.1711, allocations: 330.8 kB / 319.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01465/0.1857, allocations: 9.423 MB / 328.9 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01359/0.1993, allocations: 4.132 MB / 333.1 MB, free: 6.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006397/0.2057, allocations: 2.432 MB / 335.5 MB, free: 4 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01831/0.224, allocations: 14.88 MB / 350.4 MB, free: 5.078 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02679/0.2508, allocations: 16.94 MB / 367.3 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01909/0.2699, allocations: 10.96 MB / 378.3 MB, free: 8.984 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01104/0.2809, allocations: 7.696 MB / 386 MB, free: 1.273 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005039/0.286, allocations: 2.02 MB / 388 MB, free: 15.25 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007005/0.293, allocations: 2.437 MB / 390.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005211/0.2982, allocations: 4.188 MB / 394.6 MB, free: 8.617 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0106/0.3088, allocations: 5.314 MB / 400 MB, free: 3.293 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.3263, allocations: 12.91 MB / 412.9 MB, free: 6.344 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3263, allocations: 0 / 412.9 MB, free: 6.344 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3263, allocations: 0 / 412.9 MB, free: 6.344 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000577/0.3269, allocations: 0 / 412.9 MB, free: 6.344 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.02671/0.3536, allocations: 16.07 MB / 428.9 MB, free: 6.145 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3537, allocations: 19.92 kB / 429 MB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2524/0.6061, allocations: 6.679 MB / 435.6 MB, free: 78.16 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.618, allocations: 7.747 MB / 443.4 MB, free: 77.7 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005905/0.6186, allocations: 0.907 MB / 444.3 MB, free: 77.67 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001653/0.6202, allocations: 1.199 MB / 445.5 MB, free: 77.66 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.6345, allocations: 9.475 MB / 455 MB, free: 76.64 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002122/0.6348, allocations: 19.64 kB / 455 MB, free: 76.63 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000958/0.6357, allocations: 0.4906 MB / 455.5 MB, free: 76.63 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004564/0.6362, allocations: 0.6581 MB / 456.1 MB, free: 76.6 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006068/0.6422, allocations: 4.263 MB / 460.4 MB, free: 76.33 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0371/0.6793, allocations: 49.24 MB / 0.4977 GB, free: 32.78 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007197/0.6865, allocations: 7.83 MB / 0.5053 GB, free: 26.11 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.6879, allocations: 1.583 MB / 0.5069 GB, free: 24.57 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00648/0.6944, allocations: 6.491 MB / 0.5132 GB, free: 18.42 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.649e-05/0.6945, allocations: 84.38 kB / 0.5133 GB, free: 18.33 MB / 378.8 MB Notification: Performance of pre-optimization done (n=402): time 5.15e-06/0.6945, allocations: 0 / 0.5133 GB, free: 18.33 MB / 378.8 MB Notification: Performance of matching and sorting (n=412): time 0.0157/0.7102, allocations: 9.496 MB / 0.5226 GB, free: 9.215 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.7102, allocations: 120.4 kB / 0.5227 GB, free: 9.078 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00299/0.7132, allocations: 4.32 MB / 0.5269 GB, free: 5.418 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.7133, allocations: 101 kB / 0.527 GB, free: 5.316 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00166/0.715, allocations: 5.851 MB / 0.5327 GB, free: 15.63 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008183/0.7158, allocations: 1.535 MB / 0.5342 GB, free: 14.18 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00158/0.7174, allocations: 1.396 MB / 0.5356 GB, free: 12.9 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 8.866e-05/0.7175, allocations: 480.5 kB / 0.536 GB, free: 12.43 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009365/0.7184, allocations: 0.7307 MB / 0.5368 GB, free: 11.7 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002768/0.7212, allocations: 4.505 MB / 0.5412 GB, free: 5.789 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00417/0.7254, allocations: 5.857 MB / 0.5469 GB, free: 14.83 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.646e-05/0.7254, allocations: 25.97 kB / 0.5469 GB, free: 14.8 MB / 410.8 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.005859/0.7312, allocations: 5.409 MB / 0.5522 GB, free: 9.902 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.7313, allocations: 44.09 kB / 0.5522 GB, free: 9.859 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.998e-05/0.7313, allocations: 84 kB / 0.5523 GB, free: 9.777 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/0.7331, allocations: 0.9995 MB / 0.5533 GB, free: 8.773 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002644/0.7357, allocations: 1.362 MB / 0.5546 GB, free: 7.512 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007463/0.7432, allocations: 10.98 MB / 0.5653 GB, free: 12.27 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/0.7451, allocations: 251.8 kB / 0.5656 GB, free: 12.02 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000299/0.7454, allocations: 275.9 kB / 0.5658 GB, free: 11.75 MB / 426.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.001832/0.7472, allocations: 0.5771 MB / 0.5664 GB, free: 11.27 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006997/0.7479, allocations: 0.6569 MB / 0.567 GB, free: 10.61 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004732/0.7526, allocations: 3.606 MB / 0.5706 GB, free: 6.988 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002257/0.7549, allocations: 1.801 MB / 0.5723 GB, free: 5.18 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.7549, allocations: 12 kB / 0.5723 GB, free: 5.168 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.559e-05/0.7549, allocations: 23.92 kB / 0.5724 GB, free: 5.145 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1506/0.9055, allocations: 11.74 MB / 0.5838 GB, free: 94.79 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.9055, allocations: 6.562 kB / 0.5838 GB, free: 94.79 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/0.9071, allocations: 0.6123 MB / 0.5844 GB, free: 94.79 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002346/0.9095, allocations: 1.052 MB / 0.5855 GB, free: 94.71 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002429/0.9097, allocations: 100.3 kB / 0.5855 GB, free: 94.71 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007745/0.9174, allocations: 15.37 MB / 0.6006 GB, free: 83.61 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.9174, allocations: 8.5 kB / 0.6006 GB, free: 83.61 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005855/0.9233, allocations: 4.588 MB / 0.605 GB, free: 82.7 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/0.9247, allocations: 0.91 MB / 0.6059 GB, free: 82.7 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004039/0.9251, allocations: 84.61 kB / 0.606 GB, free: 82.7 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.9262, allocations: 121.6 kB / 0.6061 GB, free: 82.7 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.9266, allocations: 323.8 kB / 0.6064 GB, free: 82.69 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/0.9267, allocations: 100.3 kB / 0.6065 GB, free: 82.69 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.001921/0.9287, allocations: 1.97 MB / 0.6085 GB, free: 82.46 MB / 426.8 MB Notification: Performance of sort global known variables: time 8.1e-08/0.9287, allocations: 0 / 0.6085 GB, free: 82.46 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004447/0.9331, allocations: 1.952 MB / 0.6104 GB, free: 82.46 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.000444/0.9336, allocations: 285.7 kB / 0.6106 GB, free: 82.38 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.004369/0.9379, allocations: 4.407 MB / 0.6149 GB, free: 81.44 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.9379, allocations: 1.438 kB / 0.6149 GB, free: 81.44 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00239/0.9403, allocations: 2.889 MB / 0.6178 GB, free: 80.28 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/0.9433, allocations: 1.307 MB / 0.619 GB, free: 80.18 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02083/0.9642, allocations: 17.51 MB / 0.6361 GB, free: 71.12 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002232/0.9664, allocations: 3.096 MB / 0.6392 GB, free: 69.62 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002287/0.9687, allocations: 0.8216 MB / 0.64 GB, free: 68.98 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001937/0.9706, allocations: 1.317 MB / 0.6413 GB, free: 67.91 MB / 426.8 MB Notification: Performance of SimCode: time 1.272e-06/0.9706, allocations: 0 / 0.6413 GB, free: 67.91 MB / 426.8 MB Notification: Performance of Templates: time 0.1062/1.077, allocations: 79.97 MB / 0.7193 GB, free: 11.07 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.435911627020687]