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.001833/0.001833, allocations: 84.3 kB / 20.68 MB, free: 1.035 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.002113/0.002113, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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 1.555/1.555, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.784e-06/1.784e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.081e-05/2.259e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03047/0.0305, allocations: 24.67 MB / 349.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02015/0.05065, allocations: 8.17 MB / 358 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006735/0.05738, allocations: 250.8 kB / 358.2 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02115/0.07853, allocations: 8.068 MB / 366.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01032/0.08885, allocations: 2.892 MB / 369.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006063/0.09491, allocations: 1.861 MB / 371 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.1097, allocations: 10.43 MB / 381.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02588/0.1356, allocations: 13.91 MB / 395.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01631/0.1519, allocations: 8.128 MB / 403.5 MB, free: 6.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0108/0.1627, allocations: 5.251 MB / 408.7 MB, free: 1.164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004147/0.1669, allocations: 1.543 MB / 410.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006427/0.1733, allocations: 1.913 MB / 412.2 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004786/0.1781, allocations: 3.051 MB / 415.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009546/0.1876, allocations: 3.903 MB / 419.1 MB, free: 6.738 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02951/0.2171, allocations: 20.96 MB / 440.1 MB, free: 1.723 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2171, allocations: 0 / 440.1 MB, free: 1.723 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2171, allocations: 3.938 kB / 440.1 MB, free: 1.719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004594/0.2176, allocations: 0 / 440.1 MB, free: 1.719 MB / 398.1 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.03769/0.2553, allocations: 11.91 MB / 452 MB, free: 5.719 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.2553, allocations: 8.031 kB / 452 MB, free: 5.711 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03349/0.2888, allocations: 5.609 MB / 457.6 MB, free: 92 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01544/0.3043, allocations: 6.375 MB / 464 MB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009123/0.3052, allocations: 0.7065 MB / 464.7 MB, free: 8.938 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004221/0.3094, allocations: 0.9256 MB / 465.6 MB, free: 8.012 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3342/0.6435, allocations: 15.24 MB / 480.9 MB, free: 110.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003186/0.6439, allocations: 17.42 kB / 480.9 MB, free: 110.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001623/0.6455, allocations: 395.1 kB / 481.3 MB, free: 109.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005288/0.646, allocations: 0.5133 MB / 481.8 MB, free: 109.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.024/0.67, allocations: 13.72 MB / 495.5 MB, free: 104.1 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05807/0.7281, allocations: 41.35 MB / 0.5243 GB, free: 66.94 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.7403, allocations: 7.988 MB / 0.5321 GB, free: 60.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003527/0.7438, allocations: 2.79 MB / 0.5348 GB, free: 57.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002967/0.7441, allocations: 98.92 kB / 0.5349 GB, free: 57.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.7441, allocations: 73.58 kB / 0.535 GB, free: 57.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 6.662e-06/0.7441, allocations: 0 / 0.535 GB, free: 57.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02516/0.7693, allocations: 14.69 MB / 0.5493 GB, free: 42.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.7694, allocations: 98.42 kB / 0.5494 GB, free: 42.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004378/0.7737, allocations: 3.554 MB / 0.5529 GB, free: 39.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002516/0.774, allocations: 89.7 kB / 0.553 GB, free: 39.25 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.7755, allocations: 4.172 MB / 0.557 GB, free: 35.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007367/0.7762, allocations: 1.393 MB / 0.5584 GB, free: 33.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.7777, allocations: 1.168 MB / 0.5596 GB, free: 32.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.3e-05/0.7777, allocations: 301.1 kB / 0.5598 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003101/0.7808, allocations: 2.596 MB / 0.5624 GB, free: 29.72 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003864/0.7847, allocations: 5.104 MB / 0.5674 GB, free: 23.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00759/0.7923, allocations: 8.344 MB / 0.5755 GB, free: 13.9 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.898e-05/0.7923, allocations: 24 kB / 0.5755 GB, free: 13.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01235/0.8047, allocations: 8.626 MB / 0.584 GB, free: 5.219 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.671e-05/0.8047, allocations: 40 kB / 0.584 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001143/0.8048, allocations: 84 kB / 0.5841 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/0.8071, allocations: 0.8396 MB / 0.5849 GB, free: 4.262 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004478/0.8116, allocations: 1.365 MB / 0.5862 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/0.8227, allocations: 7.363 MB / 0.5934 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004112/0.8268, allocations: 323.5 kB / 0.5937 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009007/0.8277, allocations: 312 kB / 0.594 GB, free: 10.81 MB / 446.1 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.006532/0.8342, allocations: 3.509 MB / 0.5974 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/0.8353, allocations: 417.4 kB / 0.5978 GB, free: 6.879 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/0.8471, allocations: 5.942 MB / 0.6036 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.548e-05/0.8471, allocations: 40 kB / 0.6037 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.369e-05/0.8472, allocations: 11.94 kB / 0.6037 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.823e-05/0.8472, allocations: 19.92 kB / 0.6037 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02611/0.8733, allocations: 13.02 MB / 0.6164 GB, free: 3.766 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/0.8733, allocations: 8 kB / 0.6164 GB, free: 3.758 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002973/0.8763, allocations: 0.6904 MB / 0.6171 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002242/0.8786, allocations: 0.7059 MB / 0.6178 GB, free: 2.359 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003736/0.8789, allocations: 87.97 kB / 0.6179 GB, free: 2.273 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/0.8895, allocations: 6.383 MB / 0.6241 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/0.8895, allocations: 11.94 kB / 0.6241 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/0.9054, allocations: 8.729 MB / 0.6327 GB, free: 2.926 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002289/0.9077, allocations: 0.8329 MB / 0.6335 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008031/0.9085, allocations: 72 kB / 0.6335 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002288/0.9108, allocations: 183.9 kB / 0.6337 GB, free: 1.84 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006777/0.9115, allocations: 282.5 kB / 0.634 GB, free: 1.562 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003084/0.9118, allocations: 116 kB / 0.6341 GB, free: 1.449 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004487/0.9163, allocations: 2.285 MB / 0.6363 GB, free: 15.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9163, allocations: 0 / 0.6363 GB, free: 15.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00575/0.922, allocations: 1.543 MB / 0.6378 GB, free: 13.63 MB / 494.1 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.000668/0.9227, allocations: 271.2 kB / 0.6381 GB, free: 13.36 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01178/0.9345, allocations: 6.26 MB / 0.6442 GB, free: 7.094 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.9345, allocations: 4 kB / 0.6442 GB, free: 7.09 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005101/0.9396, allocations: 2.733 MB / 0.6469 GB, free: 4.352 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004949/0.9445, allocations: 0.9038 MB / 0.6478 GB, free: 3.477 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1798/1.124, allocations: 15.91 MB / 0.6633 GB, free: 159.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005454/1.13, allocations: 5.521 MB / 0.6687 GB, free: 158.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003949/1.134, allocations: 1.869 MB / 0.6705 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/1.135, allocations: 365.3 kB / 0.6709 GB, free: 158.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/1.135, allocations: 0 / 0.6709 GB, free: 158.3 MB / 494.1 MB Notification: Performance of Templates: time 0.08663/1.221, allocations: 55.1 MB / 0.7247 GB, free: 113.2 MB / 494.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.46151689440012]