Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009159/0.0009159, allocations: 181.1 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.4 MB / 223.6 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007196/0.0007196, allocations: 82.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 8 kB / 328.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.222, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3107/0.5328, allocations: 136.4 MB / 0.5002 GB, free: 110.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003555/0.5332, allocations: 109 kB / 0.5003 GB, free: 110.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9898/1.523, allocations: 329.5 MB / 0.822 GB, free: 33.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.523, allocations: 0 / 0.822 GB, free: 33.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000496/1.524, allocations: 223.3 kB / 0.8223 GB, free: 33.55 MB / 426.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.02944/1.553, allocations: 9.067 MB / 0.8311 GB, free: 30.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/1.553, allocations: 13.98 kB / 0.8311 GB, free: 30.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03032/1.583, allocations: 5.877 MB / 0.8369 GB, free: 30.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01808/1.602, allocations: 6.864 MB / 0.8436 GB, free: 29.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001511/1.603, allocations: 0.7296 MB / 0.8443 GB, free: 29.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004688/1.608, allocations: 0.9323 MB / 0.8452 GB, free: 29.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04266/1.65, allocations: 17.08 MB / 0.8619 GB, free: 27.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005371/1.651, allocations: 22.97 kB / 0.8619 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003844/1.655, allocations: 418.4 kB / 0.8623 GB, free: 27.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008878/1.656, allocations: 0.7118 MB / 0.863 GB, free: 27.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03346/1.689, allocations: 15.9 MB / 0.8785 GB, free: 27.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/1.792, allocations: 52.83 MB / 0.9301 GB, free: 3.141 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03908/1.831, allocations: 41.74 MB / 0.9709 GB, free: 9.195 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01503/1.846, allocations: 7.08 MB / 0.9778 GB, free: 2.918 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2746/2.121, allocations: 21.72 MB / 0.999 GB, free: 79.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.777e-05/2.121, allocations: 92.64 kB / 0.9991 GB, free: 79.15 MB / 474.7 MB Notification: Performance of pre-optimization done (n=688): time 8.736e-06/2.121, allocations: 1.438 kB / 0.9991 GB, free: 79.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=696): time 0.08473/2.205, allocations: 37.99 MB / 1.036 GB, free: 76.72 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/2.205, allocations: 116 kB / 1.036 GB, free: 76.65 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003606/2.209, allocations: 2.783 MB / 1.039 GB, free: 76.39 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00107/2.21, allocations: 115.8 kB / 1.039 GB, free: 76.36 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/2.212, allocations: 3.632 MB / 1.043 GB, free: 74.65 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002236/2.214, allocations: 2.3 MB / 1.045 GB, free: 73.16 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000491/2.215, allocations: 124.9 kB / 1.045 GB, free: 73.16 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000408/2.215, allocations: 0.6153 MB / 1.046 GB, free: 72.83 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005858/2.221, allocations: 4.503 MB / 1.05 GB, free: 72.57 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006933/2.228, allocations: 6.335 MB / 1.056 GB, free: 68.56 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01625/2.244, allocations: 11.58 MB / 1.068 GB, free: 62.02 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.913e-05/2.244, allocations: 16.59 kB / 1.068 GB, free: 62.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.0265/2.271, allocations: 13.66 MB / 1.081 GB, free: 56.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.709e-05/2.271, allocations: 29.22 kB / 1.081 GB, free: 56.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/2.271, allocations: 53.88 kB / 1.081 GB, free: 56.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007276/2.278, allocations: 4.006 MB / 1.085 GB, free: 55.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005026/2.283, allocations: 1.221 MB / 1.086 GB, free: 55.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/2.295, allocations: 9.667 MB / 1.095 GB, free: 48.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/2.3, allocations: 356.8 kB / 1.096 GB, free: 47.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001641/2.301, allocations: 316.5 kB / 1.096 GB, free: 47.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * 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 (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.008639/2.31, allocations: 3.609 MB / 1.1 GB, free: 44.47 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002016/2.312, allocations: 445.7 kB / 1.1 GB, free: 44.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02446/2.337, allocations: 12.93 MB / 1.113 GB, free: 32.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000203/2.337, allocations: 185.3 kB / 1.113 GB, free: 32.77 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.178e-05/2.337, allocations: 0 / 1.113 GB, free: 32.77 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001101/2.337, allocations: 27.84 kB / 1.113 GB, free: 32.77 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04856/2.386, allocations: 24.78 MB / 1.137 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-05/2.386, allocations: 4 kB / 1.137 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003935/2.39, allocations: 0.8135 MB / 1.138 GB, free: 11.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007688/2.397, allocations: 3.917 MB / 1.142 GB, free: 8.102 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001466/2.399, allocations: 148.5 kB / 1.142 GB, free: 7.973 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2393/2.638, allocations: 9.539 MB / 1.151 GB, free: 75.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/2.638, allocations: 5.5 kB / 1.151 GB, free: 75.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03259/2.671, allocations: 19.23 MB / 1.17 GB, free: 75.03 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004431/2.675, allocations: 1.479 MB / 1.171 GB, free: 74.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001788/2.677, allocations: 104 kB / 1.172 GB, free: 74.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003722/2.681, allocations: 266.4 kB / 1.172 GB, free: 74.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0016/2.682, allocations: 0.516 MB / 1.172 GB, free: 74.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007396/2.683, allocations: 188.4 kB / 1.172 GB, free: 74.92 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003098/2.686, allocations: 1.856 MB / 1.174 GB, free: 74.78 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.686, allocations: 2.625 kB / 1.174 GB, free: 74.78 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009684/2.696, allocations: 1.721 MB / 1.176 GB, free: 74.78 MB / 474.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 (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002309/2.698, allocations: 0.5899 MB / 1.177 GB, free: 74.67 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02012/2.719, allocations: 11.14 MB / 1.187 GB, free: 74.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/2.719, allocations: 0 / 1.187 GB, free: 74.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01118/2.73, allocations: 5.702 MB / 1.193 GB, free: 74.24 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009121/2.739, allocations: 0.9263 MB / 1.194 GB, free: 74.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03984/2.779, allocations: 23.59 MB / 1.217 GB, free: 66.14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01103/2.79, allocations: 6.186 MB / 1.223 GB, free: 64.44 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002856/2.793, allocations: 384.6 kB / 1.223 GB, free: 64.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/2.793, allocations: 3.281 kB / 1.223 GB, free: 64.4 MB / 474.7 MB Notification: Performance of Templates: time 0.8454/3.638, allocations: 394.7 MB / 1.609 GB, free: 66.82 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches