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.001828/0.001828, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.002202/0.002202, allocations: 213.9 kB / 24.48 MB, free: 3.836 MB / 14.72 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 1.517/1.517, allocations: 230.5 MB / 258.1 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.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=10000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 63.89 kB / 379 MB, free: 2.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.277, allocations: 53.41 MB / 432.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04137/0.3183, allocations: 32.54 MB / 465 MB, free: 5.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02624/0.3446, allocations: 9.974 MB / 475 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009146/0.3537, allocations: 334.2 kB / 475.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02463/0.3784, allocations: 8.579 MB / 483.9 MB, free: 2.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01604/0.3944, allocations: 4.028 MB / 487.9 MB, free: 14.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009455/0.4038, allocations: 2.399 MB / 490.3 MB, free: 12.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02386/0.4277, allocations: 14.33 MB / 0.4928 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04083/0.4685, allocations: 16.87 MB / 0.5093 GB, free: 13.06 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01491/0.4834, allocations: 7.383 MB / 0.5165 GB, free: 5.656 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01619/0.4996, allocations: 7.726 MB / 0.524 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006766/0.5064, allocations: 2.023 MB / 0.526 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00894/0.5153, allocations: 2.429 MB / 0.5284 GB, free: 9.449 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008662/0.524, allocations: 4.037 MB / 0.5323 GB, free: 5.402 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2632/0.7872, allocations: 6.093 MB / 0.5383 GB, free: 44.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03125/0.8184, allocations: 27.16 MB / 0.5648 GB, free: 39.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.8184, allocations: 0 / 0.5648 GB, free: 39.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.8184, allocations: 0 / 0.5648 GB, free: 39.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000791/0.8192, allocations: 0 / 0.5648 GB, free: 39.69 MB / 446.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.04804/0.8673, allocations: 16.09 MB / 0.5805 GB, free: 30.9 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.8673, allocations: 15.45 kB / 0.5805 GB, free: 30.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03539/0.9027, allocations: 6.427 MB / 0.5868 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01752/0.9202, allocations: 8.623 MB / 0.5952 GB, free: 22.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006433/0.9209, allocations: 0.9003 MB / 0.5961 GB, free: 21.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00497/0.9258, allocations: 1.198 MB / 0.5973 GB, free: 20.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04774/0.9736, allocations: 19.05 MB / 0.6159 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004901/0.9741, allocations: 19.91 kB / 0.6159 GB, free: 1.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00377/0.9778, allocations: 0.4936 MB / 0.6164 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005577/0.9784, allocations: 0.6544 MB / 0.617 GB, free: 136 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04125/1.02, allocations: 16.98 MB / 0.6336 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/1.137, allocations: 53.4 MB / 0.6857 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02404/1.161, allocations: 10.84 MB / 0.6963 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007228/1.168, allocations: 3.671 MB / 0.6999 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02151/1.189, allocations: 8.946 MB / 0.7086 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.024e-05/1.19, allocations: 81.45 kB / 0.7087 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=402): time 9.608e-06/1.19, allocations: 3.984 kB / 0.7087 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of matching and sorting (n=412): time 0.05105/1.241, allocations: 19.69 MB / 0.728 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/1.241, allocations: 120.4 kB / 0.7281 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009875/1.251, allocations: 4.913 MB / 0.7329 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008598/1.251, allocations: 93.7 kB / 0.733 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.005113/1.257, allocations: 5.574 MB / 0.7384 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002364/1.259, allocations: 1.493 MB / 0.7399 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002585/1.262, allocations: 1.259 MB / 0.7411 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000146/1.262, allocations: 309 kB / 0.7414 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2417/1.503, allocations: 2.854 MB / 0.7442 GB, free: 188.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007163/1.511, allocations: 5.401 MB / 0.7494 GB, free: 185.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/1.521, allocations: 8.752 MB / 0.758 GB, free: 180.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001179/1.521, allocations: 26.03 kB / 0.758 GB, free: 180.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01716/1.538, allocations: 9.589 MB / 0.7674 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.002e-05/1.538, allocations: 42.59 kB / 0.7674 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001835/1.538, allocations: 78.47 kB / 0.7675 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002941/1.541, allocations: 1.119 MB / 0.7686 GB, free: 177 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005591/1.547, allocations: 1.459 MB / 0.77 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/1.56, allocations: 12.77 MB / 0.7825 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005468/1.566, allocations: 359.3 kB / 0.7828 GB, free: 168.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001164/1.567, allocations: 327.4 kB / 0.7831 GB, free: 168.1 MB / 0.5606 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.006648/1.574, allocations: 4.23 MB / 0.7873 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/1.575, allocations: 0.5253 MB / 0.7878 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/1.586, allocations: 6.869 MB / 0.7945 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005842/1.592, allocations: 4.219 MB / 0.7986 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.085e-05/1.592, allocations: 23.73 kB / 0.7986 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.619e-05/1.592, allocations: 22.89 kB / 0.7987 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02767/1.619, allocations: 14.15 MB / 0.8125 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/1.619, allocations: 4 kB / 0.8125 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002912/1.622, allocations: 0.6856 MB / 0.8132 GB, free: 143 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003035/1.625, allocations: 1.18 MB / 0.8143 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004855/1.626, allocations: 104 kB / 0.8144 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01575/1.641, allocations: 16.4 MB / 0.8304 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.641, allocations: 9.531 kB / 0.8304 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/1.656, allocations: 10.1 MB / 0.8403 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003434/1.66, allocations: 1.042 MB / 0.8413 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/1.661, allocations: 91.92 kB / 0.8414 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00324/1.664, allocations: 199.8 kB / 0.8416 GB, free: 113.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007697/1.665, allocations: 323.2 kB / 0.8419 GB, free: 113.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002934/1.665, allocations: 128 kB / 0.842 GB, free: 113.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005195/1.67, allocations: 3.183 MB / 0.8451 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/1.67, allocations: 2.953 kB / 0.8451 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008233/1.679, allocations: 1.954 MB / 0.847 GB, free: 108.2 MB / 0.5606 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.00107/1.68, allocations: 278.2 kB / 0.8473 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01179/1.692, allocations: 7.343 MB / 0.8545 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.692, allocations: 0 / 0.8545 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00666/1.698, allocations: 3.869 MB / 0.8583 GB, free: 96.55 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008224/1.706, allocations: 1.27 MB / 0.8595 GB, free: 95.31 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04265/1.749, allocations: 20.36 MB / 0.8794 GB, free: 74.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01307/1.762, allocations: 6.749 MB / 0.886 GB, free: 68.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00236/1.764, allocations: 475.3 kB / 0.8864 GB, free: 67.62 MB / 0.5606 GB Notification: Performance of SimCode: time 1.342e-06/1.764, allocations: 0 / 0.8864 GB, free: 67.62 MB / 0.5606 GB Notification: Performance of Templates: time 1.008/2.773, allocations: 0.4993 GB / 1.386 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 657] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.5808446649462]