Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008128/0.0008128, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001142/0.001955, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009239/0.0009239, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001017/0.001941, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9279/0.9279, allocations: 177.4 MB / 189.9 MB, free: 4.824 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08438/1.012, allocations: 53.87 MB / 243.7 MB, free: 14.89 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_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 / 245 MB, free: 13.61 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.008e-05, allocations: 2.312 kB / 245 MB, free: 13.61 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0223/0.02232, allocations: 27.08 MB / 272.1 MB, free: 2.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1309/0.1532, allocations: 8.8 MB / 280.9 MB, free: 1.344 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006276/0.1595, allocations: 252.2 kB / 281.2 MB, free: 1.344 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01142/0.1709, allocations: 8.653 MB / 289.8 MB, free: 108 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008283/0.1792, allocations: 2.886 MB / 292.7 MB, free: 14.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003874/0.183, allocations: 1.886 MB / 294.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00988/0.1929, allocations: 10.5 MB / 305.1 MB, free: 8.199 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01776/0.2107, allocations: 13.98 MB / 319.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01204/0.2227, allocations: 8.551 MB / 327.6 MB, free: 3.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008377/0.2311, allocations: 5.972 MB / 333.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003435/0.2345, allocations: 1.535 MB / 335.1 MB, free: 12.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005236/0.2398, allocations: 1.926 MB / 337 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003542/0.2433, allocations: 2.452 MB / 339.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008881/0.2522, allocations: 3.311 MB / 342.8 MB, free: 4.902 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01569/0.2679, allocations: 9.373 MB / 352.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.66e-05/0.2679, allocations: 4 kB / 352.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2679, allocations: 0 / 352.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005085/0.2684, allocations: 0 / 352.2 MB, free: 11.84 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.02328/0.2917, allocations: 13.43 MB / 365.6 MB, free: 14.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2917, allocations: 12.62 kB / 365.6 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01498/0.3067, allocations: 5.619 MB / 371.2 MB, free: 9.457 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007917/0.3146, allocations: 3.334 MB / 374.6 MB, free: 6.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004659/0.3151, allocations: 0.6949 MB / 375.3 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00208/0.3172, allocations: 0.9439 MB / 376.2 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01308/0.3303, allocations: 7.659 MB / 383.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001871/0.3304, allocations: 12.91 kB / 383.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007292/0.3312, allocations: 393.4 kB / 384.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003345/0.3315, allocations: 0.5155 MB / 384.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007659/0.3392, allocations: 3.849 MB / 388.6 MB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03778/0.3769, allocations: 29.57 MB / 418.2 MB, free: 10.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00546/0.3824, allocations: 4.55 MB / 422.8 MB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.3836, allocations: 1.05 MB / 423.8 MB, free: 4.988 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002438/0.3839, allocations: 118.9 kB / 423.9 MB, free: 4.871 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.3839, allocations: 81.52 kB / 424 MB, free: 4.781 MB / 394.7 MB Notification: Performance of pre-optimization done (n=384): time 5.48e-06/0.3839, allocations: 0 / 424 MB, free: 4.781 MB / 394.7 MB Notification: Performance of matching and sorting (n=392): time 0.1386/0.5225, allocations: 6.398 MB / 430.4 MB, free: 98.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.204e-05/0.5226, allocations: 92.8 kB / 430.5 MB, free: 98.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003137/0.5257, allocations: 2.451 MB / 432.9 MB, free: 97.78 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005767/0.5263, allocations: 90.11 kB / 433 MB, free: 97.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001669/0.528, allocations: 3.843 MB / 436.9 MB, free: 95.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001115/0.5291, allocations: 1.396 MB / 438.3 MB, free: 94.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.5304, allocations: 1.079 MB / 439.4 MB, free: 94.46 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.804e-05/0.5304, allocations: 303.6 kB / 439.6 MB, free: 94.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009679/0.5313, allocations: 0.5625 MB / 440.2 MB, free: 94.14 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.5329, allocations: 3.102 MB / 443.3 MB, free: 91.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.5357, allocations: 4.434 MB / 447.7 MB, free: 87.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.245e-05/0.5358, allocations: 23.81 kB / 447.8 MB, free: 87.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.004641/0.5404, allocations: 3.88 MB / 451.7 MB, free: 87.78 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.5405, allocations: 41.78 kB / 451.7 MB, free: 87.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.541e-05/0.5405, allocations: 82.25 kB / 451.8 MB, free: 87.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/0.5419, allocations: 0.7375 MB / 452.5 MB, free: 87.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002435/0.5443, allocations: 1.442 MB / 454 MB, free: 87.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003388/0.5477, allocations: 3.763 MB / 457.7 MB, free: 86.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/0.5499, allocations: 241.8 kB / 458 MB, free: 86.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003443/0.5502, allocations: 253.4 kB / 458.2 MB, free: 86.29 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.001836/0.552, allocations: 0.5226 MB / 458.7 MB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006204/0.5527, allocations: 366.9 kB / 459.1 MB, free: 86.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.5558, allocations: 2.5 MB / 461.6 MB, free: 85.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.5558, allocations: 37.47 kB / 461.6 MB, free: 85.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.5558, allocations: 14.72 kB / 461.6 MB, free: 85.85 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.999e-05/0.5558, allocations: 25.41 kB / 461.7 MB, free: 85.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008864/0.5647, allocations: 6.721 MB / 468.4 MB, free: 85.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.5647, allocations: 4.531 kB / 468.4 MB, free: 85.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.5661, allocations: 0.7138 MB / 469.1 MB, free: 85.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.5671, allocations: 492 kB / 469.6 MB, free: 84.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.5682, allocations: 0.6088 MB / 470.2 MB, free: 84.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.5683, allocations: 79.81 kB / 470.3 MB, free: 84.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00274/0.5711, allocations: 3.332 MB / 473.6 MB, free: 83.42 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.5711, allocations: 8.516 kB / 473.6 MB, free: 83.42 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.5743, allocations: 3.108 MB / 476.7 MB, free: 82.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005015/0.5748, allocations: 74.3 kB / 476.8 MB, free: 82.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008067/0.5756, allocations: 95.8 kB / 476.9 MB, free: 82.63 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/0.5758, allocations: 277.5 kB / 477.1 MB, free: 82.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.576, allocations: 83.59 kB / 477.2 MB, free: 82.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009131/0.5769, allocations: 1.101 MB / 478.3 MB, free: 81.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5769, allocations: 0 / 478.3 MB, free: 81.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003174/0.58, allocations: 1.539 MB / 479.9 MB, free: 80.13 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.0003696/0.5804, allocations: 249.6 kB / 480.1 MB, free: 79.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.5836, allocations: 3.053 MB / 483.2 MB, free: 77.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001325/0.5837, allocations: 102.4 kB / 483.3 MB, free: 77.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.585, allocations: 1.484 MB / 484.7 MB, free: 75.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/0.5872, allocations: 1.244 MB / 486 MB, free: 74.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05148/0.6387, allocations: 13.41 MB / 499.4 MB, free: 61.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/0.6401, allocations: 1.784 MB / 0.4894 GB, free: 59.31 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001793/0.6419, allocations: 0.6703 MB / 0.4901 GB, free: 58.63 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001318/0.6432, allocations: 0.913 MB / 0.491 GB, free: 57.71 MB / 394.7 MB Notification: Performance of SimCode: time 1.904e-06/0.6433, allocations: 0 / 0.491 GB, free: 57.71 MB / 394.7 MB Notification: Performance of Templates: time 0.06919/0.7124, allocations: 62.63 MB / 0.5521 GB, free: 11.84 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.309163832105696]