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.0009736/0.0009735, allocations: 180 kB / 17.01 MB, free: 5.121 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.311/1.311, allocations: 205.4 MB / 223.1 MB, free: 9.109 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.000861/0.0008607, allocations: 97.02 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002293, allocations: 8 kB / 328.3 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1983, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2916/0.4899, allocations: 135.9 MB / 0.4998 GB, free: 110.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.4902, allocations: 106.3 kB / 0.4999 GB, free: 110.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9669/1.457, allocations: 331.6 MB / 0.8237 GB, free: 34.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.457, allocations: 0 / 0.8237 GB, free: 34.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004685/1.458, allocations: 220 kB / 0.8239 GB, free: 34.01 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.02678/1.484, allocations: 9.172 MB / 0.8329 GB, free: 31.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/1.484, allocations: 12.48 kB / 0.8329 GB, free: 31.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.032/1.517, allocations: 5.882 MB / 0.8386 GB, free: 30.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01896/1.536, allocations: 7.463 MB / 0.8459 GB, free: 29.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008998/1.536, allocations: 0.7232 MB / 0.8466 GB, free: 29.56 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003703/1.54, allocations: 0.9369 MB / 0.8475 GB, free: 29.56 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03949/1.58, allocations: 17.01 MB / 0.8642 GB, free: 28.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007803/1.581, allocations: 20.38 kB / 0.8642 GB, free: 28.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004933/1.585, allocations: 414.9 kB / 0.8646 GB, free: 28.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001028/1.587, allocations: 0.715 MB / 0.8653 GB, free: 28.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03578/1.622, allocations: 15.9 MB / 0.8808 GB, free: 28.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09486/1.717, allocations: 52.77 MB / 0.9323 GB, free: 2.922 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04005/1.757, allocations: 42.07 MB / 0.9734 GB, free: 9.207 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2507/2.008, allocations: 21.8 MB / 0.9947 GB, free: 76.87 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/2.008, allocations: 99.95 kB / 0.9948 GB, free: 76.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=693): time 8.406e-06/2.008, allocations: 0 / 0.9948 GB, free: 76.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=701): time 0.08606/2.094, allocations: 41.27 MB / 1.035 GB, free: 69.93 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/2.094, allocations: 113 kB / 1.035 GB, free: 69.86 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003785/2.098, allocations: 2.461 MB / 1.038 GB, free: 69.61 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001355/2.099, allocations: 120.3 kB / 1.038 GB, free: 69.58 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/2.101, allocations: 3.623 MB / 1.041 GB, free: 67.87 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003101/2.105, allocations: 2.312 MB / 1.044 GB, free: 66.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007159/2.105, allocations: 127.4 kB / 1.044 GB, free: 66.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006128/2.106, allocations: 0.6031 MB / 1.044 GB, free: 66.06 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006494/2.112, allocations: 4.522 MB / 1.049 GB, free: 66.04 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008302/2.121, allocations: 6.332 MB / 1.055 GB, free: 64.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008649/2.129, allocations: 5.609 MB / 1.06 GB, free: 62.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.328e-05/2.13, allocations: 16.62 kB / 1.06 GB, free: 62.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.02671/2.156, allocations: 13.72 MB / 1.074 GB, free: 56.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.623e-05/2.156, allocations: 25.03 kB / 1.074 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/2.157, allocations: 54.44 kB / 1.074 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00758/2.164, allocations: 4.013 MB / 1.078 GB, free: 55.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0054/2.17, allocations: 1.23 MB / 1.079 GB, free: 55.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/2.181, allocations: 9.67 MB / 1.088 GB, free: 49.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005605/2.187, allocations: 358.6 kB / 1.089 GB, free: 49.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001629/2.189, allocations: 313.2 kB / 1.089 GB, free: 49.72 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (650): * Single equations (assignments): 598 * 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.008853/2.197, allocations: 3.609 MB / 1.093 GB, free: 48.03 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001999/2.199, allocations: 454.9 kB / 1.093 GB, free: 47.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02298/2.222, allocations: 13 MB / 1.106 GB, free: 40.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001822/2.223, allocations: 196.2 kB / 1.106 GB, free: 40.68 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/2.223, allocations: 0 / 1.106 GB, free: 40.68 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-05/2.223, allocations: 28.5 kB / 1.106 GB, free: 40.68 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04495/2.268, allocations: 24.86 MB / 1.13 GB, free: 19.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-05/2.268, allocations: 4 kB / 1.13 GB, free: 19.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003966/2.272, allocations: 0.8176 MB / 1.131 GB, free: 19.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007042/2.279, allocations: 3.917 MB / 1.135 GB, free: 15.94 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001281/2.28, allocations: 153.7 kB / 1.135 GB, free: 15.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009873/2.29, allocations: 9.554 MB / 1.144 GB, free: 7.156 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.585e-06/2.29, allocations: 8.781 kB / 1.144 GB, free: 7.152 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2747/2.565, allocations: 20.55 MB / 1.164 GB, free: 74.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005427/2.57, allocations: 1.475 MB / 1.166 GB, free: 74.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002716/2.573, allocations: 105.3 kB / 1.166 GB, free: 74.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004177/2.577, allocations: 271.9 kB / 1.166 GB, free: 74.29 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001243/2.579, allocations: 0.5106 MB / 1.167 GB, free: 74.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005123/2.579, allocations: 193.6 kB / 1.167 GB, free: 74.28 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003285/2.582, allocations: 1.848 MB / 1.169 GB, free: 74.13 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/2.582, allocations: 1.859 kB / 1.169 GB, free: 74.13 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007989/2.59, allocations: 1.732 MB / 1.17 GB, free: 74.13 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 (443): * Single equations (assignments): 391 * 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.001596/2.592, allocations: 0.5861 MB / 1.171 GB, free: 74.03 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02132/2.613, allocations: 11.19 MB / 1.182 GB, free: 73.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/2.613, allocations: 1.125 kB / 1.182 GB, free: 73.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0102/2.624, allocations: 5.732 MB / 1.187 GB, free: 73.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005347/2.629, allocations: 0.8382 MB / 1.188 GB, free: 73.59 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04417/2.673, allocations: 24.46 MB / 1.212 GB, free: 65.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01114/2.684, allocations: 6.54 MB / 1.218 GB, free: 64.47 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006422/2.691, allocations: 1.552 MB / 1.22 GB, free: 64.31 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/2.693, allocations: 341.6 kB / 1.22 GB, free: 64.3 MB / 474.7 MB Notification: Performance of SimCode: time 9.72e-07/2.693, allocations: 2.812 kB / 1.22 GB, free: 64.3 MB / 474.7 MB Notification: Performance of Templates: time 0.3711/3.064, allocations: 111.4 MB / 1.329 GB, free: 76.43 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/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","../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