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.001852/0.001852, allocations: 84.69 kB / 21.43 MB, free: 296 kB / 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.001635/0.001635, allocations: 166.5 kB / 24.7 MB, free: 3.547 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.32/1.32, allocations: 158.6 MB / 186.5 MB, free: 6.402 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: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 299 MB, free: 8.676 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.681e-05, allocations: 2.281 kB / 299 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1759/0.176, allocations: 25.11 MB / 324.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01415/0.1901, allocations: 8.255 MB / 332.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005528/0.1956, allocations: 218.3 kB / 332.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0181/0.2137, allocations: 8.097 MB / 340.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01139/0.2251, allocations: 3.124 MB / 343.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005738/0.2309, allocations: 1.905 MB / 345.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01162/0.2425, allocations: 10.91 MB / 356.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02136/0.2638, allocations: 14.07 MB / 370.7 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01844/0.2823, allocations: 8.447 MB / 379.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01103/0.2933, allocations: 5.578 MB / 384.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003906/0.2972, allocations: 1.582 MB / 386.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006828/0.3041, allocations: 1.934 MB / 388.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005223/0.3093, allocations: 3.253 MB / 391.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01133/0.3206, allocations: 4.097 MB / 395.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04514/0.3657, allocations: 21.49 MB / 417.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3657, allocations: 0 / 417.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3657, allocations: 0 / 417.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00068/0.3664, allocations: 0 / 417.1 MB, free: 8.934 MB / 366.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.05625/0.4227, allocations: 12.49 MB / 429.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.4227, allocations: 8.031 kB / 429.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05783/0.4806, allocations: 8.659 MB / 438.2 MB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02297/0.5035, allocations: 5.97 MB / 444.2 MB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00138/0.5049, allocations: 0.7464 MB / 444.9 MB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006233/0.5112, allocations: 0.9765 MB / 445.9 MB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05543/0.5666, allocations: 16.72 MB / 462.6 MB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005982/0.5672, allocations: 11.91 kB / 462.6 MB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003773/0.571, allocations: 412 kB / 463 MB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000798/0.5718, allocations: 0.6106 MB / 463.7 MB, free: 10.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0399/0.6117, allocations: 15.89 MB / 479.5 MB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.41/1.022, allocations: 44.38 MB / 0.5116 GB, free: 106 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01849/1.04, allocations: 12.11 MB / 0.5235 GB, free: 101.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004264/1.044, allocations: 3.15 MB / 0.5265 GB, free: 99.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/1.058, allocations: 8.359 MB / 0.5347 GB, free: 93.64 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/1.058, allocations: 60.69 kB / 0.5348 GB, free: 93.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=270): time 5.781e-06/1.058, allocations: 0 / 0.5348 GB, free: 93.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=278): time 0.02392/1.082, allocations: 12.81 MB / 0.5473 GB, free: 81.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/1.082, allocations: 81.59 kB / 0.5474 GB, free: 81 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005023/1.087, allocations: 4.066 MB / 0.5513 GB, free: 77.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005115/1.088, allocations: 77.7 kB / 0.5514 GB, free: 77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001767/1.089, allocations: 4.783 MB / 0.5561 GB, free: 72.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007853/1.09, allocations: 1.025 MB / 0.5571 GB, free: 71.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/1.091, allocations: 1.227 MB / 0.5583 GB, free: 70.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.807e-05/1.091, allocations: 305.1 kB / 0.5586 GB, free: 69.99 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002844/1.094, allocations: 2.44 MB / 0.5609 GB, free: 67.54 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003774/1.098, allocations: 5.632 MB / 0.5664 GB, free: 60.37 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007518/1.106, allocations: 8.682 MB / 0.5749 GB, free: 50.11 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.972e-05/1.106, allocations: 28 kB / 0.5749 GB, free: 50.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01243/1.118, allocations: 8.723 MB / 0.5835 GB, free: 41.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.415e-05/1.118, allocations: 52 kB / 0.5835 GB, free: 41.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001299/1.118, allocations: 108 kB / 0.5836 GB, free: 41.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002144/1.12, allocations: 0.8534 MB / 0.5844 GB, free: 40.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/1.125, allocations: 1.396 MB / 0.5858 GB, free: 38.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008697/1.134, allocations: 7.244 MB / 0.5929 GB, free: 31.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004782/1.139, allocations: 355.5 kB / 0.5932 GB, free: 31.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000713/1.139, allocations: 351.9 kB / 0.5936 GB, free: 30.87 MB / 430.1 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.005776/1.145, allocations: 3.677 MB / 0.5972 GB, free: 27.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/1.146, allocations: 413.3 kB / 0.5975 GB, free: 26.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00776/1.154, allocations: 5.03 MB / 0.6025 GB, free: 21.69 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/1.154, allocations: 28 kB / 0.6025 GB, free: 21.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.154, allocations: 8 kB / 0.6025 GB, free: 21.65 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.576e-05/1.154, allocations: 15.94 kB / 0.6025 GB, free: 21.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01784/1.172, allocations: 10.34 MB / 0.6126 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/1.172, allocations: 4 kB / 0.6126 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002168/1.174, allocations: 0.5266 MB / 0.6131 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0019/1.176, allocations: 0.6873 MB / 0.6138 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000247/1.176, allocations: 67.97 kB / 0.6139 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007697/1.184, allocations: 6.385 MB / 0.6201 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/1.184, allocations: 7.938 kB / 0.6201 GB, free: 3.457 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/1.196, allocations: 7.299 MB / 0.6272 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002206/1.198, allocations: 0.7393 MB / 0.628 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009153/1.199, allocations: 55.98 kB / 0.628 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/1.202, allocations: 163.8 kB / 0.6282 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005839/1.202, allocations: 217.7 kB / 0.6284 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/1.202, allocations: 88.05 kB / 0.6285 GB, free: 10.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005336/1.208, allocations: 2.544 MB / 0.6309 GB, free: 8.234 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/1.208, allocations: 0 / 0.6309 GB, free: 8.234 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008095/1.216, allocations: 1.547 MB / 0.6324 GB, free: 6.688 MB / 446.1 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.0007914/1.217, allocations: 230.3 kB / 0.6327 GB, free: 6.461 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01236/1.229, allocations: 5.868 MB / 0.6384 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.229, allocations: 0 / 0.6384 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004925/1.234, allocations: 2.287 MB / 0.6406 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005654/1.24, allocations: 0.8799 MB / 0.6415 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.197/1.437, allocations: 16.38 MB / 0.6575 GB, free: 144.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009973/1.447, allocations: 5.765 MB / 0.6631 GB, free: 144.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005465/1.452, allocations: 1.933 MB / 0.665 GB, free: 144.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/1.453, allocations: 319.3 kB / 0.6653 GB, free: 144.3 MB / 462.1 MB Notification: Performance of SimCode: time 2.194e-06/1.453, allocations: 0 / 0.6653 GB, free: 144.3 MB / 462.1 MB Notification: Performance of Templates: time 0.09141/1.545, allocations: 50.34 MB / 0.7145 GB, free: 109.8 MB / 462.1 MB " [Timeout remaining time 658] 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 -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/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","/var/lib/jenkins/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.519307613372803]