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.001275/0.001275, allocations: 103.9 kB / 18.39 MB, free: 4.66 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.00105/0.00105, allocations: 186.4 kB / 19.33 MB, free: 3.738 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.277/1.277, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.00118/0.00118, allocations: 51.94 kB / 329.2 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08276, allocations: 46.62 MB / 375.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2135/0.2963, allocations: 29.2 MB / 405.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02178/0.3181, allocations: 8.534 MB / 413.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008777/0.327, allocations: 182.6 kB / 413.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01894/0.346, allocations: 8.194 MB / 422 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01334/0.3593, allocations: 3.039 MB / 425 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006719/0.3661, allocations: 1.901 MB / 426.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01608/0.3822, allocations: 10.5 MB / 437.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02917/0.4114, allocations: 21.46 MB / 458.9 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008801/0.4202, allocations: 5.618 MB / 464.5 MB, free: 6.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01061/0.4309, allocations: 6.365 MB / 470.8 MB, free: 392 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004309/0.4352, allocations: 1.582 MB / 472.4 MB, free: 14.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005782/0.441, allocations: 1.933 MB / 474.4 MB, free: 12.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003909/0.445, allocations: 3.187 MB / 477.6 MB, free: 9.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01201/0.457, allocations: 6.124 MB / 483.7 MB, free: 3.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0267/0.4837, allocations: 21.2 MB / 0.493 GB, free: 14.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.4838, allocations: 0 / 0.493 GB, free: 14.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4838, allocations: 0 / 0.493 GB, free: 14.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006496/0.4844, allocations: 0 / 0.493 GB, free: 14.27 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.0387/0.5232, allocations: 12.44 MB / 0.5052 GB, free: 1.727 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.5232, allocations: 11.97 kB / 0.5052 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04562/0.5688, allocations: 8.606 MB / 0.5136 GB, free: 9.086 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01463/0.5835, allocations: 5.892 MB / 0.5194 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009067/0.5845, allocations: 0.7464 MB / 0.5201 GB, free: 2.383 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004436/0.5889, allocations: 0.9725 MB / 0.521 GB, free: 1.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04554/0.6345, allocations: 16.56 MB / 0.5372 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003662/0.6349, allocations: 23.8 kB / 0.5372 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003604/0.6385, allocations: 412 kB / 0.5376 GB, free: 340 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006732/0.6392, allocations: 0.6068 MB / 0.5382 GB, free: 15.72 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4052/1.044, allocations: 15.97 MB / 0.5538 GB, free: 134.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08498/1.129, allocations: 51.58 MB / 0.6042 GB, free: 103.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02286/1.152, allocations: 52.26 MB / 0.6552 GB, free: 49.04 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004784/1.157, allocations: 3.473 MB / 0.6586 GB, free: 47.26 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/1.171, allocations: 9.381 MB / 0.6678 GB, free: 38.92 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.767e-05/1.171, allocations: 72.47 kB / 0.6678 GB, free: 38.84 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.661e-06/1.171, allocations: 0 / 0.6678 GB, free: 38.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.0222/1.193, allocations: 12.93 MB / 0.6805 GB, free: 25.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/1.193, allocations: 81.59 kB / 0.6806 GB, free: 25.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/1.198, allocations: 4.068 MB / 0.6845 GB, free: 21.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005291/1.199, allocations: 73.7 kB / 0.6846 GB, free: 21.53 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001821/1.2, allocations: 4.627 MB / 0.6891 GB, free: 16.88 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008696/1.201, allocations: 0.9919 MB / 0.6901 GB, free: 15.89 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/1.203, allocations: 1.241 MB / 0.6913 GB, free: 14.64 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.448e-05/1.203, allocations: 301.1 kB / 0.6916 GB, free: 14.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002752/1.206, allocations: 2.448 MB / 0.694 GB, free: 11.89 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003734/1.209, allocations: 5.599 MB / 0.6994 GB, free: 4.754 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00902/1.218, allocations: 8.694 MB / 0.7079 GB, free: 10.49 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.199e-05/1.218, allocations: 32 kB / 0.708 GB, free: 10.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01574/1.234, allocations: 8.754 MB / 0.7165 GB, free: 1.648 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.752e-05/1.234, allocations: 55.94 kB / 0.7166 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/1.235, allocations: 112 kB / 0.7167 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002258/1.237, allocations: 0.8693 MB / 0.7175 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004473/1.241, allocations: 1.392 MB / 0.7189 GB, free: 15.22 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/1.252, allocations: 7.568 MB / 0.7263 GB, free: 7.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004409/1.256, allocations: 355.3 kB / 0.7266 GB, free: 7.152 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009991/1.257, allocations: 348 kB / 0.7269 GB, free: 6.812 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.006702/1.264, allocations: 3.677 MB / 0.7305 GB, free: 3.121 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/1.265, allocations: 410.9 kB / 0.7309 GB, free: 2.715 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008718/1.274, allocations: 5.074 MB / 0.7359 GB, free: 13.58 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-05/1.274, allocations: 32 kB / 0.7359 GB, free: 13.55 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/1.274, allocations: 11.94 kB / 0.7359 GB, free: 13.54 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.981e-05/1.274, allocations: 15.94 kB / 0.7359 GB, free: 13.52 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0211/1.295, allocations: 12.21 MB / 0.7479 GB, free: 1.23 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/1.295, allocations: 4 kB / 0.7479 GB, free: 1.227 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0022/1.297, allocations: 0.5188 MB / 0.7484 GB, free: 0.707 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2187/1.516, allocations: 0.707 MB / 0.7491 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006406/1.517, allocations: 60.8 kB / 0.7491 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009371/1.526, allocations: 6.703 MB / 0.7557 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/1.526, allocations: 5.531 kB / 0.7557 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01156/1.538, allocations: 7.346 MB / 0.7628 GB, free: 168.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002114/1.54, allocations: 0.8 MB / 0.7636 GB, free: 168 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008509/1.541, allocations: 55.52 kB / 0.7637 GB, free: 168 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001926/1.542, allocations: 169.2 kB / 0.7638 GB, free: 167.9 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005024/1.543, allocations: 201.2 kB / 0.764 GB, free: 167.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/1.543, allocations: 92.31 kB / 0.7641 GB, free: 167.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005112/1.548, allocations: 2.676 MB / 0.7667 GB, free: 166.9 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.51e-07/1.548, allocations: 0 / 0.7667 GB, free: 166.9 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007686/1.556, allocations: 1.547 MB / 0.7682 GB, free: 166.8 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.0008517/1.557, allocations: 226.2 kB / 0.7685 GB, free: 166.6 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009869/1.567, allocations: 6.132 MB / 0.7744 GB, free: 164.3 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/1.567, allocations: 2.609 kB / 0.7745 GB, free: 164.3 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003879/1.571, allocations: 2.479 MB / 0.7769 GB, free: 163.2 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004415/1.575, allocations: 0.9574 MB / 0.7778 GB, free: 162.9 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/1.601, allocations: 15.84 MB / 0.7933 GB, free: 154.6 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006113/1.607, allocations: 6.016 MB / 0.7991 GB, free: 150 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/1.608, allocations: 389 kB / 0.7995 GB, free: 149.6 MB / 0.5138 GB Notification: Performance of SimCode: time 9.72e-07/1.608, allocations: 0 / 0.7995 GB, free: 149.6 MB / 0.5138 GB Notification: Performance of Templates: time 0.3631/1.971, allocations: 157.1 MB / 0.9529 GB, free: 164.9 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/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