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.0009879/0.0009879, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 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.001727/0.001727, allocations: 168.9 kB / 24.91 MB, free: 8.762 MB / 18.57 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.9838/0.9838, allocations: 177 MB / 205.2 MB, free: 5.422 MB / 186.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.011e-06/1.011e-06, allocations: 0 / 273.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.321e-05/1.422e-05, allocations: 2.312 kB / 273.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1302/0.1302, allocations: 26.87 MB / 300.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01659/0.1468, allocations: 8.791 MB / 309.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005301/0.1521, allocations: 255.9 kB / 309.4 MB, free: 9.816 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00991/0.162, allocations: 8.625 MB / 318 MB, free: 4.039 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008648/0.1706, allocations: 2.906 MB / 320.9 MB, free: 1.707 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004406/0.175, allocations: 1.873 MB / 322.8 MB, free: 248 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.1858, allocations: 10.46 MB / 333.3 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01644/0.2023, allocations: 14.3 MB / 347.6 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01173/0.214, allocations: 8.273 MB / 355.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008154/0.2221, allocations: 5.989 MB / 361.8 MB, free: 9.574 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00305/0.2252, allocations: 1.535 MB / 363.3 MB, free: 8.039 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004263/0.2294, allocations: 1.937 MB / 365.3 MB, free: 6.102 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002621/0.2321, allocations: 3.078 MB / 368.4 MB, free: 3.016 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005769/0.2378, allocations: 3.961 MB / 372.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01158/0.2494, allocations: 9.898 MB / 382.2 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.2494, allocations: 0 / 382.2 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2494, allocations: 0 / 382.2 MB, free: 5.121 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000339/0.2498, allocations: 0 / 382.2 MB, free: 5.121 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.01854/0.2683, allocations: 11.48 MB / 393.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.2683, allocations: 12.03 kB / 393.7 MB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01658/0.2849, allocations: 5.623 MB / 399.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007963/0.2929, allocations: 3.323 MB / 402.7 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004943/0.2934, allocations: 0.7068 MB / 403.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002282/0.2957, allocations: 0.9333 MB / 404.3 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.3104, allocations: 7.655 MB / 412 MB, free: 7.102 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002071/0.3106, allocations: 19.92 kB / 412 MB, free: 7.082 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008432/0.3114, allocations: 392 kB / 412.4 MB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003523/0.3118, allocations: 0.5116 MB / 412.9 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009327/0.3211, allocations: 3.854 MB / 416.7 MB, free: 2.281 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1669/0.488, allocations: 29.4 MB / 446.1 MB, free: 72.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005463/0.4935, allocations: 4.54 MB / 450.7 MB, free: 72.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.4946, allocations: 1.049 MB / 451.7 MB, free: 72.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002177/0.4948, allocations: 125.9 kB / 451.8 MB, free: 72.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.4949, allocations: 71.83 kB / 451.9 MB, free: 72.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=384): time 5.64e-06/0.4949, allocations: 0 / 451.9 MB, free: 72.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=392): time 0.01025/0.5051, allocations: 6.404 MB / 458.3 MB, free: 71.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.5051, allocations: 89.48 kB / 458.4 MB, free: 71.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001813/0.507, allocations: 2.45 MB / 460.8 MB, free: 71.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.5071, allocations: 89.95 kB / 460.9 MB, free: 71.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009842/0.5081, allocations: 3.85 MB / 464.8 MB, free: 68.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005301/0.5086, allocations: 1.392 MB / 466.2 MB, free: 67.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008733/0.5095, allocations: 1.085 MB / 467.3 MB, free: 67.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.519e-05/0.5095, allocations: 302.6 kB / 467.6 MB, free: 67.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007289/0.5102, allocations: 0.5572 MB / 468.1 MB, free: 67.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.5115, allocations: 3.109 MB / 471.2 MB, free: 64.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/0.5141, allocations: 4.43 MB / 475.7 MB, free: 61.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.236e-05/0.5142, allocations: 23.34 kB / 475.7 MB, free: 61.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.003907/0.5181, allocations: 3.88 MB / 479.6 MB, free: 60.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.5181, allocations: 40 kB / 479.6 MB, free: 60.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.43e-05/0.5181, allocations: 84 kB / 479.7 MB, free: 60.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.5194, allocations: 0.7321 MB / 480.4 MB, free: 59.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002135/0.5216, allocations: 1.337 MB / 481.7 MB, free: 58.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003366/0.5249, allocations: 3.771 MB / 485.5 MB, free: 55.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.5267, allocations: 243.5 kB / 485.8 MB, free: 55.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002349/0.5269, allocations: 252.5 kB / 486 MB, free: 55.53 MB / 378.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.00146/0.5284, allocations: 0.5281 MB / 486.5 MB, free: 55.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004712/0.5289, allocations: 367.9 kB / 486.9 MB, free: 55.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002703/0.5316, allocations: 2.493 MB / 489.4 MB, free: 53.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.5316, allocations: 40 kB / 489.4 MB, free: 53.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.5316, allocations: 8 kB / 489.4 MB, free: 53.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.5316, allocations: 19.92 kB / 489.4 MB, free: 53.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008332/0.5399, allocations: 6.738 MB / 496.2 MB, free: 48.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5399, allocations: 4 kB / 496.2 MB, free: 48.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.5413, allocations: 0.6476 MB / 496.8 MB, free: 47.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.5424, allocations: 0.5938 MB / 497.4 MB, free: 47.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/0.5425, allocations: 82.97 kB / 497.5 MB, free: 47.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002981/0.5455, allocations: 3.33 MB / 0.4891 GB, free: 44.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5455, allocations: 11.66 kB / 0.4891 GB, free: 44.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/0.5488, allocations: 3.106 MB / 0.4921 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008138/0.5496, allocations: 496 kB / 0.4926 GB, free: 40.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002695/0.5499, allocations: 82.42 kB / 0.4927 GB, free: 40.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007402/0.5507, allocations: 92.73 kB / 0.4928 GB, free: 40.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003009/0.551, allocations: 276.6 kB / 0.4931 GB, free: 40.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/0.5511, allocations: 80.34 kB / 0.4931 GB, free: 40.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008597/0.5519, allocations: 1.102 MB / 0.4942 GB, free: 39.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.5519, allocations: 0 / 0.4942 GB, free: 39.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003291/0.5552, allocations: 1.549 MB / 0.4957 GB, free: 38.29 MB / 378.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.0003773/0.5556, allocations: 238.9 kB / 0.4959 GB, free: 38.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003201/0.5588, allocations: 3.063 MB / 0.4989 GB, free: 35.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.355e-05/0.5589, allocations: 63.94 kB / 0.499 GB, free: 35.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.5602, allocations: 1.481 MB / 0.5004 GB, free: 34.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/0.5622, allocations: 0.9082 MB / 0.5013 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/0.5756, allocations: 13.1 MB / 0.5141 GB, free: 21.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.5768, allocations: 1.783 MB / 0.5159 GB, free: 19.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001692/0.5785, allocations: 0.6742 MB / 0.5165 GB, free: 19.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/0.5799, allocations: 0.904 MB / 0.5174 GB, free: 18.23 MB / 378.7 MB Notification: Performance of SimCode: time 1.532e-06/0.5799, allocations: 0 / 0.5174 GB, free: 18.23 MB / 378.7 MB Notification: Performance of Templates: time 0.07454/0.6545, allocations: 60.35 MB / 0.5763 GB, free: 7.797 MB / 426.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 -s gbode -gbm=radauIIA3 -emit_protected -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.333070117980242]