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.0008443/0.0008443, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001377/0.002221, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001301/0.001301, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001813/0.003114, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.022/1.022, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1685/1.191, allocations: 49.49 MB / 220.7 MB, free: 1.359 MB / 218.7 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: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 222 MB, free: 36 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.034e-05/2.203e-05, allocations: 2.312 kB / 222 MB, free: 32 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02128/0.0213, allocations: 27.63 MB / 249.6 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01948/0.04078, allocations: 8.942 MB / 258.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006885/0.04767, allocations: 214.9 kB / 258.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01248/0.06014, allocations: 8.69 MB / 267.5 MB, free: 2.363 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.07093, allocations: 3.126 MB / 270.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005501/0.07643, allocations: 1.931 MB / 272.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01454/0.09097, allocations: 10.98 MB / 283.5 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1854/0.2764, allocations: 14.08 MB / 297.6 MB, free: 3.086 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02084/0.2972, allocations: 8.873 MB / 306.5 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01121/0.3084, allocations: 6.292 MB / 312.8 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005771/0.3142, allocations: 1.574 MB / 314.3 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008344/0.3225, allocations: 1.948 MB / 316.3 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006125/0.3287, allocations: 2.611 MB / 318.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01957/0.3482, allocations: 4.187 MB / 323.1 MB, free: 0 / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02041/0.3686, allocations: 9.763 MB / 332.9 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.632e-05/0.3686, allocations: 0 / 332.9 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3687, allocations: 0 / 332.9 MB, free: 6.984 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000631/0.3693, allocations: 0.5 kB / 332.9 MB, free: 6.984 MB / 298.7 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.02811/0.3974, allocations: 14.09 MB / 346.9 MB, free: 9.492 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.3974, allocations: 8.031 kB / 346.9 MB, free: 9.484 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0269/0.4243, allocations: 8.184 MB / 355.1 MB, free: 1.609 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.4349, allocations: 2.944 MB / 358.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009427/0.4359, allocations: 0.74 MB / 358.8 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003644/0.4395, allocations: 0.9852 MB / 359.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02565/0.4652, allocations: 8.279 MB / 368.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003969/0.4656, allocations: 11.95 kB / 368.1 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002998/0.4686, allocations: 417.1 kB / 368.5 MB, free: 4.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004963/0.4691, allocations: 0.5833 MB / 369.1 MB, free: 4.258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/0.4858, allocations: 4.429 MB / 373.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07066/0.5564, allocations: 31.21 MB / 404.7 MB, free: 1.559 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01226/0.5687, allocations: 7.02 MB / 411.7 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/0.5707, allocations: 1.176 MB / 412.9 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009043/0.5798, allocations: 4.391 MB / 417.3 MB, free: 5.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.526e-05/0.5798, allocations: 72.33 kB / 417.4 MB, free: 5.262 MB / 378.7 MB Notification: Performance of pre-optimization done (n=270): time 4.218e-06/0.5798, allocations: 0 / 417.4 MB, free: 5.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=278): time 0.01541/0.5953, allocations: 6.43 MB / 423.8 MB, free: 14.83 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.5953, allocations: 77.59 kB / 423.9 MB, free: 14.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/0.5989, allocations: 2.85 MB / 426.7 MB, free: 12.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008528/0.5997, allocations: 69.7 kB / 426.8 MB, free: 12.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002241/0.602, allocations: 4.458 MB / 431.3 MB, free: 8.102 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001152/0.6031, allocations: 1.028 MB / 432.3 MB, free: 7.129 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001233/0.6044, allocations: 1.138 MB / 433.4 MB, free: 6.098 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.068e-05/0.6045, allocations: 309.1 kB / 433.7 MB, free: 5.793 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007801/0.6052, allocations: 0.5543 MB / 434.3 MB, free: 5.238 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002748/0.608, allocations: 3.762 MB / 438 MB, free: 140 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1747/0.7827, allocations: 5.491 MB / 443.5 MB, free: 88.65 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000143/0.7828, allocations: 31.08 kB / 443.6 MB, free: 88.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.00908/0.7919, allocations: 4.227 MB / 447.8 MB, free: 88.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.397e-05/0.792, allocations: 52.91 kB / 447.8 MB, free: 88.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/0.7922, allocations: 108.6 kB / 448 MB, free: 88.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001925/0.7941, allocations: 0.7512 MB / 448.7 MB, free: 88.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003003/0.7971, allocations: 1.469 MB / 450.2 MB, free: 88.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003963/0.8011, allocations: 3.707 MB / 453.9 MB, free: 87.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004049/0.8051, allocations: 272.4 kB / 454.1 MB, free: 87.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006258/0.8057, allocations: 294.6 kB / 454.4 MB, free: 87.04 MB / 394.7 MB 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.003123/0.8088, allocations: 0.5554 MB / 455 MB, free: 86.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007769/0.8096, allocations: 323.5 kB / 455.3 MB, free: 86.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.8129, allocations: 2.18 MB / 457.5 MB, free: 86.71 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.8129, allocations: 27.5 kB / 457.5 MB, free: 86.71 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.8129, allocations: 7 kB / 457.5 MB, free: 86.71 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/0.8129, allocations: 19.28 kB / 457.5 MB, free: 86.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008422/0.8213, allocations: 4.543 MB / 462.1 MB, free: 86.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.8214, allocations: 6.547 kB / 462.1 MB, free: 86.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.8226, allocations: 0.4941 MB / 462.6 MB, free: 86.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/0.824, allocations: 460.4 kB / 463 MB, free: 86.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.8253, allocations: 0.5956 MB / 463.6 MB, free: 86.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.8254, allocations: 57.86 kB / 463.7 MB, free: 86.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003465/0.8289, allocations: 3.31 MB / 467 MB, free: 84.83 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.8289, allocations: 3.625 kB / 467 MB, free: 84.83 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003848/0.8327, allocations: 2.549 MB / 469.5 MB, free: 84.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/0.8339, allocations: 53.47 kB / 469.6 MB, free: 84.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.8355, allocations: 81.42 kB / 469.7 MB, free: 84.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004827/0.836, allocations: 205.9 kB / 469.9 MB, free: 84.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.8362, allocations: 61.28 kB / 469.9 MB, free: 84.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002062/0.8382, allocations: 1.25 MB / 471.2 MB, free: 84.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8382, allocations: 1.094 kB / 471.2 MB, free: 84.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005996/0.8442, allocations: 1.542 MB / 472.7 MB, free: 84.21 MB / 394.7 MB 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.0006913/0.8449, allocations: 204 kB / 472.9 MB, free: 84.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005761/0.8507, allocations: 3.139 MB / 476.1 MB, free: 83.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002529/0.8509, allocations: 99.19 kB / 476.2 MB, free: 83.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001963/0.8529, allocations: 1.406 MB / 477.6 MB, free: 83.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0057/0.8586, allocations: 7.545 MB / 485.1 MB, free: 76.56 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06254/0.9211, allocations: 14.13 MB / 499.2 MB, free: 68.78 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003212/0.9243, allocations: 1.85 MB / 0.4893 GB, free: 67.54 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002429/0.9268, allocations: 0.6926 MB / 0.49 GB, free: 66.99 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/0.9283, allocations: 0.864 MB / 0.4909 GB, free: 66.25 MB / 394.7 MB Notification: Performance of SimCode: time 1.864e-06/0.9283, allocations: 0 / 0.4909 GB, free: 66.25 MB / 394.7 MB Notification: Performance of Templates: time 0.08645/1.015, allocations: 57.48 MB / 0.547 GB, free: 13.24 MB / 394.7 MB " [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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.629137184470892]