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.0008745/0.0008745, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004232/0.004232, allocations: 156.7 kB / 24.7 MB, free: 9.441 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.8714/0.8714, allocations: 177 MB / 204.9 MB, free: 5.742 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 2.024e-06/2.024e-06, allocations: 0 / 325.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.647e-05, allocations: 6.219 kB / 325.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01764/0.01767, allocations: 24.65 MB / 350.5 MB, free: 6.461 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01473/0.0324, allocations: 8.178 MB / 358.7 MB, free: 14.26 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005566/0.03796, allocations: 254.7 kB / 358.9 MB, free: 14.01 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01044/0.04841, allocations: 8.06 MB / 367 MB, free: 5.926 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008767/0.05718, allocations: 2.893 MB / 369.9 MB, free: 3.02 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003666/0.06084, allocations: 1.856 MB / 371.7 MB, free: 1.168 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01/0.07084, allocations: 10.44 MB / 382.2 MB, free: 6.688 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01467/0.08551, allocations: 13.9 MB / 396.1 MB, free: 8.645 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009421/0.09493, allocations: 8.116 MB / 404.2 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007209/0.1021, allocations: 5.259 MB / 409.4 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00285/0.105, allocations: 1.539 MB / 411 MB, free: 9.703 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003258/0.1082, allocations: 1.925 MB / 412.9 MB, free: 7.781 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.11, allocations: 3.047 MB / 416 MB, free: 4.727 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004967/0.1149, allocations: 3.91 MB / 419.9 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01729/0.1322, allocations: 20.94 MB / 440.8 MB, free: 11.81 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.1322, allocations: 0 / 440.8 MB, free: 11.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1322, allocations: 0 / 440.8 MB, free: 11.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005607/0.1328, allocations: 0 / 440.8 MB, free: 11.81 MB / 410.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.3215/0.4543, allocations: 11.91 MB / 452.7 MB, free: 102.7 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4543, allocations: 9.094 kB / 452.7 MB, free: 102.7 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01723/0.4715, allocations: 5.604 MB / 458.3 MB, free: 102.2 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008874/0.4804, allocations: 6.381 MB / 464.7 MB, free: 97.48 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.4807, allocations: 0.7039 MB / 465.4 MB, free: 96.79 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.4823, allocations: 0.9253 MB / 466.3 MB, free: 95.87 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.4996, allocations: 15.24 MB / 481.6 MB, free: 80.54 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001405/0.4997, allocations: 19.91 kB / 481.6 MB, free: 80.52 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006067/0.5004, allocations: 399.5 kB / 482 MB, free: 80.14 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002429/0.5006, allocations: 0.5116 MB / 482.5 MB, free: 79.62 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/0.5151, allocations: 13.72 MB / 496.2 MB, free: 65.88 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03925/0.5544, allocations: 41.36 MB / 0.525 GB, free: 24.18 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006932/0.5613, allocations: 7.971 MB / 0.5328 GB, free: 17.45 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002297/0.5636, allocations: 2.789 MB / 0.5355 GB, free: 14.66 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001911/0.5638, allocations: 98.92 kB / 0.5356 GB, free: 14.56 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.5638, allocations: 73.52 kB / 0.5357 GB, free: 14.48 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 4.889e-06/0.5638, allocations: 0 / 0.5357 GB, free: 14.48 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.01666/0.5805, allocations: 14.7 MB / 0.55 GB, free: 15.89 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.5805, allocations: 90.48 kB / 0.5501 GB, free: 15.79 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003859/0.5844, allocations: 3.559 MB / 0.5536 GB, free: 12.22 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.5846, allocations: 89.7 kB / 0.5537 GB, free: 12.13 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001793/0.5864, allocations: 4.17 MB / 0.5577 GB, free: 7.949 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001101/0.5875, allocations: 1.393 MB / 0.5591 GB, free: 6.578 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/0.5886, allocations: 1.164 MB / 0.5602 GB, free: 5.402 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 7.329e-05/0.5886, allocations: 301.1 kB / 0.5605 GB, free: 5.105 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002555/0.5912, allocations: 2.596 MB / 0.563 GB, free: 2.5 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003857/0.595, allocations: 5.104 MB / 0.568 GB, free: 12.21 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007032/0.6021, allocations: 8.344 MB / 0.5762 GB, free: 2.684 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-05/0.6021, allocations: 24 kB / 0.5762 GB, free: 2.66 MB / 442.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.009412/0.6115, allocations: 8.634 MB / 0.5846 GB, free: 9.992 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.313e-05/0.6116, allocations: 40 kB / 0.5847 GB, free: 9.953 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.858e-05/0.6116, allocations: 80 kB / 0.5848 GB, free: 9.875 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/0.6129, allocations: 0.8395 MB / 0.5856 GB, free: 9.035 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002307/0.6152, allocations: 1.369 MB / 0.5869 GB, free: 7.664 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006914/0.6221, allocations: 7.36 MB / 0.5941 GB, free: 208 kB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002429/0.6246, allocations: 321.9 kB / 0.5944 GB, free: 15.89 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002944/0.6249, allocations: 308 kB / 0.5947 GB, free: 15.59 MB / 474.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.005077/0.6299, allocations: 3.517 MB / 0.5981 GB, free: 12.05 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006719/0.6306, allocations: 405.4 kB / 0.5985 GB, free: 11.66 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006469/0.6371, allocations: 5.957 MB / 0.6043 GB, free: 5.664 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/0.6371, allocations: 40 kB / 0.6044 GB, free: 5.625 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.6371, allocations: 8 kB / 0.6044 GB, free: 5.617 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/0.6371, allocations: 19.92 kB / 0.6044 GB, free: 5.598 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01545/0.6526, allocations: 13.02 MB / 0.6171 GB, free: 8.535 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.6526, allocations: 4 kB / 0.6171 GB, free: 8.531 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/0.654, allocations: 0.6943 MB / 0.6178 GB, free: 7.836 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.6552, allocations: 0.6942 MB / 0.6185 GB, free: 7.141 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/0.6553, allocations: 91.97 kB / 0.6186 GB, free: 7.051 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005937/0.6612, allocations: 6.384 MB / 0.6248 GB, free: 0.5586 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.6613, allocations: 7.938 kB / 0.6248 GB, free: 0.5508 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1849/0.8462, allocations: 8.716 MB / 0.6333 GB, free: 160.6 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.8476, allocations: 0.8311 MB / 0.6341 GB, free: 160.4 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002658/0.8478, allocations: 75.66 kB / 0.6342 GB, free: 160.4 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008941/0.8487, allocations: 186.4 kB / 0.6344 GB, free: 160.3 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003133/0.849, allocations: 284.3 kB / 0.6346 GB, free: 160.3 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.8492, allocations: 117.1 kB / 0.6348 GB, free: 160.2 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002031/0.8512, allocations: 2.278 MB / 0.637 GB, free: 159.4 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.8512, allocations: 3.906 kB / 0.637 GB, free: 159.4 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.003326/0.8545, allocations: 1.549 MB / 0.6385 GB, free: 159.2 MB / 490.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.000401/0.8549, allocations: 271 kB / 0.6388 GB, free: 159.1 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.005709/0.8607, allocations: 6.273 MB / 0.6449 GB, free: 156.7 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.8607, allocations: 3.938 kB / 0.6449 GB, free: 156.7 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.8629, allocations: 2.725 MB / 0.6476 GB, free: 155.7 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.8651, allocations: 0.8947 MB / 0.6484 GB, free: 155.4 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.8807, allocations: 15.66 MB / 0.6637 GB, free: 141 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003076/0.8837, allocations: 5.346 MB / 0.6689 GB, free: 137 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.8849, allocations: 396.8 kB / 0.6693 GB, free: 136.6 MB / 490.8 MB Notification: Performance of SimCode: time 1.663e-06/0.8849, allocations: 0 / 0.6693 GB, free: 136.6 MB / 490.8 MB Notification: Performance of Templates: time 0.3143/1.199, allocations: 155.1 MB / 0.8207 GB, free: 167.3 MB / 0.4949 GB " [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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.584938771091402]