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.001359/0.001359, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.00146/0.00146, allocations: 172.4 kB / 24.83 MB, free: 9.254 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.8983/0.8983, allocations: 177 MB / 205.1 MB, free: 5.484 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.643e-06/1.643e-06, allocations: 0 / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.337e-05/1.501e-05, allocations: 5.125 kB / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.143/0.143, allocations: 26.81 MB / 300.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.1576, allocations: 8.359 MB / 308.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003735/0.1613, allocations: 255.1 kB / 308.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.1714, allocations: 8.438 MB / 317.2 MB, free: 4.637 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005461/0.1769, allocations: 2.898 MB / 320.1 MB, free: 2.324 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002737/0.1796, allocations: 1.872 MB / 322 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008927/0.1885, allocations: 10.44 MB / 332.4 MB, free: 7.18 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01897/0.2075, allocations: 13.92 MB / 346.4 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01047/0.218, allocations: 8.241 MB / 354.6 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005509/0.2235, allocations: 5.915 MB / 360.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.2252, allocations: 1.539 MB / 362.1 MB, free: 9.391 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002594/0.2278, allocations: 1.913 MB / 364 MB, free: 7.477 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001847/0.2296, allocations: 3.086 MB / 367.1 MB, free: 4.383 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003151/0.2328, allocations: 3.949 MB / 371 MB, free: 436 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008434/0.2412, allocations: 9.906 MB / 380.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2412, allocations: 0 / 380.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2412, allocations: 0 / 380.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.2413, allocations: 4 kB / 380.9 MB, free: 6.484 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.0146/0.2559, allocations: 12.27 MB / 393.2 MB, free: 10.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.256, allocations: 8.031 kB / 393.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01381/0.2698, allocations: 5.416 MB / 398.6 MB, free: 4.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005728/0.2755, allocations: 5.644 MB / 404.3 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003328/0.2758, allocations: 0.7067 MB / 405 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009101/0.2767, allocations: 0.9412 MB / 405.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008767/0.2855, allocations: 7.486 MB / 413.4 MB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001327/0.2856, allocations: 15.92 kB / 413.4 MB, free: 5.691 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000593/0.2862, allocations: 392 kB / 413.8 MB, free: 5.309 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000307/0.2865, allocations: 0.5155 MB / 414.3 MB, free: 4.789 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00853/0.2951, allocations: 3.45 MB / 417.8 MB, free: 1.293 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2751/0.5701, allocations: 38.15 MB / 455.9 MB, free: 69.95 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005546/0.5757, allocations: 6.012 MB / 461.9 MB, free: 69.67 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.5771, allocations: 1.197 MB / 463.1 MB, free: 69.63 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002176/0.5773, allocations: 145 kB / 463.2 MB, free: 69.6 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.302e-05/0.5773, allocations: 79.5 kB / 463.3 MB, free: 69.55 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 6.041e-06/0.5773, allocations: 3.688 kB / 463.3 MB, free: 69.55 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01171/0.5891, allocations: 7.191 MB / 470.5 MB, free: 68.36 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.5891, allocations: 90.17 kB / 470.6 MB, free: 68.29 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/0.5921, allocations: 3.36 MB / 474 MB, free: 67.85 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002241/0.5924, allocations: 88.98 kB / 474.1 MB, free: 67.82 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001415/0.5938, allocations: 4.445 MB / 478.5 MB, free: 66.02 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006902/0.5945, allocations: 1.449 MB / 479.9 MB, free: 65.14 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00109/0.5956, allocations: 1.324 MB / 481.3 MB, free: 65.03 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.36e-05/0.5956, allocations: 480.8 kB / 481.7 MB, free: 64.55 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007713/0.5964, allocations: 0.6424 MB / 482.4 MB, free: 64.54 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.5981, allocations: 4.426 MB / 486.8 MB, free: 59.18 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00314/0.6012, allocations: 5.72 MB / 492.5 MB, free: 53 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-05/0.6013, allocations: 24 kB / 492.6 MB, free: 52.97 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.005459/0.6067, allocations: 4.821 MB / 497.4 MB, free: 49.48 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.6068, allocations: 40 kB / 497.4 MB, free: 49.45 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-05/0.6068, allocations: 83.98 kB / 497.5 MB, free: 49.36 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.6082, allocations: 0.771 MB / 498.3 MB, free: 48.63 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002017/0.6102, allocations: 1.285 MB / 499.6 MB, free: 47.5 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00383/0.614, allocations: 4.835 MB / 0.4926 GB, free: 42.77 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002421/0.6164, allocations: 239.7 kB / 0.4928 GB, free: 42.54 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003385/0.6168, allocations: 260 kB / 0.493 GB, free: 42.28 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.001848/0.6186, allocations: 0.5676 MB / 0.4936 GB, free: 41.8 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000715/0.6193, allocations: 0.5286 MB / 0.4941 GB, free: 41.27 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003259/0.6226, allocations: 3.03 MB / 0.4971 GB, free: 38.25 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.6226, allocations: 40 kB / 0.4971 GB, free: 38.21 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.6226, allocations: 8 kB / 0.4971 GB, free: 38.2 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/0.6226, allocations: 23.92 kB / 0.4971 GB, free: 38.18 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.633, allocations: 8.357 MB / 0.5053 GB, free: 30.4 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.633, allocations: 4.625 kB / 0.5053 GB, free: 30.4 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.6343, allocations: 0.6158 MB / 0.5059 GB, free: 29.82 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.6355, allocations: 0.6334 MB / 0.5065 GB, free: 29.19 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.6356, allocations: 91.97 kB / 0.5066 GB, free: 29.1 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/0.6389, allocations: 4.327 MB / 0.5108 GB, free: 24.75 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.6389, allocations: 7.562 kB / 0.5108 GB, free: 24.75 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/0.6434, allocations: 3.833 MB / 0.5146 GB, free: 20.86 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/0.6448, allocations: 0.7077 MB / 0.5153 GB, free: 20.15 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003859/0.6452, allocations: 75.98 kB / 0.5154 GB, free: 20.08 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008283/0.646, allocations: 91.98 kB / 0.5154 GB, free: 19.99 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002933/0.6463, allocations: 285.4 kB / 0.5157 GB, free: 19.71 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.6465, allocations: 95.97 kB / 0.5158 GB, free: 19.62 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001384/0.6478, allocations: 1.43 MB / 0.5172 GB, free: 18.34 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6478, allocations: 4 kB / 0.5172 GB, free: 18.33 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.00401/0.6518, allocations: 1.539 MB / 0.5187 GB, free: 16.79 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.0003858/0.6522, allocations: 260.8 kB / 0.519 GB, free: 16.57 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.6561, allocations: 3.532 MB / 0.5224 GB, free: 13.33 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.6561, allocations: 0 / 0.5224 GB, free: 13.33 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.6576, allocations: 1.719 MB / 0.5241 GB, free: 11.71 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.6599, allocations: 0.9297 MB / 0.525 GB, free: 10.84 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01465/0.6746, allocations: 13.27 MB / 0.538 GB, free: 13.46 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002178/0.6768, allocations: 2.482 MB / 0.5404 GB, free: 10.94 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.002147/0.6789, allocations: 0.6664 MB / 0.541 GB, free: 10.27 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/0.6805, allocations: 1.009 MB / 0.542 GB, free: 9.258 MB / 394.8 MB Notification: Performance of SimCode: time 1.774e-06/0.6805, allocations: 4 kB / 0.542 GB, free: 9.254 MB / 394.8 MB Notification: Performance of Templates: time 0.2116/0.8922, allocations: 59.95 MB / 0.6006 GB, free: 122.9 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.4985907399095595]