Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001312/0.001312, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001515/0.001515, allocations: 165.6 kB / 25.69 MB, free: 8.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.869/0.869, allocations: 158.6 MB / 187.6 MB, free: 2.773 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 251.6 MB, free: 7.164 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.248e-05/2.412e-05, allocations: 2.312 kB / 251.6 MB, free: 7.16 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02167/0.02169, allocations: 27.43 MB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01823/0.03992, allocations: 8.872 MB / 287.9 MB, free: 2.703 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004924/0.04484, allocations: 214.9 kB / 288.1 MB, free: 2.492 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01144/0.05628, allocations: 8.675 MB / 296.8 MB, free: 9.777 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009653/0.06594, allocations: 3.134 MB / 299.9 MB, free: 6.625 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004849/0.07079, allocations: 1.925 MB / 301.9 MB, free: 4.695 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.08285, allocations: 10.93 MB / 312.8 MB, free: 9.723 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02146/0.1043, allocations: 14.46 MB / 327.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01338/0.1177, allocations: 8.608 MB / 335.9 MB, free: 2.457 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009579/0.1273, allocations: 6.304 MB / 342.2 MB, free: 12.14 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004217/0.1315, allocations: 1.578 MB / 343.7 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005068/0.1366, allocations: 1.952 MB / 345.7 MB, free: 8.605 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0042/0.1408, allocations: 3.296 MB / 349 MB, free: 5.301 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007833/0.1486, allocations: 4.136 MB / 353.1 MB, free: 1.156 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1426/0.2912, allocations: 10.32 MB / 363.4 MB, free: 45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.2912, allocations: 0 / 363.4 MB, free: 45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2912, allocations: 0 / 363.4 MB, free: 45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005687/0.2918, allocations: 3.875 kB / 363.5 MB, free: 45 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02343/0.3152, allocations: 12.03 MB / 375.5 MB, free: 41.55 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3153, allocations: 10.34 kB / 375.5 MB, free: 41.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02817/0.3434, allocations: 8.191 MB / 383.7 MB, free: 41.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008819/0.3523, allocations: 2.946 MB / 386.6 MB, free: 40.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007259/0.353, allocations: 0.741 MB / 387.4 MB, free: 40.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004038/0.357, allocations: 0.9817 MB / 388.3 MB, free: 40.47 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/0.3809, allocations: 8.276 MB / 396.6 MB, free: 36.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003128/0.3812, allocations: 19.03 kB / 396.6 MB, free: 36.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002202/0.3834, allocations: 416.7 kB / 397 MB, free: 35.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003696/0.3838, allocations: 0.6028 MB / 397.7 MB, free: 35.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01185/0.3956, allocations: 4.43 MB / 402.1 MB, free: 30.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04715/0.4428, allocations: 31.04 MB / 433.1 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009045/0.4518, allocations: 7.025 MB / 440.2 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.4536, allocations: 1.177 MB / 441.3 MB, free: 8.742 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008241/0.4618, allocations: 4.379 MB / 445.7 MB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.4619, allocations: 64.69 kB / 445.8 MB, free: 4.469 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 3.888e-06/0.4619, allocations: 0 / 445.8 MB, free: 4.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=278): time 0.01093/0.4728, allocations: 5.782 MB / 451.6 MB, free: 14.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.4728, allocations: 85.59 kB / 451.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.4758, allocations: 2.852 MB / 454.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002052/0.476, allocations: 73.7 kB / 454.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001813/0.4778, allocations: 4.457 MB / 459 MB, free: 7.941 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009603/0.4788, allocations: 1.026 MB / 460 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001139/0.4799, allocations: 1.141 MB / 461.2 MB, free: 5.938 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.48, allocations: 301.1 kB / 461.5 MB, free: 5.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008962/0.4809, allocations: 0.5506 MB / 462 MB, free: 5.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002353/0.4832, allocations: 3.761 MB / 465.8 MB, free: 16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004693/0.4879, allocations: 5.152 MB / 470.9 MB, free: 9.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.187e-05/0.488, allocations: 32 kB / 471 MB, free: 9.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.006095/0.4941, allocations: 4.222 MB / 475.2 MB, free: 6.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.601e-05/0.4942, allocations: 52 kB / 475.2 MB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/0.4943, allocations: 116.1 kB / 475.4 MB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001552/0.4958, allocations: 0.7516 MB / 476.1 MB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002683/0.4985, allocations: 1.363 MB / 477.5 MB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00431/0.5028, allocations: 3.719 MB / 481.2 MB, free: 480 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/0.5056, allocations: 267.7 kB / 481.5 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005128/0.5061, allocations: 288 kB / 481.7 MB, free: 15.92 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001958/0.508, allocations: 0.5593 MB / 482.3 MB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006771/0.5087, allocations: 331.5 kB / 482.6 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003069/0.5118, allocations: 2.176 MB / 484.8 MB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/0.5118, allocations: 32 kB / 484.8 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.5118, allocations: 8 kB / 484.8 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/0.5118, allocations: 15.94 kB / 484.8 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008804/0.5206, allocations: 4.538 MB / 489.4 MB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.5206, allocations: 4 kB / 489.4 MB, free: 8.887 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.5218, allocations: 466.1 kB / 489.8 MB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001326/0.5231, allocations: 0.5922 MB / 490.4 MB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001996/0.5233, allocations: 59.98 kB / 490.5 MB, free: 7.809 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003547/0.5269, allocations: 3.333 MB / 493.8 MB, free: 4.469 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.5269, allocations: 6.078 kB / 493.8 MB, free: 4.465 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004005/0.5309, allocations: 2.537 MB / 496.4 MB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.5321, allocations: 449.2 kB / 496.8 MB, free: 1.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00034/0.5324, allocations: 55.98 kB / 496.9 MB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000781/0.5332, allocations: 80.02 kB / 496.9 MB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003348/0.5335, allocations: 209.5 kB / 497.1 MB, free: 1.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.5337, allocations: 55.98 kB / 497.2 MB, free: 1.039 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.1301/0.6638, allocations: 1.25 MB / 498.5 MB, free: 106.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6638, allocations: 0 / 498.5 MB, free: 106.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005978/0.6698, allocations: 1.546 MB / 500 MB, free: 106.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004775/0.6703, allocations: 204.7 kB / 0.4885 GB, free: 106.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005084/0.6753, allocations: 3.025 MB / 0.4914 GB, free: 105.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001946/0.6755, allocations: 71.22 kB / 0.4915 GB, free: 105.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.6774, allocations: 1.231 MB / 0.4927 GB, free: 105.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/0.6804, allocations: 0.8899 MB / 0.4936 GB, free: 105.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/0.7022, allocations: 13.83 MB / 0.5071 GB, free: 100.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002083/0.7043, allocations: 1.846 MB / 0.5089 GB, free: 100.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002012/0.7063, allocations: 0.6966 MB / 0.5096 GB, free: 99.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/0.7077, allocations: 0.8568 MB / 0.5104 GB, free: 99.85 MB / 394.7 MB Notification: Performance of SimCode: time 1.243e-06/0.7077, allocations: 0 / 0.5104 GB, free: 99.85 MB / 394.7 MB Notification: Performance of Templates: time 0.07323/0.781, allocations: 55.28 MB / 0.5644 GB, free: 52.32 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.402919726911932]