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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001349/0.001349, allocations: 183 kB / 18.04 MB, free: 3.781 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.282/1.282, allocations: 205.4 MB / 224.2 MB, free: 9.027 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.0007304/0.0007306, allocations: 81.55 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002855, allocations: 12 kB / 329.5 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1967, allocations: 47.57 MB / 377 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2774/0.4741, allocations: 136.4 MB / 0.5014 GB, free: 111.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.4744, allocations: 102.5 kB / 0.5015 GB, free: 111.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9458/1.42, allocations: 329.5 MB / 0.8233 GB, free: 33.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.814e-06/1.42, allocations: 7.969 kB / 0.8233 GB, free: 33.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005103/1.421, allocations: 216.2 kB / 0.8235 GB, free: 33.68 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.02775/1.449, allocations: 9.071 MB / 0.8324 GB, free: 30.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/1.449, allocations: 8.734 kB / 0.8324 GB, free: 30.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03134/1.48, allocations: 5.884 MB / 0.8381 GB, free: 30.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01634/1.496, allocations: 6.859 MB / 0.8448 GB, free: 29.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00107/1.497, allocations: 0.7223 MB / 0.8455 GB, free: 29.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003714/1.501, allocations: 0.9447 MB / 0.8465 GB, free: 29.17 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.039/1.54, allocations: 17.08 MB / 0.8631 GB, free: 28.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005711/1.541, allocations: 26.25 kB / 0.8632 GB, free: 28.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003788/1.545, allocations: 412.8 kB / 0.8636 GB, free: 28.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009891/1.546, allocations: 0.7089 MB / 0.8643 GB, free: 28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0331/1.579, allocations: 15.9 MB / 0.8798 GB, free: 27.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08555/1.664, allocations: 52.84 MB / 0.9314 GB, free: 3.234 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03681/1.701, allocations: 41.73 MB / 0.9721 GB, free: 9.199 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01154/1.713, allocations: 7.078 MB / 0.979 GB, free: 2.922 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2627/1.976, allocations: 21.88 MB / 1 GB, free: 79.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.594e-05/1.976, allocations: 88.92 kB / 1 GB, free: 79.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=688): time 8.456e-06/1.976, allocations: 5.5 kB / 1.001 GB, free: 79.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=696): time 0.08354/2.059, allocations: 37.98 MB / 1.038 GB, free: 76.85 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/2.059, allocations: 112.9 kB / 1.038 GB, free: 76.78 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003646/2.063, allocations: 2.786 MB / 1.04 GB, free: 76.51 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000948/2.064, allocations: 121.5 kB / 1.041 GB, free: 76.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001782/2.066, allocations: 3.629 MB / 1.044 GB, free: 74.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002508/2.068, allocations: 2.302 MB / 1.046 GB, free: 73.28 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004553/2.069, allocations: 132.5 kB / 1.046 GB, free: 73.28 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004197/2.069, allocations: 0.6049 MB / 1.047 GB, free: 72.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005938/2.075, allocations: 4.508 MB / 1.051 GB, free: 72.86 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006992/2.082, allocations: 6.335 MB / 1.058 GB, free: 68.85 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/2.097, allocations: 11.58 MB / 1.069 GB, free: 62.31 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.567e-05/2.097, allocations: 12.94 kB / 1.069 GB, free: 62.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.02562/2.123, allocations: 13.66 MB / 1.082 GB, free: 56.76 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/2.123, allocations: 27.47 kB / 1.082 GB, free: 56.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/2.123, allocations: 52.44 kB / 1.082 GB, free: 56.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007632/2.131, allocations: 4.004 MB / 1.086 GB, free: 55.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004946/2.136, allocations: 1.226 MB / 1.087 GB, free: 55.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/2.146, allocations: 9.664 MB / 1.097 GB, free: 48.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00471/2.151, allocations: 350.2 kB / 1.097 GB, free: 48.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001419/2.152, allocations: 317.1 kB / 1.098 GB, free: 47.94 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.007952/2.16, allocations: 3.604 MB / 1.101 GB, free: 44.94 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001793/2.162, allocations: 457 kB / 1.102 GB, free: 44.49 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02396/2.186, allocations: 12.92 MB / 1.114 GB, free: 33.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001843/2.186, allocations: 186.3 kB / 1.114 GB, free: 33.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.149e-05/2.186, allocations: 0 / 1.114 GB, free: 33.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.864e-05/2.186, allocations: 29.95 kB / 1.114 GB, free: 33.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04702/2.234, allocations: 24.78 MB / 1.139 GB, free: 12.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.632e-05/2.234, allocations: 10.55 kB / 1.139 GB, free: 12.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004024/2.238, allocations: 0.8067 MB / 1.139 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007542/2.245, allocations: 3.924 MB / 1.143 GB, free: 8.559 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001387/2.247, allocations: 150 kB / 1.143 GB, free: 8.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2626/2.509, allocations: 9.566 MB / 1.153 GB, free: 75.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/2.509, allocations: 7.75 kB / 1.153 GB, free: 75.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03003/2.539, allocations: 19.23 MB / 1.171 GB, free: 75.22 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004122/2.544, allocations: 1.48 MB / 1.173 GB, free: 75.13 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/2.545, allocations: 98.34 kB / 1.173 GB, free: 75.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003469/2.549, allocations: 274.8 kB / 1.173 GB, free: 75.13 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001144/2.55, allocations: 0.508 MB / 1.174 GB, free: 75.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000473/2.55, allocations: 197.3 kB / 1.174 GB, free: 75.12 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003064/2.554, allocations: 1.853 MB / 1.176 GB, free: 74.97 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/2.554, allocations: 0 / 1.176 GB, free: 74.97 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007839/2.561, allocations: 1.722 MB / 1.177 GB, free: 74.97 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.0016/2.563, allocations: 0.5839 MB / 1.178 GB, free: 74.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01801/2.581, allocations: 11.14 MB / 1.189 GB, free: 74.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/2.581, allocations: 0 / 1.189 GB, free: 74.59 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0103/2.591, allocations: 5.704 MB / 1.194 GB, free: 74.44 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01091/2.602, allocations: 0.9315 MB / 1.195 GB, free: 74.43 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04358/2.646, allocations: 23.83 MB / 1.219 GB, free: 66.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01116/2.657, allocations: 6.377 MB / 1.225 GB, free: 64.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007135/2.664, allocations: 1.557 MB / 1.226 GB, free: 64.43 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/2.666, allocations: 336.4 kB / 1.227 GB, free: 64.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.052e-06/2.666, allocations: 3.844 kB / 1.227 GB, free: 64.4 MB / 474.7 MB Notification: Performance of Templates: time 0.4102/3.077, allocations: 111.8 MB / 1.336 GB, free: 70.76 MB / 474.7 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 -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","../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