Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 85.22 kB / 22 MB, free: 5.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 161.8 kB / 25.25 MB, free: 3.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 158.6 MB / 187 MB, free: 6.23 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 56.39 kB / 299.4 MB, free: 6.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1968, allocations: 49.14 MB / 348.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0382/0.235, allocations: 25.09 MB / 373.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02178/0.2567, allocations: 8.238 MB / 381.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005249/0.262, allocations: 218.9 kB / 382.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02523/0.2872, allocations: 8.067 MB / 390.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01208/0.2993, allocations: 3.066 MB / 393.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006576/0.3059, allocations: 1.902 MB / 395.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01788/0.3237, allocations: 10.58 MB / 405.7 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02868/0.3524, allocations: 14.02 MB / 419.7 MB, free: 7.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01142/0.3638, allocations: 5.747 MB / 425.5 MB, free: 2.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01432/0.3782, allocations: 6.182 MB / 431.7 MB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004873/0.383, allocations: 1.582 MB / 433.2 MB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007208/0.3902, allocations: 1.918 MB / 435.2 MB, free: 8.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00575/0.396, allocations: 3.199 MB / 438.4 MB, free: 5.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01101/0.407, allocations: 4.763 MB / 443.1 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0322/0.4392, allocations: 21.33 MB / 464.4 MB, free: 11.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4392, allocations: 0 / 464.4 MB, free: 11.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4392, allocations: 0 / 464.4 MB, free: 11.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004009/0.4396, allocations: 0 / 464.4 MB, free: 11.11 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.3454/0.785, allocations: 12.59 MB / 477 MB, free: 97.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.7851, allocations: 9.25 kB / 477 MB, free: 97.81 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04535/0.8304, allocations: 8.668 MB / 485.7 MB, free: 94.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/0.8407, allocations: 5.961 MB / 491.7 MB, free: 89.26 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003575/0.841, allocations: 0.7421 MB / 492.4 MB, free: 88.53 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002032/0.8431, allocations: 0.976 MB / 493.4 MB, free: 87.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0286/0.8717, allocations: 16.72 MB / 0.4982 GB, free: 70.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003958/0.8721, allocations: 15.95 kB / 0.4982 GB, free: 70.74 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002541/0.8746, allocations: 415.5 kB / 0.4986 GB, free: 70.35 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004421/0.875, allocations: 0.6106 MB / 0.4992 GB, free: 69.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02557/0.9006, allocations: 15.89 MB / 0.5147 GB, free: 53.83 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05755/0.9582, allocations: 44.39 MB / 0.558 GB, free: 9.141 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01714/0.9753, allocations: 12.09 MB / 0.5698 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004984/0.9803, allocations: 3.144 MB / 0.5729 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01564/0.9959, allocations: 8.381 MB / 0.5811 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.145e-05/0.996, allocations: 64.62 kB / 0.5812 GB, free: 4.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.05e-06/0.996, allocations: 0 / 0.5812 GB, free: 4.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02721/1.023, allocations: 12.81 MB / 0.5937 GB, free: 7.352 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/1.023, allocations: 77.59 kB / 0.5937 GB, free: 7.262 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005812/1.029, allocations: 4.075 MB / 0.5977 GB, free: 3.203 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001709/1.029, allocations: 65.7 kB / 0.5978 GB, free: 3.133 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003579/1.033, allocations: 4.811 MB / 0.6025 GB, free: 14.28 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009378/1.034, allocations: 1.038 MB / 0.6035 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001786/1.036, allocations: 1.238 MB / 0.6047 GB, free: 11.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/1.036, allocations: 309.1 kB / 0.605 GB, free: 11.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003854/1.04, allocations: 2.444 MB / 0.6074 GB, free: 9.227 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006637/1.046, allocations: 5.628 MB / 0.6129 GB, free: 2.055 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/1.058, allocations: 8.686 MB / 0.6214 GB, free: 7.797 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.325e-05/1.058, allocations: 32 kB / 0.6214 GB, free: 7.766 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01501/1.073, allocations: 8.716 MB / 0.6299 GB, free: 15 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.064e-05/1.073, allocations: 51.94 kB / 0.63 GB, free: 14.95 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001201/1.073, allocations: 112 kB / 0.6301 GB, free: 14.84 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/1.075, allocations: 0.845 MB / 0.6309 GB, free: 13.99 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004517/1.08, allocations: 1.404 MB / 0.6323 GB, free: 12.59 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/1.091, allocations: 7.233 MB / 0.6393 GB, free: 5.234 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003759/1.095, allocations: 359.5 kB / 0.6397 GB, free: 4.883 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005244/1.095, allocations: 344 kB / 0.64 GB, free: 4.547 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005745/1.101, allocations: 3.68 MB / 0.6436 GB, free: 0.8516 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008255/1.102, allocations: 409.4 kB / 0.644 GB, free: 460 kB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009324/1.111, allocations: 5.034 MB / 0.6489 GB, free: 11.36 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/1.111, allocations: 28 kB / 0.6489 GB, free: 11.34 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/1.111, allocations: 8 kB / 0.6489 GB, free: 11.33 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.333e-05/1.111, allocations: 23.92 kB / 0.649 GB, free: 11.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01886/1.13, allocations: 10.35 MB / 0.6591 GB, free: 0.832 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/1.13, allocations: 4 kB / 0.6591 GB, free: 0.8281 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002326/1.133, allocations: 0.5226 MB / 0.6596 GB, free: 312 kB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1824/1.315, allocations: 0.6782 MB / 0.6602 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000464/1.315, allocations: 66.8 kB / 0.6603 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008027/1.323, allocations: 6.389 MB / 0.6665 GB, free: 169.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.323, allocations: 3.688 kB / 0.6665 GB, free: 169.9 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008678/1.332, allocations: 7.308 MB / 0.6737 GB, free: 166.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/1.334, allocations: 0.7483 MB / 0.6744 GB, free: 166.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004007/1.334, allocations: 51.45 kB / 0.6745 GB, free: 166.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/1.336, allocations: 169.6 kB / 0.6746 GB, free: 166.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/1.336, allocations: 212.7 kB / 0.6748 GB, free: 166.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/1.336, allocations: 85.52 kB / 0.6749 GB, free: 166.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002873/1.339, allocations: 2.543 MB / 0.6774 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/1.339, allocations: 0 / 0.6774 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004581/1.344, allocations: 1.542 MB / 0.6789 GB, free: 165.5 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (263): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003643/1.344, allocations: 223.8 kB / 0.6791 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007062/1.351, allocations: 5.873 MB / 0.6848 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.351, allocations: 0 / 0.6848 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002899/1.354, allocations: 2.291 MB / 0.6871 GB, free: 162.2 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003197/1.357, allocations: 0.8815 MB / 0.6879 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01891/1.376, allocations: 16.47 MB / 0.704 GB, free: 146.6 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004664/1.381, allocations: 5.761 MB / 0.7096 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003979/1.385, allocations: 1.923 MB / 0.7115 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007417/1.385, allocations: 324.4 kB / 0.7118 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of SimCode: time 8.11e-07/1.385, allocations: 0 / 0.7118 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of Templates: time 0.07889/1.464, allocations: 50.68 MB / 0.7613 GB, free: 89.19 MB / 0.5138 GB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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: 7.231050165952183]