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.001155/0.001155, allocations: 109.4 kB / 17.73 MB, free: 5.332 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.001046/0.001047, allocations: 184.1 kB / 18.66 MB, free: 4.41 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.32/1.32, allocations: 205.1 MB / 224.5 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.001794/0.001794, allocations: 44.36 kB / 328.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1097, allocations: 46.62 MB / 375.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.21/0.3198, allocations: 29.21 MB / 404.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01838/0.3382, allocations: 8.53 MB / 412.9 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005799/0.344, allocations: 182.6 kB / 413.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01886/0.363, allocations: 8.209 MB / 421.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.3738, allocations: 3.026 MB / 424.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008392/0.3822, allocations: 1.894 MB / 426.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01479/0.397, allocations: 10.51 MB / 436.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03485/0.4319, allocations: 21.46 MB / 458.2 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009231/0.4412, allocations: 5.614 MB / 463.8 MB, free: 6.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01148/0.4527, allocations: 6.365 MB / 470.2 MB, free: 412 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004888/0.4576, allocations: 1.582 MB / 471.8 MB, free: 14.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006431/0.4641, allocations: 1.933 MB / 473.7 MB, free: 12.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004182/0.4683, allocations: 3.187 MB / 476.9 MB, free: 9.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01074/0.4791, allocations: 6.124 MB / 483 MB, free: 3.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02567/0.5048, allocations: 21.2 MB / 0.4924 GB, free: 14.29 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.5048, allocations: 0 / 0.4924 GB, free: 14.29 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.5048, allocations: 0 / 0.4924 GB, free: 14.29 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005613/0.5054, allocations: 0 / 0.4924 GB, free: 14.29 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.03888/0.5443, allocations: 12.45 MB / 0.5045 GB, free: 1.742 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.5443, allocations: 8.031 kB / 0.5045 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05023/0.5946, allocations: 8.606 MB / 0.5129 GB, free: 9.105 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01414/0.6088, allocations: 5.896 MB / 0.5187 GB, free: 3.148 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007581/0.6096, allocations: 0.7386 MB / 0.5194 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00387/0.6134, allocations: 0.9803 MB / 0.5204 GB, free: 1.426 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04149/0.6549, allocations: 16.56 MB / 0.5366 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004831/0.6555, allocations: 23.75 kB / 0.5366 GB, free: 0.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003191/0.6587, allocations: 415.9 kB / 0.537 GB, free: 352 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006975/0.6594, allocations: 0.6068 MB / 0.5376 GB, free: 15.73 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3999/1.059, allocations: 15.96 MB / 0.5532 GB, free: 134.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08966/1.149, allocations: 51.58 MB / 0.6035 GB, free: 103.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02657/1.176, allocations: 52.28 MB / 0.6546 GB, free: 49.06 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005873/1.182, allocations: 3.467 MB / 0.658 GB, free: 47.29 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01617/1.198, allocations: 9.38 MB / 0.6671 GB, free: 38.97 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/1.198, allocations: 64.62 kB / 0.6672 GB, free: 38.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 4.178e-06/1.198, allocations: 0 / 0.6672 GB, free: 38.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02599/1.224, allocations: 12.94 MB / 0.6798 GB, free: 25.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/1.224, allocations: 77.59 kB / 0.6799 GB, free: 25.75 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007147/1.231, allocations: 4.068 MB / 0.6839 GB, free: 21.66 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003243/1.231, allocations: 69.7 kB / 0.6839 GB, free: 21.58 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002218/1.234, allocations: 4.63 MB / 0.6885 GB, free: 16.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008265/1.234, allocations: 0.9933 MB / 0.6894 GB, free: 15.94 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002133/1.237, allocations: 1.233 MB / 0.6906 GB, free: 14.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.821e-05/1.237, allocations: 305.1 kB / 0.6909 GB, free: 14.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003297/1.24, allocations: 2.448 MB / 0.6933 GB, free: 11.95 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004408/1.244, allocations: 5.596 MB / 0.6988 GB, free: 4.812 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009232/1.254, allocations: 8.694 MB / 0.7073 GB, free: 10.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.357e-05/1.254, allocations: 36 kB / 0.7073 GB, free: 10.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01413/1.268, allocations: 8.753 MB / 0.7159 GB, free: 1.707 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.178e-05/1.268, allocations: 59.88 kB / 0.7159 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001661/1.268, allocations: 108 kB / 0.716 GB, free: 1.543 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002386/1.27, allocations: 0.8681 MB / 0.7169 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004371/1.275, allocations: 1.4 MB / 0.7182 GB, free: 15.27 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/1.286, allocations: 7.568 MB / 0.7256 GB, free: 7.551 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004496/1.29, allocations: 355.3 kB / 0.726 GB, free: 7.203 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009341/1.291, allocations: 352 kB / 0.7263 GB, free: 6.859 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.006789/1.298, allocations: 3.673 MB / 0.7299 GB, free: 3.172 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/1.299, allocations: 411 kB / 0.7303 GB, free: 2.766 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/1.309, allocations: 5.066 MB / 0.7352 GB, free: 13.64 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-05/1.309, allocations: 35.92 kB / 0.7353 GB, free: 13.61 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/1.309, allocations: 8 kB / 0.7353 GB, free: 13.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.272e-05/1.309, allocations: 19.94 kB / 0.7353 GB, free: 13.58 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02266/1.332, allocations: 12.21 MB / 0.7472 GB, free: 1.277 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/1.332, allocations: 4.062 kB / 0.7472 GB, free: 1.273 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002245/1.334, allocations: 0.5188 MB / 0.7477 GB, free: 0.7539 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002117/1.336, allocations: 0.7031 MB / 0.7484 GB, free: 48 kB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.1958/1.532, allocations: 66.31 kB / 0.7485 GB, free: 174.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009593/1.542, allocations: 6.707 MB / 0.755 GB, free: 172.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/1.542, allocations: 5.719 kB / 0.755 GB, free: 172.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.011/1.553, allocations: 7.339 MB / 0.7622 GB, free: 169.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/1.554, allocations: 0.8042 MB / 0.763 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005017/1.555, allocations: 55.86 kB / 0.763 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/1.557, allocations: 165.6 kB / 0.7632 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004786/1.557, allocations: 207.5 kB / 0.7634 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001755/1.557, allocations: 87.19 kB / 0.7635 GB, free: 168.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003916/1.561, allocations: 2.675 MB / 0.7661 GB, free: 167.8 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.8e-07/1.561, allocations: 0 / 0.7661 GB, free: 167.8 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005184/1.567, allocations: 1.548 MB / 0.7676 GB, free: 167.6 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.0004499/1.567, allocations: 226.3 kB / 0.7678 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009452/1.576, allocations: 6.132 MB / 0.7738 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.576, allocations: 0.9375 kB / 0.7738 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003275/1.58, allocations: 2.481 MB / 0.7762 GB, free: 164.1 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004276/1.584, allocations: 0.953 MB / 0.7771 GB, free: 163.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02374/1.608, 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.006453/1.614, allocations: 6.2 MB / 0.7989 GB, free: 150.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004973/1.619, allocations: 1.951 MB / 0.8008 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/1.62, allocations: 326.8 kB / 0.8011 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of SimCode: time 8.62e-07/1.62, allocations: 0.7656 kB / 0.8011 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of Templates: time 0.08782/1.708, allocations: 55.87 MB / 0.8557 GB, free: 94.25 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