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.0009305/0.0009305, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001076/0.001076, allocations: 170.3 kB / 24.91 MB, free: 8.723 MB / 18.57 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.9018/0.9018, allocations: 177.1 MB / 205.3 MB, free: 5.105 MB / 186.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.223e-06/1.223e-06, allocations: 0 / 273.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.167e-05/1.29e-05, allocations: 5.406 kB / 273.5 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1179/0.1179, allocations: 26.88 MB / 300.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.1335, allocations: 8.796 MB / 309.2 MB, free: 9.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003566/0.1371, allocations: 253.1 kB / 309.5 MB, free: 9.852 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00734/0.1444, allocations: 8.625 MB / 318.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004486/0.1489, allocations: 2.9 MB / 321 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002167/0.1511, allocations: 1.886 MB / 322.9 MB, free: 284 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007349/0.1585, allocations: 10.44 MB / 333.3 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01378/0.1722, allocations: 14.3 MB / 347.6 MB, free: 7.918 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007546/0.1798, allocations: 8.28 MB / 355.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005592/0.1854, allocations: 5.989 MB / 361.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001432/0.1868, allocations: 1.535 MB / 363.4 MB, free: 8.086 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.189, allocations: 1.929 MB / 365.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001581/0.1906, allocations: 3.086 MB / 368.4 MB, free: 3.062 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003352/0.1939, allocations: 3.949 MB / 372.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007302/0.2012, allocations: 9.906 MB / 382.3 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2012, allocations: 0 / 382.3 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2012, allocations: 4 kB / 382.3 MB, free: 5.168 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002378/0.2015, allocations: 4 kB / 382.3 MB, free: 5.164 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.01407/0.2155, allocations: 11.46 MB / 393.8 MB, free: 9.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2156, allocations: 12.03 kB / 393.8 MB, free: 9.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01581/0.2314, allocations: 5.623 MB / 399.4 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004509/0.2359, allocations: 3.331 MB / 402.7 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003191/0.2362, allocations: 0.699 MB / 403.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009048/0.2371, allocations: 0.945 MB / 404.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008251/0.2454, allocations: 7.659 MB / 412 MB, free: 7.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001384/0.2455, allocations: 15.89 kB / 412 MB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006106/0.2461, allocations: 396 kB / 412.4 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000309/0.2464, allocations: 0.5155 MB / 412.9 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005597/0.252, allocations: 3.851 MB / 416.8 MB, free: 2.324 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2462/0.4982, allocations: 29.4 MB / 446.2 MB, free: 70.47 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005082/0.5033, allocations: 4.548 MB / 450.7 MB, free: 70.21 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009852/0.5043, allocations: 1.041 MB / 451.8 MB, free: 70.17 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002009/0.5045, allocations: 127.3 kB / 451.9 MB, free: 70.17 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/0.5045, allocations: 74.02 kB / 452 MB, free: 70.12 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.11e-06/0.5046, allocations: 0 / 452 MB, free: 70.12 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.009257/0.5138, allocations: 6.405 MB / 458.4 MB, free: 69.44 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.5138, allocations: 92.92 kB / 458.5 MB, free: 69.38 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.5154, allocations: 2.457 MB / 460.9 MB, free: 69.02 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.5155, allocations: 89.05 kB / 461 MB, free: 68.99 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009834/0.5165, allocations: 3.845 MB / 464.9 MB, free: 67.23 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004886/0.517, allocations: 1.392 MB / 466.3 MB, free: 66.35 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008559/0.5178, allocations: 1.087 MB / 467.3 MB, free: 66.25 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.437e-05/0.5178, allocations: 301.1 kB / 467.6 MB, free: 65.95 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000654/0.5185, allocations: 0.5629 MB / 468.2 MB, free: 65.94 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.5197, allocations: 3.101 MB / 471.3 MB, free: 62.86 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/0.5221, allocations: 4.432 MB / 475.7 MB, free: 59.7 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-05/0.5221, allocations: 23.41 kB / 475.8 MB, free: 59.7 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.003627/0.5257, allocations: 3.879 MB / 479.6 MB, free: 58.96 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.5258, allocations: 40.88 kB / 479.7 MB, free: 58.92 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-05/0.5258, allocations: 86.02 kB / 479.8 MB, free: 58.84 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.527, allocations: 0.7368 MB / 480.5 MB, free: 58.31 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002067/0.5291, allocations: 1.335 MB / 481.8 MB, free: 57.28 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003174/0.5322, allocations: 3.77 MB / 485.6 MB, free: 54.68 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/0.5336, allocations: 241.7 kB / 485.8 MB, free: 54.54 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002233/0.5339, allocations: 251 kB / 486.1 MB, free: 54.35 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.001222/0.5351, allocations: 0.5236 MB / 486.6 MB, free: 54.08 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004266/0.5355, allocations: 372.9 kB / 487 MB, free: 53.86 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.5381, allocations: 2.486 MB / 489.5 MB, free: 52.08 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.5382, allocations: 40 kB / 489.5 MB, free: 52.04 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.5382, allocations: 12 kB / 489.5 MB, free: 52.03 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.868e-05/0.5382, allocations: 19.92 kB / 489.5 MB, free: 52.01 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/0.5456, allocations: 6.735 MB / 496.3 MB, free: 46.87 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5456, allocations: 4 kB / 496.3 MB, free: 46.87 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/0.5473, allocations: 0.6504 MB / 496.9 MB, free: 46.28 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001376/0.5486, allocations: 0.5959 MB / 497.5 MB, free: 45.71 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001717/0.5488, allocations: 78.91 kB / 497.6 MB, free: 45.68 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00346/0.5523, allocations: 3.333 MB / 0.4892 GB, free: 42.96 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.5523, allocations: 7.375 kB / 0.4892 GB, free: 42.96 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007088/0.5594, allocations: 3.11 MB / 0.4922 GB, free: 40 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008311/0.5602, allocations: 491.9 kB / 0.4927 GB, free: 39.57 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003354/0.5635, allocations: 77.48 kB / 0.4928 GB, free: 39.55 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009211/0.5645, allocations: 93.05 kB / 0.4929 GB, free: 39.51 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003579/0.5648, allocations: 278.8 kB / 0.4931 GB, free: 39.27 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/0.565, allocations: 82.28 kB / 0.4932 GB, free: 39.21 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0009506/0.5659, allocations: 1.099 MB / 0.4943 GB, free: 38.31 MB / 378.8 MB Notification: Performance of sort global known variables: time 1e-07/0.5659, allocations: 0 / 0.4943 GB, free: 38.31 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.01556/0.5815, allocations: 1.544 MB / 0.4958 GB, free: 36.93 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.000361/0.5819, allocations: 250.2 kB / 0.496 GB, free: 36.78 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0094/0.5913, allocations: 3.057 MB / 0.499 GB, free: 34.25 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001126/0.5914, allocations: 66.81 kB / 0.4991 GB, free: 34.18 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.593, allocations: 1.491 MB / 0.5005 GB, free: 32.92 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008361/0.6013, allocations: 0.9136 MB / 0.5014 GB, free: 32.3 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/0.6308, allocations: 13.1 MB / 0.5142 GB, free: 20.21 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/0.6321, allocations: 1.783 MB / 0.516 GB, free: 18.41 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.001477/0.6336, allocations: 0.6664 MB / 0.5166 GB, free: 17.74 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001415/0.635, allocations: 0.9089 MB / 0.5175 GB, free: 16.86 MB / 378.8 MB Notification: Performance of SimCode: time 1.453e-06/0.635, allocations: 0 / 0.5175 GB, free: 16.86 MB / 378.8 MB Notification: Performance of Templates: time 0.07897/0.714, allocations: 60.36 MB / 0.5764 GB, free: 6.375 MB / 426.8 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 -s gbode -gbm=radauIIA3 -emit_protected -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.455730861052871]