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.0009106/0.0009106, 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.0009649/0.0009649, allocations: 164.2 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.865/0.865, allocations: 177 MB / 205.2 MB, free: 5.059 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.102e-06/1.102e-06, allocations: 0 / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.248e-05/1.359e-05, allocations: 2.312 kB / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1094/0.1094, allocations: 26.83 MB / 300.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01301/0.1225, allocations: 8.8 MB / 309.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.1251, allocations: 251.4 kB / 309.3 MB, free: 9.836 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006928/0.132, allocations: 8.694 MB / 318 MB, free: 4.039 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003847/0.1359, allocations: 2.922 MB / 320.9 MB, free: 1.711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002043/0.1379, allocations: 1.905 MB / 322.8 MB, free: 232 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006663/0.1446, allocations: 10.44 MB / 333.3 MB, free: 6.273 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01246/0.157, allocations: 14.31 MB / 347.6 MB, free: 7.777 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006485/0.1635, allocations: 8.28 MB / 355.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004705/0.1682, allocations: 5.985 MB / 361.8 MB, free: 9.484 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001274/0.1695, allocations: 1.531 MB / 363.4 MB, free: 7.953 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001887/0.1714, allocations: 1.917 MB / 365.3 MB, free: 6.035 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001537/0.1729, allocations: 3.078 MB / 368.4 MB, free: 2.949 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002782/0.1757, allocations: 3.957 MB / 372.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006948/0.1827, allocations: 9.894 MB / 382.2 MB, free: 5.062 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1827, allocations: 3.938 kB / 382.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1827, allocations: 7.984 kB / 382.2 MB, free: 5.051 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.373e-05/0.1827, allocations: 0 / 382.2 MB, free: 5.051 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.01293/0.1957, allocations: 11.48 MB / 393.7 MB, free: 9.488 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.1957, allocations: 12.03 kB / 393.7 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01398/0.2097, allocations: 5.616 MB / 399.3 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004953/0.2146, allocations: 3.335 MB / 402.7 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/0.215, allocations: 0.7029 MB / 403.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009367/0.2159, allocations: 0.9333 MB / 404.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007804/0.2237, allocations: 7.666 MB / 412 MB, free: 7.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.2238, allocations: 15.94 kB / 412 MB, free: 7.004 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006315/0.2245, allocations: 388 kB / 412.4 MB, free: 6.625 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003046/0.2248, allocations: 0.5155 MB / 412.9 MB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005546/0.2303, allocations: 3.854 MB / 416.7 MB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2169/0.4472, allocations: 29.39 MB / 446.1 MB, free: 70.41 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004945/0.4521, allocations: 4.547 MB / 450.7 MB, free: 70.14 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009902/0.4531, allocations: 1.049 MB / 451.7 MB, free: 70.1 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001968/0.4533, allocations: 123.3 kB / 451.9 MB, free: 70.1 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.4534, allocations: 75.89 kB / 451.9 MB, free: 70.05 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 4.909e-06/0.4534, allocations: 0 / 451.9 MB, free: 70.05 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.009115/0.4625, allocations: 6.399 MB / 458.3 MB, free: 69.38 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.4625, allocations: 93.3 kB / 458.4 MB, free: 69.31 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001444/0.464, allocations: 2.45 MB / 460.9 MB, free: 68.96 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001382/0.4641, allocations: 89.64 kB / 461 MB, free: 68.93 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008827/0.465, allocations: 3.847 MB / 464.8 MB, free: 67.18 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004251/0.4654, allocations: 1.399 MB / 466.2 MB, free: 66.29 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008398/0.4662, allocations: 1.079 MB / 467.3 MB, free: 66.19 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.018e-05/0.4663, allocations: 304.9 kB / 467.6 MB, free: 65.89 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006472/0.4669, allocations: 0.5583 MB / 468.1 MB, free: 65.88 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.4681, allocations: 3.102 MB / 471.2 MB, free: 62.8 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/0.4704, allocations: 4.433 MB / 475.7 MB, free: 59.64 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-05/0.4704, allocations: 25.84 kB / 475.7 MB, free: 59.64 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.003554/0.4739, allocations: 3.878 MB / 479.6 MB, free: 58.83 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.474, allocations: 46.11 kB / 479.6 MB, free: 58.79 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/0.474, allocations: 84 kB / 479.7 MB, free: 58.71 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.4752, allocations: 0.7386 MB / 480.4 MB, free: 58.18 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002071/0.4773, allocations: 1.268 MB / 481.7 MB, free: 57.2 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004087/0.4813, allocations: 3.739 MB / 485.4 MB, free: 54.62 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/0.4834, allocations: 248 kB / 485.7 MB, free: 54.47 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003067/0.4837, allocations: 245.1 kB / 485.9 MB, free: 54.29 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.001349/0.4851, allocations: 0.5319 MB / 486.5 MB, free: 54.02 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000583/0.4856, allocations: 361.9 kB / 486.8 MB, free: 53.8 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003557/0.4892, allocations: 2.498 MB / 489.3 MB, free: 52.05 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/0.4892, allocations: 43.98 kB / 489.4 MB, free: 52 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.4892, allocations: 8 kB / 489.4 MB, free: 52 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.602e-05/0.4892, allocations: 23.92 kB / 489.4 MB, free: 51.97 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009814/0.4991, allocations: 6.733 MB / 496.1 MB, free: 46.84 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.4991, allocations: 4 kB / 496.1 MB, free: 46.83 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/0.5007, allocations: 0.5958 MB / 496.7 MB, free: 46.3 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001366/0.5021, allocations: 0.6033 MB / 497.3 MB, free: 45.72 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001628/0.5022, allocations: 78.22 kB / 497.4 MB, free: 45.69 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/0.5057, allocations: 3.305 MB / 0.489 GB, free: 43 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5057, allocations: 11.84 kB / 0.489 GB, free: 42.99 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004037/0.5097, allocations: 3.104 MB / 0.492 GB, free: 40.04 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008754/0.5106, allocations: 498.3 kB / 0.4925 GB, free: 39.6 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003652/0.511, allocations: 77.05 kB / 0.4926 GB, free: 39.58 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009859/0.5119, allocations: 93.36 kB / 0.4926 GB, free: 39.54 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00034/0.5123, allocations: 277.5 kB / 0.4929 GB, free: 39.3 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001735/0.5124, allocations: 80.78 kB / 0.493 GB, free: 39.25 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.000983/0.5134, allocations: 1.101 MB / 0.4941 GB, free: 38.35 MB / 378.8 MB Notification: Performance of sort global known variables: time 7e-08/0.5134, allocations: 0 / 0.4941 GB, free: 38.35 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003873/0.5173, allocations: 1.546 MB / 0.4956 GB, free: 36.96 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.0003867/0.5177, allocations: 254.3 kB / 0.4958 GB, free: 36.8 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.003555/0.5212, allocations: 3.059 MB / 0.4988 GB, free: 34.27 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.000115/0.5214, allocations: 63.94 kB / 0.4989 GB, free: 34.2 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.523, allocations: 1.481 MB / 0.5003 GB, free: 32.95 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.5255, allocations: 0.9045 MB / 0.5012 GB, free: 32.34 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.5401, allocations: 13.1 MB / 0.514 GB, free: 20.25 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/0.5417, allocations: 1.783 MB / 0.5157 GB, free: 18.45 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.001768/0.5434, allocations: 0.6742 MB / 0.5164 GB, free: 17.77 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/0.5448, allocations: 0.9038 MB / 0.5173 GB, free: 16.89 MB / 378.8 MB Notification: Performance of SimCode: time 7.41e-07/0.5448, allocations: 0 / 0.5173 GB, free: 16.89 MB / 378.8 MB Notification: Performance of Templates: time 0.06983/0.6146, allocations: 60.36 MB / 0.5762 GB, free: 6.312 MB / 426.8 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 -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.255503290798515]