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.0008345/0.0008345, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001335/0.00217, allocations: 457.8 kB / 10.45 MB, free: 244 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.001691/0.001691, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00193/0.003621, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.9401/0.9401, allocations: 177.5 MB / 190 MB, free: 4.801 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08817/1.028, allocations: 53.87 MB / 243.9 MB, free: 14.86 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.062e-06/1.062e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.207e-06/1.027e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01851/0.01852, allocations: 27.08 MB / 272.3 MB, free: 2.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1316/0.1501, allocations: 8.792 MB / 281.1 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002985/0.1531, allocations: 258.3 kB / 281.4 MB, free: 1.336 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007908/0.161, allocations: 8.645 MB / 290 MB, free: 48 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005/0.166, allocations: 2.896 MB / 292.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.1686, allocations: 1.883 MB / 294.8 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006854/0.1755, allocations: 10.5 MB / 305.3 MB, free: 8.148 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01344/0.1889, allocations: 13.98 MB / 319.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00887/0.1978, allocations: 8.538 MB / 327.8 MB, free: 3.676 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006677/0.2045, allocations: 5.978 MB / 333.8 MB, free: 14.06 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002456/0.2069, allocations: 1.535 MB / 335.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002545/0.2095, allocations: 1.926 MB / 337.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.2109, allocations: 2.456 MB / 339.7 MB, free: 8.156 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003186/0.2141, allocations: 3.303 MB / 343 MB, free: 4.848 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008078/0.2222, allocations: 9.346 MB / 352.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.2222, allocations: 0 / 352.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2222, allocations: 0 / 352.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001948/0.2224, allocations: 4 kB / 352.3 MB, free: 11.81 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.0164/0.2388, allocations: 13.43 MB / 365.8 MB, free: 14.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2388, allocations: 12.62 kB / 365.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/0.2531, allocations: 5.611 MB / 371.4 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006526/0.2597, allocations: 3.336 MB / 374.7 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000384/0.26, allocations: 0.7073 MB / 375.4 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001297/0.2613, allocations: 0.9342 MB / 376.4 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.2725, allocations: 7.655 MB / 384 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/0.2726, allocations: 17.75 kB / 384 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008857/0.2735, allocations: 393.9 kB / 384.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007673/0.2743, allocations: 0.4921 MB / 384.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007815/0.2821, allocations: 3.854 MB / 388.8 MB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04339/0.3255, allocations: 29.57 MB / 418.3 MB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/0.3382, allocations: 4.545 MB / 422.9 MB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004448/0.3426, allocations: 1.051 MB / 423.9 MB, free: 4.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002528/0.3429, allocations: 114.9 kB / 424.1 MB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.975e-05/0.3429, allocations: 85.5 kB / 424.1 MB, free: 4.773 MB / 394.7 MB Notification: Performance of pre-optimization done (n=384): time 6.833e-06/0.343, allocations: 0 / 424.1 MB, free: 4.773 MB / 394.7 MB Notification: Performance of matching and sorting (n=392): time 0.2769/0.6198, allocations: 7.529 MB / 431.7 MB, free: 95.79 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.6199, allocations: 96.77 kB / 431.8 MB, free: 95.72 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.6222, allocations: 2.452 MB / 434.2 MB, free: 95.5 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001464/0.6223, allocations: 89.36 kB / 434.3 MB, free: 95.47 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001235/0.6235, allocations: 3.851 MB / 438.2 MB, free: 93.77 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000503/0.624, allocations: 1.393 MB / 439.5 MB, free: 92.95 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009679/0.625, allocations: 1.083 MB / 440.6 MB, free: 92.85 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 2.33e-05/0.625, allocations: 302.3 kB / 440.9 MB, free: 92.55 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.6262, allocations: 0.5628 MB / 441.5 MB, free: 92.54 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/0.6279, allocations: 3.101 MB / 444.6 MB, free: 89.46 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003475/0.6314, allocations: 4.702 MB / 449.3 MB, free: 86.38 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.069e-05/0.6315, allocations: 23.12 kB / 449.3 MB, free: 86.38 MB / 394.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.004727/0.6362, allocations: 3.877 MB / 453.2 MB, free: 86.18 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.6362, allocations: 40.75 kB / 453.2 MB, free: 86.18 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.378e-05/0.6363, allocations: 85.69 kB / 453.3 MB, free: 86.18 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001332/0.6376, allocations: 0.7271 MB / 454 MB, free: 86.14 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002572/0.6402, allocations: 1.451 MB / 455.5 MB, free: 86.14 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003546/0.6438, allocations: 3.747 MB / 459.2 MB, free: 84.72 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002703/0.6465, allocations: 237.4 kB / 459.5 MB, free: 84.69 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005043/0.647, allocations: 253.1 kB / 459.7 MB, free: 84.69 MB / 394.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.001906/0.6489, allocations: 0.5244 MB / 460.2 MB, free: 84.52 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006838/0.6496, allocations: 373.7 kB / 460.6 MB, free: 84.51 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003176/0.6527, allocations: 2.489 MB / 463.1 MB, free: 84.25 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.6528, allocations: 40.91 kB / 463.1 MB, free: 84.25 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.6528, allocations: 5.906 kB / 463.1 MB, free: 84.25 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.6528, allocations: 25.59 kB / 463.2 MB, free: 84.25 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01016/0.6629, allocations: 6.73 MB / 469.9 MB, free: 83.46 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.663, allocations: 3.906 kB / 469.9 MB, free: 83.46 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.6643, allocations: 0.7112 MB / 470.6 MB, free: 83.46 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.6655, allocations: 0.4886 MB / 471.1 MB, free: 83.23 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.6666, allocations: 0.5999 MB / 471.7 MB, free: 83.2 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001401/0.6667, allocations: 84 kB / 471.8 MB, free: 83.2 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00287/0.6696, allocations: 3.322 MB / 475.1 MB, free: 81.8 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.473e-06/0.6696, allocations: 10.91 kB / 475.1 MB, free: 81.8 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003487/0.6731, allocations: 3.115 MB / 478.2 MB, free: 80.41 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005705/0.6736, allocations: 72 kB / 478.3 MB, free: 80.34 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009233/0.6746, allocations: 102.5 kB / 478.4 MB, free: 80.24 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003097/0.6749, allocations: 274.9 kB / 478.7 MB, free: 80.11 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.675, allocations: 83.22 kB / 478.8 MB, free: 80.04 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.001059/0.6761, allocations: 1.095 MB / 479.8 MB, free: 79.14 MB / 394.8 MB Notification: Performance of sort global known variables: time 8e-08/0.6761, allocations: 0 / 479.8 MB, free: 79.14 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.003824/0.6799, allocations: 1.543 MB / 481.4 MB, free: 77.59 MB / 394.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.0003719/0.6803, allocations: 259.9 kB / 481.6 MB, free: 77.38 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.003411/0.6837, allocations: 3.144 MB / 484.8 MB, free: 74.58 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 0.000149/0.6838, allocations: 92.66 kB / 484.9 MB, free: 74.48 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001565/0.6854, allocations: 1.732 MB / 486.6 MB, free: 72.86 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003552/0.6889, allocations: 7.531 MB / 494.1 MB, free: 64.05 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05524/0.7442, allocations: 13.41 MB / 0.4957 GB, free: 50.57 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002414/0.7466, allocations: 1.784 MB / 0.4974 GB, free: 48.74 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.001993/0.7486, allocations: 0.6703 MB / 0.4981 GB, free: 48.07 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/0.7501, allocations: 0.9013 MB / 0.4989 GB, free: 47.16 MB / 394.8 MB Notification: Performance of SimCode: time 1.583e-06/0.7501, allocations: 0 / 0.4989 GB, free: 47.16 MB / 394.8 MB Notification: Performance of Templates: time 0.1079/0.858, allocations: 63.46 MB / 0.5609 GB, free: 184 kB / 410.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 -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.144309028051794]