Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 78.19 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 149.9 kB / 24.81 MB, free: 8.926 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9032/0.9032, allocations: 173.4 MB / 201.5 MB, free: 8.285 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 268.5 MB, free: 9.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.461e-05, allocations: 6 kB / 268.5 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02883/0.02886, allocations: 26.78 MB / 295.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.04236, allocations: 8.268 MB / 303.5 MB, free: 6.547 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002864/0.04522, allocations: 250.8 kB / 303.7 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008264/0.05349, allocations: 8.45 MB / 312.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00465/0.05814, allocations: 2.905 MB / 315.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002448/0.06058, allocations: 1.85 MB / 317 MB, free: 9.043 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007671/0.06826, allocations: 10.37 MB / 327.3 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01769/0.08595, allocations: 13.92 MB / 341.2 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1392/0.2251, allocations: 8.237 MB / 349.5 MB, free: 25.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006144/0.2313, allocations: 5.899 MB / 355.4 MB, free: 25.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002001/0.2333, allocations: 1.533 MB / 356.9 MB, free: 25.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.2353, allocations: 1.897 MB / 358.8 MB, free: 25.5 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.2366, allocations: 3.091 MB / 361.9 MB, free: 25.5 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002396/0.239, allocations: 3.952 MB / 365.9 MB, free: 25.3 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005442/0.2444, allocations: 9.874 MB / 375.7 MB, free: 21.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2444, allocations: 2.766 kB / 375.7 MB, free: 21.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2444, allocations: 0 / 375.7 MB, free: 21.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.905e-05/0.2445, allocations: 0 / 375.7 MB, free: 21.27 MB / 314.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.01242/0.257, allocations: 12.24 MB / 388 MB, free: 11.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.257, allocations: 8.031 kB / 388 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01319/0.2702, allocations: 5.469 MB / 393.5 MB, free: 6.566 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00539/0.2756, allocations: 5.637 MB / 399.1 MB, free: 1.145 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000233/0.2758, allocations: 0.7005 MB / 399.8 MB, free: 464 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008982/0.2767, allocations: 0.9234 MB / 400.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009451/0.2861, allocations: 7.461 MB / 408.2 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001487/0.2863, allocations: 17.86 kB / 408.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006168/0.2869, allocations: 392.6 kB / 408.6 MB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003394/0.2873, allocations: 0.5155 MB / 409.1 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005371/0.2926, allocations: 3.423 MB / 412.5 MB, free: 4.012 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03546/0.3281, allocations: 38.08 MB / 450.6 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0055/0.3336, allocations: 6.003 MB / 456.6 MB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.3348, allocations: 1.191 MB / 457.8 MB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000195/0.335, allocations: 122.8 kB / 457.9 MB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.335, allocations: 83.41 kB / 458 MB, free: 8.871 MB / 378.7 MB Notification: Performance of pre-optimization done (n=384): time 4.869e-06/0.335, allocations: 0 / 458 MB, free: 8.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=392): time 0.01151/0.3466, allocations: 7.141 MB / 465.1 MB, free: 1.754 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.3466, allocations: 94.48 kB / 465.2 MB, free: 1.648 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00274/0.3493, allocations: 3.342 MB / 468.6 MB, free: 14.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.3495, allocations: 93.69 kB / 468.7 MB, free: 14.69 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001921/0.3514, allocations: 4.432 MB / 473.1 MB, free: 10.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007737/0.3522, allocations: 1.458 MB / 474.5 MB, free: 9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001211/0.3534, allocations: 1.316 MB / 475.9 MB, free: 7.785 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.284e-05/0.3535, allocations: 484.7 kB / 476.3 MB, free: 7.309 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008425/0.3543, allocations: 0.6401 MB / 477 MB, free: 6.664 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002451/0.3568, allocations: 4.421 MB / 481.4 MB, free: 0.8164 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004095/0.3609, allocations: 5.705 MB / 487.1 MB, free: 9.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.623e-05/0.3609, allocations: 24 kB / 487.1 MB, free: 9.957 MB / 410.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.005503/0.3664, allocations: 4.8 MB / 491.9 MB, free: 5.691 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/0.3664, allocations: 40 kB / 492 MB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.316e-05/0.3665, allocations: 84 kB / 492 MB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.3679, allocations: 0.7661 MB / 492.8 MB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002159/0.3701, allocations: 1.281 MB / 494.1 MB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1597/0.5297, allocations: 4.819 MB / 498.9 MB, free: 95.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003115/0.5329, allocations: 249.7 kB / 499.2 MB, free: 95.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003562/0.5332, allocations: 260.8 kB / 499.4 MB, free: 95.09 MB / 410.7 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.001991/0.5352, allocations: 0.5647 MB / 500 MB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006551/0.5359, allocations: 0.5227 MB / 0.4888 GB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003568/0.5394, allocations: 3.042 MB / 0.4917 GB, free: 94.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.5394, allocations: 42.56 kB / 0.4918 GB, free: 94.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.5395, allocations: 11.73 kB / 0.4918 GB, free: 94.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.5395, allocations: 25.89 kB / 0.4918 GB, free: 94.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009894/0.5494, allocations: 8.322 MB / 0.4999 GB, free: 93.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.5494, allocations: 3.812 kB / 0.4999 GB, free: 93.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.5506, allocations: 0.6122 MB / 0.5005 GB, free: 93.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.5517, allocations: 0.6333 MB / 0.5012 GB, free: 93.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/0.5519, allocations: 87.12 kB / 0.5012 GB, free: 93.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.5551, allocations: 4.328 MB / 0.5055 GB, free: 91.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5551, allocations: 10.53 kB / 0.5055 GB, free: 91.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003902/0.559, allocations: 3.818 MB / 0.5092 GB, free: 91.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009/0.5599, allocations: 0.6974 MB / 0.5099 GB, free: 90.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.5602, allocations: 77 kB / 0.51 GB, free: 90.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007587/0.5609, allocations: 96.02 kB / 0.5101 GB, free: 90.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002674/0.5612, allocations: 283.1 kB / 0.5103 GB, free: 90.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.5613, allocations: 87.7 kB / 0.5104 GB, free: 90.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001245/0.5626, allocations: 1.424 MB / 0.5118 GB, free: 90.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5626, allocations: 0 / 0.5118 GB, free: 90.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004074/0.5666, allocations: 1.541 MB / 0.5133 GB, free: 90.62 MB / 410.7 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.0004714/0.5671, allocations: 254.9 kB / 0.5136 GB, free: 90.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003942/0.571, allocations: 3.524 MB / 0.517 GB, free: 90.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.571, allocations: 0 / 0.517 GB, free: 90.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.5726, allocations: 1.712 MB / 0.5187 GB, free: 89.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.5746, allocations: 0.9142 MB / 0.5196 GB, free: 89.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/0.5882, allocations: 13.3 MB / 0.5325 GB, free: 84.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001658/0.5898, allocations: 2.474 MB / 0.535 GB, free: 83.44 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001497/0.5913, allocations: 0.6663 MB / 0.5356 GB, free: 82.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/0.5927, allocations: 0.995 MB / 0.5366 GB, free: 82.09 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/0.5927, allocations: 2.188 kB / 0.5366 GB, free: 82.09 MB / 410.7 MB Notification: Performance of Templates: time 0.07007/0.6628, allocations: 59.23 MB / 0.5944 GB, free: 27.98 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.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.304740929044783]