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.001472/0.001472, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.001001/0.001001, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.9327/0.9327, allocations: 177 MB / 204.8 MB, free: 5.191 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 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.42e-05/2.584e-05, allocations: 5.266 kB / 273 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1348/0.1348, allocations: 28.08 MB / 301 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.1512, allocations: 8.397 MB / 309.4 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005087/0.1563, allocations: 251.6 kB / 309.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00894/0.1652, allocations: 8.748 MB / 318.4 MB, free: 3.656 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00587/0.1711, allocations: 2.906 MB / 321.3 MB, free: 1.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003018/0.1741, allocations: 1.901 MB / 323.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008431/0.1825, allocations: 10.44 MB / 333.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01608/0.1986, allocations: 13.91 MB / 347.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008661/0.2073, allocations: 8.194 MB / 355.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005557/0.2128, allocations: 5.844 MB / 361.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001526/0.2144, allocations: 1.539 MB / 363.2 MB, free: 8.047 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002349/0.2167, allocations: 1.917 MB / 365.1 MB, free: 6.129 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00186/0.2186, allocations: 3.094 MB / 368.2 MB, free: 3.027 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004158/0.2227, allocations: 3.965 MB / 372.2 MB, free: 15.05 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.2336, allocations: 9.925 MB / 382.1 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.2336, allocations: 3.938 kB / 382.1 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2336, allocations: 0 / 382.1 MB, free: 5.098 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003569/0.2339, allocations: 4 kB / 382.1 MB, free: 5.094 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.01907/0.253, allocations: 12.79 MB / 394.9 MB, free: 8.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.253, allocations: 8.031 kB / 394.9 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01673/0.2698, allocations: 7.049 MB / 401.9 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009876/0.2797, allocations: 6.051 MB / 408 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004345/0.2801, allocations: 0.7028 MB / 408.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001427/0.2815, allocations: 0.9295 MB / 409.6 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01312/0.2946, allocations: 8.175 MB / 417.8 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.2948, allocations: 15.91 kB / 417.8 MB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000641/0.2954, allocations: 388 kB / 418.2 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003224/0.2957, allocations: 0.5155 MB / 418.7 MB, free: 168 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00879/0.3045, allocations: 4.407 MB / 423.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3027/0.6072, allocations: 38.7 MB / 461.8 MB, free: 70.81 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007266/0.6145, allocations: 6.886 MB / 468.7 MB, free: 70.54 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.6163, allocations: 1.376 MB / 470.1 MB, free: 70.41 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002334/0.6165, allocations: 119.1 kB / 470.2 MB, free: 70.4 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.6166, allocations: 79.92 kB / 470.3 MB, free: 70.33 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.841e-06/0.6166, allocations: 1.219 kB / 470.3 MB, free: 70.33 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01511/0.6317, allocations: 8.819 MB / 479.1 MB, free: 67.32 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.6317, allocations: 90.3 kB / 479.2 MB, free: 67.26 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/0.6355, allocations: 3.412 MB / 482.6 MB, free: 64.56 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003932/0.6359, allocations: 89.7 kB / 482.7 MB, free: 64.47 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00166/0.6375, allocations: 4.42 MB / 487.1 MB, free: 60.71 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008737/0.6384, allocations: 1.435 MB / 488.5 MB, free: 59.32 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/0.6395, allocations: 1.312 MB / 489.8 MB, free: 57.99 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.056e-05/0.6395, allocations: 476.8 kB / 490.3 MB, free: 57.52 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.6409, allocations: 0.8432 MB / 491.2 MB, free: 56.67 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002294/0.6432, allocations: 4.592 MB / 495.7 MB, free: 50.5 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00431/0.6475, allocations: 6.034 MB / 0.49 GB, free: 43.2 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.294e-05/0.6476, allocations: 24 kB / 0.49 GB, free: 43.17 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.006869/0.6544, allocations: 5.302 MB / 0.4952 GB, free: 38.4 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.856e-05/0.6545, allocations: 40 kB / 0.4953 GB, free: 38.36 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.448e-05/0.6546, allocations: 84 kB / 0.4953 GB, free: 38.28 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001594/0.6562, allocations: 0.8024 MB / 0.4961 GB, free: 37.47 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002294/0.6585, allocations: 1.373 MB / 0.4975 GB, free: 36.2 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004802/0.6633, allocations: 5.067 MB / 0.5024 GB, free: 31.06 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00243/0.6657, allocations: 327.5 kB / 0.5027 GB, free: 30.74 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/0.666, allocations: 308 kB / 0.503 GB, free: 30.44 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.001855/0.6678, allocations: 0.5716 MB / 0.5036 GB, free: 29.96 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006719/0.6685, allocations: 0.517 MB / 0.5041 GB, free: 29.44 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004446/0.673, allocations: 3.418 MB / 0.5074 GB, free: 26.01 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.673, allocations: 40 kB / 0.5075 GB, free: 25.97 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.673, allocations: 12 kB / 0.5075 GB, free: 25.96 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.673, allocations: 23.91 kB / 0.5075 GB, free: 25.94 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01425/0.6873, allocations: 10.76 MB / 0.518 GB, free: 15.21 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.6873, allocations: 4 kB / 0.518 GB, free: 15.21 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.6887, allocations: 0.698 MB / 0.5187 GB, free: 14.55 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001399/0.6901, allocations: 0.6649 MB / 0.5193 GB, free: 13.88 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/0.6902, allocations: 91.97 kB / 0.5194 GB, free: 13.79 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003912/0.6942, allocations: 4.525 MB / 0.5238 GB, free: 9.18 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.6942, allocations: 15.73 kB / 0.5239 GB, free: 9.168 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005552/0.6997, allocations: 4.355 MB / 0.5281 GB, free: 4.688 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.7011, allocations: 0.7548 MB / 0.5288 GB, free: 3.93 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003159/0.7014, allocations: 83.83 kB / 0.5289 GB, free: 3.848 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000908/0.7023, allocations: 183.8 kB / 0.5291 GB, free: 3.668 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/0.7026, allocations: 286.5 kB / 0.5294 GB, free: 3.395 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/0.7028, allocations: 116 kB / 0.5295 GB, free: 3.281 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.00177/0.7045, allocations: 1.549 MB / 0.531 GB, free: 1.742 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.7045, allocations: 4.031 kB / 0.531 GB, free: 1.738 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003939/0.7085, allocations: 1.547 MB / 0.5325 GB, free: 196 kB / 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.000478/0.709, allocations: 258.2 kB / 0.5328 GB, free: 15.97 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.005846/0.7148, allocations: 3.888 MB / 0.5366 GB, free: 12.31 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.7148, allocations: 4 kB / 0.5366 GB, free: 12.31 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002427/0.7172, allocations: 1.868 MB / 0.5384 GB, free: 10.49 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/0.7202, allocations: 0.9277 MB / 0.5393 GB, free: 9.617 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/0.7402, allocations: 13.43 MB / 0.5524 GB, free: 12.01 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/0.7428, allocations: 2.475 MB / 0.5548 GB, free: 9.492 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003067/0.7459, allocations: 1.595 MB / 0.5564 GB, free: 7.891 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008242/0.7467, allocations: 356.4 kB / 0.5567 GB, free: 7.543 MB / 410.8 MB Notification: Performance of SimCode: time 2.335e-06/0.7467, allocations: 1.641 kB / 0.5567 GB, free: 7.543 MB / 410.8 MB Notification: Performance of Templates: time 0.2083/0.955, allocations: 55.21 MB / 0.6106 GB, free: 113.7 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: 5.008038983680308]