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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 105.4 kB / 18.35 MB, free: 4.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 188.1 kB / 19.29 MB, free: 3.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 51.91 kB / 282.1 MB, free: 2.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07459/0.07581, allocations: 46.63 MB / 328.8 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02882/0.1047, allocations: 29.2 MB / 358 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01555/0.1202, allocations: 8.545 MB / 366.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00395/0.1242, allocations: 183.4 kB / 366.7 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01715/0.1414, allocations: 8.194 MB / 374.9 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008794/0.1502, allocations: 3.039 MB / 377.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004857/0.1551, allocations: 1.894 MB / 379.8 MB, free: 460 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1588/0.3139, allocations: 10.49 MB / 390.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02858/0.3426, allocations: 21.46 MB / 411.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009787/0.3524, allocations: 5.811 MB / 417.6 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01096/0.3634, allocations: 6.485 MB / 424.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004333/0.3678, allocations: 1.578 MB / 425.6 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006711/0.3745, allocations: 1.937 MB / 427.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005349/0.3799, allocations: 3.189 MB / 430.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01213/0.392, allocations: 6.121 MB / 436.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02289/0.4149, allocations: 21.19 MB / 458.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.415, allocations: 4 kB / 458.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.415, allocations: 0 / 458.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000507/0.4155, allocations: 0 / 458.1 MB, free: 10.66 MB / 366.1 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.03159/0.4471, allocations: 12.45 MB / 470.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.4472, allocations: 8.031 kB / 470.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0462/0.4934, allocations: 8.598 MB / 479.1 MB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.5059, allocations: 5.903 MB / 485 MB, free: 56 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007025/0.5066, allocations: 0.7451 MB / 485.8 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003594/0.5102, allocations: 0.9709 MB / 486.7 MB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03148/0.5417, allocations: 16.57 MB / 0.4915 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002041/0.542, allocations: 27.8 kB / 0.4915 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001104/0.5431, allocations: 413.8 kB / 0.4919 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005283/0.5436, allocations: 0.6028 MB / 0.4925 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02657/0.5702, allocations: 15.97 MB / 0.5081 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.331/0.9012, allocations: 51.59 MB / 0.5585 GB, free: 120.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02194/0.9232, allocations: 52.27 MB / 0.6095 GB, free: 70.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005388/0.9286, allocations: 3.452 MB / 0.6129 GB, free: 69.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01384/0.9425, allocations: 9.404 MB / 0.6221 GB, free: 64.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.9425, allocations: 60.31 kB / 0.6222 GB, free: 64.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.228e-06/0.9425, allocations: 0 / 0.6222 GB, free: 64.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02149/0.964, allocations: 12.93 MB / 0.6348 GB, free: 57.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.9641, allocations: 83.69 kB / 0.6349 GB, free: 57.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004531/0.9686, allocations: 4.065 MB / 0.6388 GB, free: 55.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001966/0.9688, allocations: 71.98 kB / 0.6389 GB, free: 54.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001707/0.9706, allocations: 4.63 MB / 0.6434 GB, free: 50.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005338/0.9711, allocations: 0.9878 MB / 0.6444 GB, free: 50.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.9724, allocations: 1.234 MB / 0.6456 GB, free: 49.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.455e-05/0.9725, allocations: 307.6 kB / 0.6459 GB, free: 49.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002706/0.9752, allocations: 2.45 MB / 0.6483 GB, free: 47.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003659/0.9789, allocations: 5.601 MB / 0.6537 GB, free: 40.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006946/0.9858, allocations: 8.69 MB / 0.6622 GB, free: 30.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-05/0.9859, allocations: 35.81 kB / 0.6623 GB, free: 30.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01112/0.997, allocations: 8.76 MB / 0.6708 GB, free: 21.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.9971, allocations: 52 kB / 0.6709 GB, free: 21.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.55e-05/0.9972, allocations: 108 kB / 0.671 GB, free: 21.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001969/0.9992, allocations: 0.8603 MB / 0.6718 GB, free: 20.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003814/1.003, allocations: 1.404 MB / 0.6732 GB, free: 19.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008215/1.011, allocations: 7.568 MB / 0.6806 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003754/1.015, allocations: 355.3 kB / 0.6809 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000474/1.015, allocations: 348 kB / 0.6812 GB, free: 10.95 MB / 446.1 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.004183/1.02, allocations: 3.68 MB / 0.6848 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007293/1.02, allocations: 403 kB / 0.6852 GB, free: 6.852 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007136/1.028, allocations: 5.079 MB / 0.6902 GB, free: 1.719 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/1.028, allocations: 28 kB / 0.6902 GB, free: 1.691 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/1.028, allocations: 8 kB / 0.6902 GB, free: 1.684 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.32e-05/1.028, allocations: 23.88 kB / 0.6902 GB, free: 1.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01926/1.047, allocations: 12.21 MB / 0.7022 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/1.047, allocations: 8.062 kB / 0.7022 GB, free: 5.367 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002213/1.049, allocations: 0.5187 MB / 0.7027 GB, free: 4.848 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001968/1.051, allocations: 0.7031 MB / 0.7034 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/1.051, allocations: 71.92 kB / 0.7034 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1557/1.207, allocations: 6.686 MB / 0.71 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.207, allocations: 7.656 kB / 0.71 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/1.217, allocations: 7.337 MB / 0.7171 GB, free: 146.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/1.219, allocations: 0.8066 MB / 0.7179 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000464/1.22, allocations: 58 kB / 0.718 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001658/1.222, allocations: 167.4 kB / 0.7181 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004299/1.222, allocations: 205.6 kB / 0.7183 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002046/1.222, allocations: 88.11 kB / 0.7184 GB, free: 145.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003496/1.226, allocations: 2.678 MB / 0.721 GB, free: 144.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.226, allocations: 3.828 kB / 0.721 GB, free: 144.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004914/1.231, allocations: 1.55 MB / 0.7226 GB, free: 144.7 MB / 462.1 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.0004247/1.231, allocations: 226.2 kB / 0.7228 GB, free: 144.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007516/1.239, allocations: 6.143 MB / 0.7288 GB, free: 142.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/1.239, allocations: 0 / 0.7288 GB, free: 142.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003023/1.242, allocations: 2.472 MB / 0.7312 GB, free: 141.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003671/1.245, allocations: 0.9527 MB / 0.7321 GB, free: 140.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/1.266, allocations: 16.1 MB / 0.7478 GB, free: 133.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004854/1.271, allocations: 6.202 MB / 0.7539 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004127/1.275, allocations: 1.943 MB / 0.7558 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007953/1.276, allocations: 330.6 kB / 0.7561 GB, free: 129 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/1.276, allocations: 0 / 0.7561 GB, free: 129 MB / 462.1 MB Notification: Performance of Templates: time 0.0774/1.353, allocations: 53.55 MB / 0.8084 GB, free: 76.56 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches