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.0007965/0.0007965, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00247/0.003267, allocations: 445.7 kB / 10.37 MB, free: 328 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.001344/0.001344, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001827/0.003171, allocations: 463.6 kB / 11.71 MB, free: 2.453 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 0.9914/0.9914, allocations: 158.6 MB / 171.1 MB, free: 2.57 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1663/1.158, allocations: 49.48 MB / 220.5 MB, free: 1.449 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.783e-06/1.783e-06, allocations: 0 / 221.9 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.041e-05/2.219e-05, allocations: 2.312 kB / 221.9 MB, free: 148 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02174/0.02177, allocations: 27.63 MB / 249.5 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01748/0.03924, allocations: 8.938 MB / 258.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006273/0.04552, allocations: 214.9 kB / 258.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01199/0.05751, allocations: 8.702 MB / 267.3 MB, free: 2.465 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009397/0.0669, allocations: 3.119 MB / 270.5 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004982/0.07189, allocations: 1.919 MB / 272.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0136/0.08549, allocations: 10.99 MB / 283.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1706/0.2561, allocations: 14.07 MB / 297.4 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01578/0.2719, allocations: 8.873 MB / 306.3 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008945/0.2808, allocations: 6.292 MB / 312.6 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00438/0.2852, allocations: 1.575 MB / 314.2 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007435/0.2927, allocations: 1.952 MB / 316.1 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005025/0.2977, allocations: 2.613 MB / 318.7 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01714/0.3148, allocations: 4.108 MB / 322.8 MB, free: 0 / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01792/0.3327, allocations: 9.793 MB / 332.6 MB, free: 7.227 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.993e-05/0.3328, allocations: 3.984 kB / 332.6 MB, free: 7.223 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3328, allocations: 5.094 kB / 332.6 MB, free: 7.219 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0005662/0.3333, allocations: 0 / 332.6 MB, free: 7.219 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.024/0.3573, allocations: 14.09 MB / 346.7 MB, free: 9.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.3574, allocations: 8.031 kB / 346.7 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02279/0.3802, allocations: 8.193 MB / 354.9 MB, free: 1.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007182/0.3873, allocations: 2.948 MB / 357.9 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004729/0.3878, allocations: 0.745 MB / 358.6 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002047/0.3899, allocations: 0.9854 MB / 359.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01815/0.408, allocations: 8.277 MB / 367.9 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002293/0.4082, allocations: 11.78 kB / 367.9 MB, free: 5.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00119/0.4094, allocations: 411.8 kB / 368.3 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004575/0.4099, allocations: 0.6106 MB / 368.9 MB, free: 4.461 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009961/0.4198, allocations: 4.427 MB / 373.3 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05195/0.4718, allocations: 31.22 MB / 404.6 MB, free: 1.754 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009254/0.4811, allocations: 7.005 MB / 411.6 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002024/0.4831, allocations: 1.184 MB / 412.7 MB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008825/0.4919, allocations: 4.399 MB / 417.1 MB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.4919, allocations: 60.69 kB / 417.2 MB, free: 5.461 MB / 378.7 MB Notification: Performance of pre-optimization done (n=270): time 4.318e-06/0.492, allocations: 0 / 417.2 MB, free: 5.461 MB / 378.7 MB Notification: Performance of matching and sorting (n=278): time 0.01148/0.5034, allocations: 5.79 MB / 423 MB, free: 15.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.5035, allocations: 81.59 kB / 423.1 MB, free: 15.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003379/0.5069, allocations: 2.85 MB / 425.9 MB, free: 13.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003871/0.5072, allocations: 69.7 kB / 426 MB, free: 13.24 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002461/0.5097, allocations: 4.456 MB / 430.5 MB, free: 8.934 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001092/0.5108, allocations: 1.027 MB / 431.5 MB, free: 7.961 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001467/0.5123, allocations: 1.143 MB / 432.6 MB, free: 6.926 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.081e-05/0.5123, allocations: 301.1 kB / 432.9 MB, free: 6.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007961/0.5131, allocations: 0.5546 MB / 433.5 MB, free: 6.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002181/0.5153, allocations: 3.755 MB / 437.2 MB, free: 0.9766 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1414/0.6567, allocations: 5.144 MB / 442.4 MB, free: 88.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.757e-05/0.6568, allocations: 32.66 kB / 442.4 MB, free: 88.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.006957/0.6637, allocations: 4.231 MB / 446.6 MB, free: 88.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.912e-05/0.6638, allocations: 52.78 kB / 446.7 MB, free: 88.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/0.664, allocations: 108.8 kB / 446.8 MB, free: 88.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001594/0.6656, allocations: 0.7432 MB / 447.5 MB, free: 88.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002809/0.6684, allocations: 1.468 MB / 449 MB, free: 88.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003537/0.6719, allocations: 3.734 MB / 452.7 MB, free: 86.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002883/0.6748, allocations: 267.5 kB / 453 MB, free: 86.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003573/0.6752, allocations: 297.2 kB / 453.3 MB, free: 86.96 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.002301/0.6775, allocations: 0.5546 MB / 453.8 MB, free: 86.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000607/0.6781, allocations: 328 kB / 454.2 MB, free: 86.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.6809, allocations: 2.185 MB / 456.3 MB, free: 86.63 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.6809, allocations: 29.97 kB / 456.4 MB, free: 86.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.6809, allocations: 6.062 kB / 456.4 MB, free: 86.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.778e-05/0.681, allocations: 16.45 kB / 456.4 MB, free: 86.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007165/0.6881, allocations: 4.537 MB / 460.9 MB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.6881, allocations: 6.641 kB / 460.9 MB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.6893, allocations: 0.5033 MB / 461.4 MB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.6903, allocations: 453.6 kB / 461.9 MB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.6915, allocations: 0.5941 MB / 462.5 MB, free: 86.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.6916, allocations: 59 kB / 462.5 MB, free: 86.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002906/0.6945, allocations: 3.332 MB / 465.9 MB, free: 84.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.6945, allocations: 1.906 kB / 465.9 MB, free: 84.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003156/0.6977, allocations: 2.538 MB / 468.4 MB, free: 84.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005635/0.6982, allocations: 51.47 kB / 468.5 MB, free: 84.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007847/0.699, allocations: 78.02 kB / 468.5 MB, free: 84.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.6993, allocations: 211.7 kB / 468.7 MB, free: 84.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.6994, allocations: 56.55 kB / 468.8 MB, free: 84.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001362/0.7008, allocations: 1.248 MB / 470 MB, free: 84.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7008, allocations: 4.031 kB / 470.1 MB, free: 84.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004503/0.7053, allocations: 1.54 MB / 471.6 MB, free: 84.13 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.0004001/0.7057, allocations: 212.4 kB / 471.8 MB, free: 84.06 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003532/0.7092, allocations: 3.035 MB / 474.8 MB, free: 83.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001617/0.7094, allocations: 101.4 kB / 474.9 MB, free: 83.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.7106, allocations: 1.233 MB / 476.2 MB, free: 83.51 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/0.7128, allocations: 1.215 MB / 477.4 MB, free: 83.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05734/0.7702, allocations: 14.14 MB / 491.5 MB, free: 77.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002617/0.7728, allocations: 1.851 MB / 493.4 MB, free: 75.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002076/0.7749, allocations: 0.6868 MB / 494.1 MB, free: 75.26 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/0.7762, allocations: 0.8606 MB / 494.9 MB, free: 74.53 MB / 394.7 MB Notification: Performance of SimCode: time 2.054e-06/0.7763, allocations: 0 / 494.9 MB, free: 74.53 MB / 394.7 MB Notification: Performance of Templates: time 0.06991/0.8462, allocations: 57.53 MB / 0.5395 GB, free: 21.64 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.566068421117961]