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.0007603/0.0007603, allocations: 77.05 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001152/0.001912, allocations: 449.8 kB / 10.44 MB, free: 248 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.0007221/0.0007221, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009722/0.001694, allocations: 479.5 kB / 11.82 MB, free: 2.34 MB / 13.93 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 0.9183/0.9183, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08899/1.007, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] 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.222e-06/1.222e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.939e-06/1.116e-05, allocations: 2.312 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01936/0.01937, allocations: 27.09 MB / 271.8 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.14/0.1594, allocations: 8.842 MB / 280.7 MB, free: 1.379 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004353/0.1637, allocations: 253.4 kB / 280.9 MB, free: 1.379 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01072/0.1745, allocations: 8.654 MB / 289.6 MB, free: 492 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006225/0.1807, allocations: 2.887 MB / 292.5 MB, free: 15.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003033/0.1837, allocations: 1.888 MB / 294.3 MB, free: 14.36 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00872/0.1924, allocations: 10.5 MB / 304.8 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01615/0.2086, allocations: 13.96 MB / 318.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009958/0.2185, allocations: 8.567 MB / 327.4 MB, free: 4.406 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007241/0.2258, allocations: 5.977 MB / 333.3 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002207/0.228, allocations: 1.535 MB / 334.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003073/0.2311, allocations: 1.926 MB / 336.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001631/0.2327, allocations: 2.448 MB / 339.3 MB, free: 8.895 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00334/0.236, allocations: 3.307 MB / 342.6 MB, free: 5.582 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007834/0.2439, allocations: 9.349 MB / 351.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.2439, allocations: 0 / 351.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2439, allocations: 4 kB / 351.9 MB, free: 12.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003213/0.2442, allocations: 4 kB / 351.9 MB, free: 12.54 MB / 330.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.01657/0.2608, allocations: 13.42 MB / 365.3 MB, free: 15.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.2608, allocations: 12.75 kB / 365.4 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01359/0.2744, allocations: 5.619 MB / 371 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004632/0.279, allocations: 3.325 MB / 374.3 MB, free: 6.809 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000319/0.2793, allocations: 0.701 MB / 375 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009281/0.2803, allocations: 0.9333 MB / 375.9 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008626/0.2889, allocations: 7.667 MB / 383.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001694/0.2891, allocations: 18.2 kB / 383.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000829/0.2899, allocations: 390.7 kB / 384 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004229/0.2903, allocations: 0.4921 MB / 384.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007285/0.2976, allocations: 3.858 MB / 388.3 MB, free: 9.047 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04231/0.3399, allocations: 29.56 MB / 417.9 MB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01554/0.3554, allocations: 4.55 MB / 422.5 MB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.3569, allocations: 1.043 MB / 423.5 MB, free: 5.984 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002499/0.3571, allocations: 126.9 kB / 423.6 MB, free: 5.859 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.776e-05/0.3572, allocations: 77.52 kB / 423.7 MB, free: 5.773 MB / 394.7 MB Notification: Performance of pre-optimization done (n=384): time 6.462e-06/0.3572, allocations: 0 / 423.7 MB, free: 5.773 MB / 394.7 MB Notification: Performance of matching and sorting (n=392): time 0.14/0.4972, allocations: 7.537 MB / 431.2 MB, free: 99 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.4973, allocations: 92.86 kB / 431.3 MB, free: 98.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002622/0.4999, allocations: 2.456 MB / 433.8 MB, free: 98.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.5001, allocations: 87.42 kB / 433.9 MB, free: 98.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.5014, allocations: 3.845 MB / 437.7 MB, free: 96.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006667/0.502, allocations: 1.392 MB / 439.1 MB, free: 95.33 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/0.5031, allocations: 1.085 MB / 440.2 MB, free: 95.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.514e-05/0.5031, allocations: 302.6 kB / 440.5 MB, free: 94.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008518/0.504, allocations: 0.5661 MB / 441.1 MB, free: 94.92 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.5056, allocations: 3.095 MB / 444.1 MB, free: 91.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003338/0.5089, allocations: 4.706 MB / 448.9 MB, free: 88.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.043e-05/0.5089, allocations: 24.19 kB / 448.9 MB, free: 88.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.004131/0.5131, allocations: 3.875 MB / 452.8 MB, free: 88.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/0.5131, allocations: 43.33 kB / 452.8 MB, free: 88.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-05/0.5132, allocations: 82.59 kB / 452.9 MB, free: 88.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.5144, allocations: 0.7332 MB / 453.6 MB, free: 88.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/0.5167, allocations: 1.452 MB / 455.1 MB, free: 88.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/0.52, allocations: 3.732 MB / 458.8 MB, free: 87.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.5217, allocations: 238.9 kB / 459 MB, free: 87.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002504/0.522, allocations: 253.4 kB / 459.3 MB, free: 87.07 MB / 394.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.001341/0.5233, allocations: 0.5362 MB / 459.8 MB, free: 86.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004632/0.5238, allocations: 363.3 kB / 460.2 MB, free: 86.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00289/0.5267, allocations: 2.493 MB / 462.7 MB, free: 86.63 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5267, allocations: 39.41 kB / 462.7 MB, free: 86.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.5267, allocations: 13.84 kB / 462.7 MB, free: 86.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/0.5267, allocations: 23.91 kB / 462.7 MB, free: 86.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007986/0.5347, allocations: 6.728 MB / 469.5 MB, free: 85.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.5347, allocations: 5.438 kB / 469.5 MB, free: 85.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/0.5361, allocations: 0.7132 MB / 470.2 MB, free: 85.83 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006839/0.5368, allocations: 498.7 kB / 470.7 MB, free: 85.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.5378, allocations: 0.5989 MB / 471.3 MB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.538, allocations: 80.42 kB / 471.3 MB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002703/0.5407, allocations: 3.333 MB / 474.7 MB, free: 84.19 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.5407, allocations: 10.12 kB / 474.7 MB, free: 84.19 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003121/0.5438, allocations: 3.109 MB / 477.8 MB, free: 83.22 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002721/0.5441, allocations: 76.03 kB / 477.9 MB, free: 83.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007043/0.5448, allocations: 95.89 kB / 478 MB, free: 83.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.545, allocations: 274.8 kB / 478.2 MB, free: 82.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.5451, allocations: 83.69 kB / 478.3 MB, free: 82.85 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007455/0.5459, allocations: 1.097 MB / 479.4 MB, free: 82.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.5459, allocations: 0 / 479.4 MB, free: 82.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002907/0.5488, allocations: 1.547 MB / 481 MB, free: 80.55 MB / 394.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.0003424/0.5491, allocations: 250.4 kB / 481.2 MB, free: 80.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003019/0.5522, allocations: 3.157 MB / 484.4 MB, free: 77.65 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001257/0.5523, allocations: 94.23 kB / 484.5 MB, free: 77.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.5537, allocations: 1.733 MB / 486.2 MB, free: 75.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002816/0.5565, allocations: 7.532 MB / 493.7 MB, free: 67.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0488/0.6053, allocations: 13.4 MB / 0.4952 GB, free: 53.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001473/0.6068, allocations: 1.788 MB / 0.497 GB, free: 51.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001848/0.6086, allocations: 0.6664 MB / 0.4976 GB, free: 51.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001397/0.61, allocations: 0.9052 MB / 0.4985 GB, free: 50.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.332e-06/0.61, allocations: 0 / 0.4985 GB, free: 50.23 MB / 394.7 MB Notification: Performance of Templates: time 0.07641/0.6864, allocations: 63.49 MB / 0.5605 GB, free: 3.336 MB / 410.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] 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","",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: 3.889478912577033]