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.001402/0.001402, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001266/0.001266, allocations: 166.4 kB / 25 MB, free: 8.336 MB / 18.57 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.8803/0.8803, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.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.793e-06/1.793e-06, allocations: 0 / 273.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.692e-05/2.871e-05, allocations: 2.312 kB / 273.1 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1261/0.1261, allocations: 27.92 MB / 301 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.139, allocations: 8.379 MB / 309.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003025/0.142, allocations: 256.4 kB / 309.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007818/0.1498, allocations: 8.717 MB / 318.4 MB, free: 4.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00466/0.1545, allocations: 2.919 MB / 321.3 MB, free: 1.938 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00235/0.1568, allocations: 1.893 MB / 323.2 MB, free: 488 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007713/0.1645, allocations: 10.43 MB / 333.6 MB, free: 6.562 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01829/0.1828, allocations: 13.93 MB / 347.5 MB, free: 8.492 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01093/0.1938, allocations: 8.191 MB / 355.7 MB, free: 292 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008194/0.202, allocations: 5.817 MB / 361.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003022/0.205, allocations: 1.539 MB / 363.1 MB, free: 8.918 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003502/0.2085, allocations: 1.913 MB / 365 MB, free: 7.004 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002455/0.2109, allocations: 3.094 MB / 368.1 MB, free: 3.902 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005976/0.2169, allocations: 3.973 MB / 372.1 MB, free: 15.92 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01319/0.2301, allocations: 9.929 MB / 382 MB, free: 5.965 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.2301, allocations: 4 kB / 382 MB, free: 5.961 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2301, allocations: 0 / 382 MB, free: 5.961 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003329/0.2304, allocations: 0 / 382 MB, free: 5.961 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.0315/0.2619, allocations: 12.79 MB / 394.8 MB, free: 9.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.262, allocations: 12.02 kB / 394.8 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03288/0.2949, allocations: 7.046 MB / 401.8 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007791/0.3027, allocations: 6.047 MB / 407.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004103/0.3031, allocations: 0.6989 MB / 408.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001323/0.3044, allocations: 0.9334 MB / 409.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.3175, allocations: 8.171 MB / 417.7 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001585/0.3177, allocations: 23.84 kB / 417.7 MB, free: 1.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000667/0.3184, allocations: 388 kB / 418.1 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003339/0.3187, allocations: 0.5194 MB / 418.6 MB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008879/0.3276, allocations: 4.407 MB / 423 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2131/0.5407, allocations: 38.7 MB / 461.7 MB, free: 99.03 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006266/0.5469, allocations: 6.887 MB / 468.6 MB, free: 97.72 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001593/0.5485, allocations: 1.381 MB / 470 MB, free: 97.43 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001909/0.5487, allocations: 121.2 kB / 470.1 MB, free: 97.42 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.5488, allocations: 73.09 kB / 470.2 MB, free: 97.35 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.631e-06/0.5488, allocations: 0 / 470.2 MB, free: 97.35 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01307/0.5618, allocations: 8.83 MB / 479 MB, free: 92.26 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.5619, allocations: 90.48 kB / 479.1 MB, free: 92.16 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00282/0.5647, allocations: 3.407 MB / 482.5 MB, free: 88.84 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000155/0.5648, allocations: 93.7 kB / 482.6 MB, free: 88.75 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.5662, allocations: 4.418 MB / 487 MB, free: 84.82 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005373/0.5667, allocations: 1.432 MB / 488.5 MB, free: 83.41 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/0.5677, allocations: 1.312 MB / 489.8 MB, free: 82.08 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.045e-05/0.5677, allocations: 476.8 kB / 490.2 MB, free: 81.61 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.569, allocations: 0.8432 MB / 491.1 MB, free: 80.77 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002308/0.5713, allocations: 4.591 MB / 495.7 MB, free: 74.56 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003861/0.5752, allocations: 6.044 MB / 0.4899 GB, free: 66.9 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.691e-05/0.5752, allocations: 24 kB / 0.49 GB, free: 66.88 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.005987/0.5812, allocations: 5.295 MB / 0.4951 GB, free: 61.55 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/0.5812, allocations: 48.17 kB / 0.4952 GB, free: 61.5 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/0.5813, allocations: 84 kB / 0.4953 GB, free: 61.42 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/0.5827, allocations: 0.7948 MB / 0.496 GB, free: 60.62 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002178/0.5849, allocations: 1.369 MB / 0.4974 GB, free: 59.25 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004545/0.5895, allocations: 5.062 MB / 0.5023 GB, free: 54.07 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.5913, allocations: 335.4 kB / 0.5026 GB, free: 53.74 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002386/0.5915, allocations: 312 kB / 0.5029 GB, free: 53.43 MB / 378.8 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.001468/0.593, allocations: 0.5646 MB / 0.5035 GB, free: 52.86 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005097/0.5935, allocations: 0.5208 MB / 0.504 GB, free: 52.33 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/0.5975, allocations: 3.415 MB / 0.5073 GB, free: 48.88 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.5976, allocations: 40 kB / 0.5074 GB, free: 48.84 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.5976, allocations: 8 kB / 0.5074 GB, free: 48.83 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/0.5976, allocations: 27.86 kB / 0.5074 GB, free: 48.8 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.6087, allocations: 10.75 MB / 0.5179 GB, free: 37.98 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.6087, allocations: 11.94 kB / 0.5179 GB, free: 37.97 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/0.6101, allocations: 0.7027 MB / 0.5186 GB, free: 37.27 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.6113, allocations: 0.6648 MB / 0.5193 GB, free: 36.6 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001304/0.6115, allocations: 91.97 kB / 0.5193 GB, free: 36.51 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003666/0.6151, allocations: 4.523 MB / 0.5238 GB, free: 31.87 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.6151, allocations: 8 kB / 0.5238 GB, free: 31.86 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004916/0.62, allocations: 4.355 MB / 0.528 GB, free: 27.35 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009204/0.621, allocations: 0.7626 MB / 0.5288 GB, free: 26.59 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/0.6213, allocations: 83.94 kB / 0.5288 GB, free: 26.5 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008554/0.6221, allocations: 175.8 kB / 0.529 GB, free: 26.33 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002856/0.6224, allocations: 282.5 kB / 0.5293 GB, free: 26.05 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.6225, allocations: 120 kB / 0.5294 GB, free: 25.94 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001439/0.624, allocations: 1.549 MB / 0.5309 GB, free: 24.4 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.624, allocations: 0 / 0.5309 GB, free: 24.4 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.00319/0.6272, allocations: 1.547 MB / 0.5324 GB, free: 22.85 MB / 378.8 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.0003487/0.6275, allocations: 269.8 kB / 0.5327 GB, free: 22.59 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004073/0.6316, allocations: 3.876 MB / 0.5365 GB, free: 18.69 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.6316, allocations: 4.062 kB / 0.5365 GB, free: 18.69 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001764/0.6333, allocations: 1.875 MB / 0.5383 GB, free: 16.79 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.6354, allocations: 0.9235 MB / 0.5392 GB, free: 15.91 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/0.6474, allocations: 13.43 MB / 0.5523 GB, free: 2.293 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.6489, allocations: 2.478 MB / 0.5547 GB, free: 15.78 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.002436/0.6513, allocations: 1.602 MB / 0.5563 GB, free: 14.17 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006545/0.652, allocations: 360.3 kB / 0.5566 GB, free: 13.82 MB / 394.8 MB Notification: Performance of SimCode: time 9.51e-07/0.652, allocations: 0 / 0.5566 GB, free: 13.82 MB / 394.8 MB Notification: Performance of Templates: time 0.1583/0.8103, allocations: 55.21 MB / 0.6106 GB, free: 100.6 MB / 394.8 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.467558669159189]