Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001352/0.002379, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009775/0.0009775, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001213/0.002191, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9451/0.9451, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08062/1.026, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.785e-06/9.107e-06, allocations: 2.312 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01885/0.01886, allocations: 27.08 MB / 271.6 MB, free: 3.094 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1235/0.1424, allocations: 8.845 MB / 280.5 MB, free: 1.316 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005208/0.1476, allocations: 253.2 kB / 280.7 MB, free: 1.316 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01105/0.1587, allocations: 8.658 MB / 289.4 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007848/0.1665, allocations: 2.891 MB / 292.3 MB, free: 15.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00361/0.1701, allocations: 1.877 MB / 294.1 MB, free: 14.4 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009169/0.1793, allocations: 10.51 MB / 304.7 MB, free: 8.715 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01725/0.1965, allocations: 13.96 MB / 318.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01334/0.2099, allocations: 8.557 MB / 327.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008017/0.2179, allocations: 5.97 MB / 333.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003267/0.2212, allocations: 1.539 MB / 334.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005012/0.2262, allocations: 1.922 MB / 336.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002834/0.229, allocations: 2.451 MB / 339.1 MB, free: 8.98 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007725/0.2367, allocations: 3.307 MB / 342.4 MB, free: 5.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.2488, allocations: 9.378 MB / 351.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.258e-05/0.2489, allocations: 0 / 351.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2489, allocations: 0 / 351.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003231/0.2492, allocations: 0 / 351.7 MB, free: 12.61 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.01708/0.2663, allocations: 13.44 MB / 365.2 MB, free: 15.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2663, allocations: 16.73 kB / 365.2 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01423/0.2805, allocations: 5.617 MB / 370.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006084/0.2866, allocations: 3.322 MB / 374.1 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004416/0.287, allocations: 0.7055 MB / 374.8 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001711/0.2887, allocations: 0.9376 MB / 375.8 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.3002, allocations: 7.656 MB / 383.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001839/0.3004, allocations: 15.08 kB / 383.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008708/0.3012, allocations: 393.5 kB / 383.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003453/0.3016, allocations: 0.5155 MB / 384.3 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006306/0.3079, allocations: 3.858 MB / 388.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03069/0.3386, allocations: 29.56 MB / 417.8 MB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004769/0.3433, allocations: 4.546 MB / 422.3 MB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.3444, allocations: 1.054 MB / 423.4 MB, free: 6.031 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002138/0.3446, allocations: 118.9 kB / 423.5 MB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/0.3447, allocations: 85.56 kB / 423.6 MB, free: 5.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=384): time 6.623e-06/0.3447, allocations: 0 / 423.6 MB, free: 5.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=392): time 0.1303/0.4749, allocations: 6.399 MB / 430 MB, free: 97.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.475, allocations: 96.95 kB / 430.1 MB, free: 97.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002772/0.4778, allocations: 2.446 MB / 432.5 MB, free: 97.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004766/0.4782, allocations: 89.73 kB / 432.6 MB, free: 97.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/0.4796, allocations: 3.851 MB / 436.4 MB, free: 95.65 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008766/0.4804, allocations: 1.4 MB / 437.8 MB, free: 94.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001098/0.4815, allocations: 1.077 MB / 438.9 MB, free: 94.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.525e-05/0.4816, allocations: 302 kB / 439.2 MB, free: 94.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008806/0.4824, allocations: 0.5598 MB / 439.8 MB, free: 94.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.484, allocations: 3.108 MB / 442.9 MB, free: 91.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002867/0.4868, allocations: 4.432 MB / 447.3 MB, free: 88.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-05/0.4869, allocations: 27.25 kB / 447.3 MB, free: 88.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.00435/0.4912, allocations: 3.877 MB / 451.2 MB, free: 87.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.4913, allocations: 45.19 kB / 451.3 MB, free: 87.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-05/0.4913, allocations: 83.34 kB / 451.3 MB, free: 87.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.4926, allocations: 0.7341 MB / 452.1 MB, free: 87.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/0.4948, allocations: 1.447 MB / 453.5 MB, free: 87.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003268/0.4981, allocations: 3.753 MB / 457.3 MB, free: 86.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.5001, allocations: 245.7 kB / 457.5 MB, free: 86.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000255/0.5003, allocations: 254.8 kB / 457.8 MB, free: 86.49 MB / 394.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.001332/0.5017, allocations: 0.5174 MB / 458.3 MB, free: 86.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004574/0.5021, allocations: 376.1 kB / 458.7 MB, free: 86.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002751/0.5049, allocations: 2.495 MB / 461.2 MB, free: 86.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.5049, allocations: 38.19 kB / 461.2 MB, free: 86.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.5049, allocations: 10.59 kB / 461.2 MB, free: 86.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/0.5049, allocations: 29.86 kB / 461.2 MB, free: 86.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008401/0.5133, allocations: 6.718 MB / 467.9 MB, free: 85.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.5133, allocations: 12.47 kB / 468 MB, free: 85.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.5147, allocations: 0.7024 MB / 468.7 MB, free: 85.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000971/0.5157, allocations: 0.491 MB / 469.2 MB, free: 85.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.5167, allocations: 0.5996 MB / 469.8 MB, free: 85 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.5168, allocations: 81.08 kB / 469.8 MB, free: 85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00272/0.5195, allocations: 3.34 MB / 473.2 MB, free: 83.62 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5196, allocations: 7.188 kB / 473.2 MB, free: 83.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.5228, allocations: 3.105 MB / 476.3 MB, free: 82.99 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000521/0.5234, allocations: 74.91 kB / 476.4 MB, free: 82.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008377/0.5242, allocations: 94.53 kB / 476.4 MB, free: 82.88 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003067/0.5245, allocations: 278.3 kB / 476.7 MB, free: 82.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.5246, allocations: 86.12 kB / 476.8 MB, free: 82.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001176/0.5258, allocations: 1.096 MB / 477.9 MB, free: 82.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5258, allocations: 0 / 477.9 MB, free: 82.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003784/0.5296, allocations: 1.541 MB / 479.4 MB, free: 81.02 MB / 394.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.000432/0.53, allocations: 258.2 kB / 479.7 MB, free: 80.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003619/0.5337, allocations: 3.058 MB / 482.7 MB, free: 78.28 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001401/0.5338, allocations: 91.81 kB / 482.8 MB, free: 78.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.5352, allocations: 1.495 MB / 484.3 MB, free: 76.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/0.5376, allocations: 1.236 MB / 485.6 MB, free: 75.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05041/0.588, allocations: 13.41 MB / 499 MB, free: 62.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/0.5897, allocations: 1.785 MB / 0.489 GB, free: 60.32 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001798/0.5915, allocations: 0.6743 MB / 0.4897 GB, free: 59.64 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.5929, allocations: 0.9013 MB / 0.4906 GB, free: 58.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.693e-06/0.5929, allocations: 0 / 0.4906 GB, free: 58.73 MB / 394.7 MB Notification: Performance of Templates: time 0.06966/0.6625, allocations: 62.63 MB / 0.5517 GB, free: 12.96 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.351944603957236]