Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 116.5 kB / 18.46 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 211.3 kB / 21.42 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0_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=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 59.92 kB / 374.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1178, allocations: 53.34 MB / 427.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2837/0.4015, allocations: 28.73 MB / 456.3 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02459/0.4261, allocations: 8.515 MB / 464.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008902/0.435, allocations: 251 kB / 465 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02136/0.4563, allocations: 8.287 MB / 473.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01292/0.4693, allocations: 2.842 MB / 476.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008187/0.4774, allocations: 1.889 MB / 478 MB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01957/0.497, allocations: 10.01 MB / 488 MB, free: 3.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02878/0.5258, allocations: 16.34 MB / 0.4926 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01146/0.5372, allocations: 5.467 MB / 0.4979 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01337/0.5506, allocations: 6.128 MB / 0.5039 GB, free: 7.957 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005218/0.5558, allocations: 1.539 MB / 0.5054 GB, free: 6.418 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007463/0.5633, allocations: 1.925 MB / 0.5073 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006005/0.5693, allocations: 2.993 MB / 0.5102 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01272/0.582, allocations: 5.844 MB / 0.5159 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03072/0.6127, allocations: 20.69 MB / 0.5361 GB, free: 6.871 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.6127, allocations: 3.938 kB / 0.5361 GB, free: 6.867 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6127, allocations: 3.938 kB / 0.5361 GB, free: 6.863 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000635/0.6134, allocations: 0 / 0.5361 GB, free: 6.863 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.04212/0.6555, allocations: 12.09 MB / 0.5479 GB, free: 10.66 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.6556, allocations: 12.03 kB / 0.5479 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03197/0.6875, allocations: 5.594 MB / 0.5534 GB, free: 5.047 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01511/0.7026, allocations: 6.334 MB / 0.5596 GB, free: 14.66 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008257/0.7035, allocations: 0.6985 MB / 0.5603 GB, free: 13.96 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004274/0.7077, allocations: 0.9334 MB / 0.5612 GB, free: 13.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04333/0.7511, allocations: 15.1 MB / 0.5759 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005416/0.7516, allocations: 15.89 kB / 0.5759 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003487/0.7551, allocations: 392 kB / 0.5763 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006737/0.7558, allocations: 0.5194 MB / 0.5768 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03424/0.79, allocations: 13.78 MB / 0.5903 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5739/1.364, allocations: 47.64 MB / 0.6368 GB, free: 127.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01974/1.384, allocations: 28.24 MB / 0.6644 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005617/1.389, allocations: 2.806 MB / 0.6671 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006507/1.39, allocations: 347.5 kB / 0.6674 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001032/1.39, allocations: 77.42 kB / 0.6675 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 1.044e-05/1.39, allocations: 0 / 0.6675 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.03671/1.427, allocations: 14.9 MB / 0.6821 GB, free: 97.25 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/1.427, allocations: 95.77 kB / 0.6822 GB, free: 97.18 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00701/1.434, allocations: 3.609 MB / 0.6857 GB, free: 95.88 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007771/1.435, allocations: 89.55 kB / 0.6858 GB, free: 95.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002502/1.437, allocations: 4.189 MB / 0.6899 GB, free: 93.15 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00173/1.439, allocations: 1.408 MB / 0.6912 GB, free: 92.06 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003318/1.442, allocations: 1.179 MB / 0.6924 GB, free: 91.48 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.38e-05/1.442, allocations: 304.9 kB / 0.6927 GB, free: 91.19 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00415/1.446, allocations: 2.597 MB / 0.6952 GB, free: 90.22 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005744/1.452, allocations: 5.088 MB / 0.7002 GB, free: 85.56 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/1.462, allocations: 8.35 MB / 0.7083 GB, free: 78.89 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/1.462, allocations: 26.28 kB / 0.7084 GB, free: 78.89 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01805/1.48, allocations: 8.657 MB / 0.7168 GB, free: 74.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001415/1.481, allocations: 41.56 kB / 0.7168 GB, free: 74.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001937/1.481, allocations: 80.34 kB / 0.7169 GB, free: 74.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002643/1.483, allocations: 0.8494 MB / 0.7178 GB, free: 73.62 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005062/1.488, allocations: 1.373 MB / 0.7191 GB, free: 72.24 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/1.499, allocations: 7.681 MB / 0.7266 GB, free: 64.42 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005502/1.504, allocations: 331.5 kB / 0.7269 GB, free: 64.09 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001399/1.505, allocations: 307.8 kB / 0.7272 GB, free: 63.8 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008078/1.514, allocations: 3.513 MB / 0.7306 GB, free: 60.27 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001961/1.516, allocations: 429.3 kB / 0.731 GB, free: 59.85 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/1.528, allocations: 5.96 MB / 0.7369 GB, free: 53.86 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.261e-05/1.528, allocations: 40 kB / 0.7369 GB, free: 53.82 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.991e-05/1.529, allocations: 8 kB / 0.7369 GB, free: 53.81 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-05/1.529, allocations: 27.33 kB / 0.7369 GB, free: 53.79 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03306/1.562, allocations: 14.96 MB / 0.7515 GB, free: 38.78 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.392e-05/1.562, allocations: 4 kB / 0.7516 GB, free: 38.77 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002985/1.565, allocations: 0.6943 MB / 0.7522 GB, free: 38.08 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/1.567, allocations: 0.7138 MB / 0.7529 GB, free: 37.36 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007075/1.568, allocations: 91.97 kB / 0.753 GB, free: 37.27 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008454/1.576, allocations: 6.71 MB / 0.7596 GB, free: 30.43 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/1.576, allocations: 7.938 kB / 0.7596 GB, free: 30.43 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/1.592, allocations: 8.776 MB / 0.7681 GB, free: 21.52 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002823/1.595, allocations: 0.912 MB / 0.769 GB, free: 20.59 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001448/1.596, allocations: 72 kB / 0.7691 GB, free: 20.52 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00306/1.599, allocations: 183.8 kB / 0.7693 GB, free: 20.34 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000898/1.6, allocations: 270.7 kB / 0.7695 GB, free: 20.07 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005374/1.601, allocations: 116 kB / 0.7696 GB, free: 19.96 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005199/1.606, allocations: 2.423 MB / 0.772 GB, free: 17.55 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.51e-07/1.606, allocations: 3.938 kB / 0.772 GB, free: 17.55 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008903/1.615, allocations: 1.551 MB / 0.7735 GB, free: 16 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (377): * Single equations (assignments): 376 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001309/1.616, allocations: 254.3 kB / 0.7738 GB, free: 15.74 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0122/1.628, allocations: 6.285 MB / 0.7799 GB, free: 9.449 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/1.628, allocations: 0 / 0.7799 GB, free: 9.449 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005418/1.634, allocations: 2.736 MB / 0.7826 GB, free: 6.703 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007948/1.642, allocations: 0.9618 MB / 0.7835 GB, free: 5.781 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03993/1.681, allocations: 15.63 MB / 0.7988 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01331/1.695, allocations: 5.799 MB / 0.8045 GB, free: 188 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002987/1.698, allocations: 399.6 kB / 0.8048 GB, free: 15.79 MB / 0.545 GB Notification: Performance of SimCode: time 2.275e-06/1.698, allocations: 0 / 0.8048 GB, free: 15.79 MB / 0.545 GB Notification: Performance of Templates: time 0.5128/2.211, allocations: 153.4 MB / 0.9546 GB, free: 85.47 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.73322087500128]