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.001076/0.001076, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001109/0.001109, allocations: 192 kB / 18.66 MB, free: 4.441 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.308/1.308, allocations: 205.1 MB / 224.5 MB, free: 12.26 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.001189/0.001189, allocations: 51.94 kB / 328.6 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08233/0.08352, allocations: 46.61 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1909/0.2744, allocations: 29.21 MB / 404.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01845/0.2929, allocations: 8.54 MB / 412.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006721/0.2997, allocations: 181 kB / 413.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01888/0.3186, allocations: 8.196 MB / 421.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009813/0.3284, allocations: 3.032 MB / 424.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005205/0.3337, allocations: 1.891 MB / 426.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01315/0.3468, allocations: 10.51 MB / 436.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02909/0.376, allocations: 21.47 MB / 458.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009402/0.3854, allocations: 5.61 MB / 463.8 MB, free: 6.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01316/0.3986, allocations: 6.369 MB / 470.2 MB, free: 440 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006063/0.4047, allocations: 1.582 MB / 471.8 MB, free: 14.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00891/0.4137, allocations: 1.937 MB / 473.7 MB, free: 12.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007156/0.4209, allocations: 3.187 MB / 476.9 MB, free: 9.715 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0172/0.4381, allocations: 6.12 MB / 483 MB, free: 3.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02832/0.4665, allocations: 21.19 MB / 0.4924 GB, free: 14.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4665, allocations: 0 / 0.4924 GB, free: 14.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4666, allocations: 0 / 0.4924 GB, free: 14.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000593/0.4672, allocations: 0 / 0.4924 GB, free: 14.32 MB / 430.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.03692/0.5041, allocations: 12.45 MB / 0.5045 GB, free: 1.773 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.5041, allocations: 8.031 kB / 0.5045 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04906/0.5532, allocations: 8.606 MB / 0.5129 GB, free: 9.137 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/0.5661, allocations: 5.896 MB / 0.5187 GB, free: 3.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006206/0.5667, allocations: 0.7425 MB / 0.5194 GB, free: 2.434 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00403/0.5708, allocations: 0.9764 MB / 0.5204 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0395/0.6103, allocations: 16.56 MB / 0.5366 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000291/0.6106, allocations: 15.81 kB / 0.5366 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002411/0.613, allocations: 415.9 kB / 0.537 GB, free: 388 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006244/0.6137, allocations: 0.6106 MB / 0.5376 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.387/1.001, allocations: 15.96 MB / 0.5532 GB, free: 134.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07816/1.079, allocations: 51.58 MB / 0.6035 GB, free: 103.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02539/1.104, allocations: 52.26 MB / 0.6546 GB, free: 49.05 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004684/1.109, allocations: 3.47 MB / 0.658 GB, free: 47.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01361/1.123, allocations: 9.385 MB / 0.6671 GB, free: 39.02 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/1.123, allocations: 64.62 kB / 0.6672 GB, free: 38.94 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 3.607e-06/1.123, allocations: 0 / 0.6672 GB, free: 38.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02272/1.145, allocations: 12.94 MB / 0.6798 GB, free: 25.89 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/1.145, allocations: 81.59 kB / 0.6799 GB, free: 25.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004573/1.15, allocations: 4.072 MB / 0.6839 GB, free: 21.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002418/1.15, allocations: 69.7 kB / 0.6839 GB, free: 21.62 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/1.152, allocations: 4.627 MB / 0.6885 GB, free: 16.97 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006116/1.153, allocations: 0.9947 MB / 0.6894 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/1.154, allocations: 1.233 MB / 0.6906 GB, free: 14.74 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.636e-05/1.154, allocations: 301.1 kB / 0.6909 GB, free: 14.45 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002826/1.157, allocations: 2.452 MB / 0.6933 GB, free: 11.99 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003819/1.161, allocations: 5.599 MB / 0.6988 GB, free: 4.852 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009014/1.17, allocations: 8.69 MB / 0.7073 GB, free: 10.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.906e-05/1.17, allocations: 32 kB / 0.7073 GB, free: 10.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01497/1.185, allocations: 8.755 MB / 0.7158 GB, free: 1.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.99e-05/1.185, allocations: 55.94 kB / 0.7159 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/1.185, allocations: 112.2 kB / 0.716 GB, free: 1.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002288/1.187, allocations: 0.865 MB / 0.7169 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004469/1.192, allocations: 1.411 MB / 0.7182 GB, free: 15.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/1.202, allocations: 7.555 MB / 0.7256 GB, free: 7.602 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004446/1.207, allocations: 355.2 kB / 0.7259 GB, free: 7.254 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007076/1.207, allocations: 348 kB / 0.7263 GB, free: 6.914 MB / 0.4982 GB 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.005378/1.213, allocations: 3.684 MB / 0.7299 GB, free: 3.215 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008792/1.214, allocations: 414.9 kB / 0.7303 GB, free: 2.805 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008441/1.222, allocations: 5.068 MB / 0.7352 GB, free: 13.68 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.808e-05/1.222, allocations: 32 kB / 0.7353 GB, free: 13.65 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/1.222, allocations: 7.938 kB / 0.7353 GB, free: 13.64 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.549e-05/1.222, allocations: 15.94 kB / 0.7353 GB, free: 13.63 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02045/1.243, allocations: 12.21 MB / 0.7472 GB, free: 1.332 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/1.243, allocations: 0 / 0.7472 GB, free: 1.332 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/1.245, allocations: 0.5231 MB / 0.7477 GB, free: 0.8086 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/1.247, allocations: 0.7031 MB / 0.7484 GB, free: 104 kB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001919/1.247, allocations: 67.98 kB / 0.7485 GB, free: 36 kB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2065/1.454, allocations: 6.706 MB / 0.755 GB, free: 172.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1.454, allocations: 6.094 kB / 0.755 GB, free: 172.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/1.465, allocations: 7.342 MB / 0.7622 GB, free: 169.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001943/1.467, allocations: 0.8024 MB / 0.763 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004825/1.467, allocations: 60.11 kB / 0.763 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/1.469, allocations: 166 kB / 0.7632 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005137/1.47, allocations: 207 kB / 0.7634 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001896/1.47, allocations: 87.95 kB / 0.7635 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004172/1.474, allocations: 2.676 MB / 0.7661 GB, free: 167.8 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.11e-07/1.474, allocations: 0 / 0.7661 GB, free: 167.8 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005891/1.48, allocations: 1.548 MB / 0.7676 GB, free: 167.7 MB / 0.5138 GB 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.0004831/1.48, allocations: 223.1 kB / 0.7678 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008937/1.489, allocations: 6.14 MB / 0.7738 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.489, allocations: 1.281 kB / 0.7738 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003311/1.493, allocations: 2.48 MB / 0.7762 GB, free: 164.2 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004183/1.497, allocations: 0.9481 MB / 0.7772 GB, free: 163.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/1.518, allocations: 16.09 MB / 0.7929 GB, free: 154.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004735/1.522, allocations: 6.2 MB / 0.7989 GB, free: 150.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004251/1.527, allocations: 1.952 MB / 0.8008 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008429/1.527, allocations: 326 kB / 0.8011 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of SimCode: time 6.71e-07/1.528, allocations: 0 / 0.8011 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of Templates: time 0.0827/1.61, allocations: 55.8 MB / 0.8556 GB, free: 94.43 MB / 0.5138 GB 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 -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/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","/var/lib/jenkins/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