Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001636/0.001636, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001706/0.001706, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9499/0.9499, allocations: 177.1 MB / 205 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 273 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.505e-05/2.688e-05, allocations: 2.312 kB / 273 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1664/0.1664, allocations: 28.09 MB / 301.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.1826, allocations: 8.402 MB / 309.5 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006376/0.1889, allocations: 251.7 kB / 309.8 MB, free: 9.688 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01073/0.1997, allocations: 8.736 MB / 318.5 MB, free: 4.023 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00794/0.2076, allocations: 2.93 MB / 321.4 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0037/0.2113, allocations: 1.889 MB / 323.3 MB, free: 252 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.2224, allocations: 10.44 MB / 333.8 MB, free: 6.102 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0183/0.2407, allocations: 13.92 MB / 347.7 MB, free: 8.043 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01048/0.2512, allocations: 8.183 MB / 355.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007991/0.2592, allocations: 5.852 MB / 361.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00354/0.2628, allocations: 1.539 MB / 363.3 MB, free: 8.441 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005092/0.2678, allocations: 1.921 MB / 365.2 MB, free: 6.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003036/0.2709, allocations: 3.094 MB / 368.3 MB, free: 3.418 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007124/0.278, allocations: 3.965 MB / 372.2 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01285/0.2909, allocations: 9.929 MB / 382.2 MB, free: 5.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.2909, allocations: 0 / 382.2 MB, free: 5.488 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2909, allocations: 0 / 382.2 MB, free: 5.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003755/0.2912, allocations: 0 / 382.2 MB, free: 5.488 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.02118/0.3124, allocations: 12.79 MB / 395 MB, free: 8.594 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.3125, allocations: 8.031 kB / 395 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0175/0.33, allocations: 7.046 MB / 402 MB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/0.341, allocations: 6.043 MB / 408.1 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005996/0.3416, allocations: 0.7067 MB / 408.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002613/0.3442, allocations: 0.9333 MB / 409.7 MB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01795/0.3622, allocations: 8.183 MB / 417.9 MB, free: 1.465 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001883/0.3624, allocations: 11.91 kB / 417.9 MB, free: 1.453 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007899/0.3632, allocations: 392 kB / 418.3 MB, free: 1.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000376/0.3635, allocations: 0.5155 MB / 418.8 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.3754, allocations: 4.411 MB / 423.2 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2969/0.6724, allocations: 38.69 MB / 461.9 MB, free: 70.96 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007415/0.6798, allocations: 6.878 MB / 468.8 MB, free: 70.69 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002042/0.6818, allocations: 1.388 MB / 470.2 MB, free: 70.65 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000257/0.6821, allocations: 118.1 kB / 470.3 MB, free: 70.64 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.412e-05/0.6822, allocations: 75.84 kB / 470.3 MB, free: 70.6 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 7.995e-06/0.6822, allocations: 0 / 470.3 MB, free: 70.6 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01578/0.6979, allocations: 8.829 MB / 479.2 MB, free: 67.64 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.698, allocations: 92.33 kB / 479.3 MB, free: 67.57 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003795/0.7018, allocations: 3.406 MB / 482.7 MB, free: 65.09 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002096/0.702, allocations: 89.7 kB / 482.8 MB, free: 64.99 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001644/0.7036, allocations: 4.418 MB / 487.2 MB, free: 61.24 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007535/0.7044, allocations: 1.436 MB / 488.6 MB, free: 59.84 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001116/0.7055, allocations: 1.308 MB / 489.9 MB, free: 58.52 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 7.234e-05/0.7056, allocations: 480.7 kB / 490.4 MB, free: 58.04 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.7069, allocations: 0.8432 MB / 491.2 MB, free: 57.2 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002466/0.7094, allocations: 4.594 MB / 495.8 MB, free: 51.03 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004465/0.7138, allocations: 6.035 MB / 0.4901 GB, free: 43.71 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-05/0.7139, allocations: 24 kB / 0.4901 GB, free: 43.69 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.007243/0.7211, allocations: 5.298 MB / 0.4953 GB, free: 38.92 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.935e-05/0.7212, allocations: 45.16 kB / 0.4953 GB, free: 38.88 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-05/0.7213, allocations: 87.98 kB / 0.4954 GB, free: 38.79 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001634/0.7229, allocations: 0.8023 MB / 0.4962 GB, free: 37.99 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/0.7253, allocations: 1.369 MB / 0.4975 GB, free: 36.72 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004818/0.7301, allocations: 5.063 MB / 0.5025 GB, free: 31.59 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/0.7324, allocations: 327.5 kB / 0.5028 GB, free: 31.27 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002779/0.7327, allocations: 308 kB / 0.5031 GB, free: 30.97 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001982/0.7347, allocations: 0.5712 MB / 0.5036 GB, free: 30.48 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006772/0.7354, allocations: 0.5209 MB / 0.5042 GB, free: 29.96 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004316/0.7397, allocations: 3.409 MB / 0.5075 GB, free: 26.54 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.7397, allocations: 40 kB / 0.5075 GB, free: 26.5 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.7397, allocations: 12 kB / 0.5075 GB, free: 26.49 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.7397, allocations: 19.92 kB / 0.5076 GB, free: 26.47 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/0.7529, allocations: 10.77 MB / 0.5181 GB, free: 15.74 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.7529, allocations: 6.531 kB / 0.5181 GB, free: 15.74 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.7543, allocations: 0.698 MB / 0.5188 GB, free: 15.08 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/0.7556, allocations: 0.6649 MB / 0.5194 GB, free: 14.41 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000173/0.7558, allocations: 95.91 kB / 0.5195 GB, free: 14.32 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003938/0.7597, allocations: 4.529 MB / 0.5239 GB, free: 9.691 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.7597, allocations: 4 kB / 0.5239 GB, free: 9.688 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005543/0.7653, allocations: 4.354 MB / 0.5282 GB, free: 5.211 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.7665, allocations: 0.7587 MB / 0.5289 GB, free: 4.449 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/0.7668, allocations: 91.62 kB / 0.529 GB, free: 4.363 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008972/0.7677, allocations: 179.8 kB / 0.5292 GB, free: 4.188 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003003/0.768, allocations: 284.1 kB / 0.5295 GB, free: 3.914 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.7682, allocations: 120 kB / 0.5296 GB, free: 3.797 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001788/0.77, allocations: 1.541 MB / 0.5311 GB, free: 2.266 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.71e-07/0.77, allocations: 8.031 kB / 0.5311 GB, free: 2.258 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.004152/0.7741, allocations: 1.543 MB / 0.5326 GB, free: 0.7148 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (377): * Single equations (assignments): 376 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004788/0.7746, allocations: 266.5 kB / 0.5328 GB, free: 500 kB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.005817/0.7804, allocations: 3.881 MB / 0.5366 GB, free: 12.84 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.7804, allocations: 0 / 0.5366 GB, free: 12.84 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/0.7827, allocations: 1.871 MB / 0.5385 GB, free: 11.02 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/0.7855, allocations: 0.9357 MB / 0.5394 GB, free: 10.13 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02066/0.8061, allocations: 13.42 MB / 0.5525 GB, free: 12.54 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002472/0.8086, allocations: 2.479 MB / 0.5549 GB, free: 10.02 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003379/0.812, allocations: 1.595 MB / 0.5565 GB, free: 8.422 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007937/0.8128, allocations: 356.4 kB / 0.5568 GB, free: 8.074 MB / 410.8 MB Notification: Performance of SimCode: time 1.973e-06/0.8128, allocations: 4 kB / 0.5568 GB, free: 8.07 MB / 410.8 MB Notification: Performance of Templates: time 0.2089/1.022, allocations: 55.22 MB / 0.6107 GB, free: 114.3 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_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_MTPA/SMPM_MTPA.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: 4.961369249969721]