Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001793/0.001793, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002316/0.002316, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.51/1.51, allocations: 230.4 MB / 258.1 MB, free: 8.145 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 71.88 kB / 378.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2376, allocations: 53.31 MB / 432.1 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03401/0.2716, allocations: 28.79 MB / 460.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0205/0.2921, allocations: 8.534 MB / 469.4 MB, free: 1.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005658/0.2978, allocations: 215.4 kB / 469.6 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02054/0.3183, allocations: 8.277 MB / 477.9 MB, free: 9.367 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.3283, allocations: 2.832 MB / 480.7 MB, free: 6.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006357/0.3347, allocations: 1.913 MB / 482.7 MB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01615/0.3509, allocations: 10.03 MB / 492.7 MB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02787/0.3787, allocations: 13.17 MB / 0.494 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009367/0.3881, allocations: 5.392 MB / 0.4993 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01163/0.3997, allocations: 6.136 MB / 0.5053 GB, free: 1.684 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004304/0.404, allocations: 1.539 MB / 0.5068 GB, free: 148 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006893/0.4109, allocations: 1.925 MB / 0.5086 GB, free: 14.22 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00526/0.4162, allocations: 2.993 MB / 0.5116 GB, free: 11.22 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01149/0.4277, allocations: 5.844 MB / 0.5173 GB, free: 5.352 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03025/0.4579, allocations: 20.69 MB / 0.5375 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4579, allocations: 0 / 0.5375 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4579, allocations: 0 / 0.5375 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005057/0.4584, allocations: 0 / 0.5375 GB, free: 0.5938 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.2611/0.7196, allocations: 12.09 MB / 0.5493 GB, free: 88.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.7196, allocations: 7.906 kB / 0.5493 GB, free: 88.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03088/0.7505, allocations: 5.61 MB / 0.5548 GB, free: 86.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0131/0.7636, allocations: 6.328 MB / 0.5609 GB, free: 80.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004424/0.764, allocations: 0.7022 MB / 0.5616 GB, free: 79.78 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002922/0.767, allocations: 0.9212 MB / 0.5625 GB, free: 78.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03057/0.7975, allocations: 15.1 MB / 0.5773 GB, free: 63.72 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003168/0.7979, allocations: 19.91 kB / 0.5773 GB, free: 63.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002338/0.8002, allocations: 399.2 kB / 0.5777 GB, free: 63.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003576/0.8005, allocations: 0.5116 MB / 0.5782 GB, free: 62.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02479/0.8253, allocations: 13.78 MB / 0.5916 GB, free: 49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06859/0.8939, allocations: 47.65 MB / 0.6382 GB, free: 376 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02569/0.9196, allocations: 28.24 MB / 0.6657 GB, free: 436 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005573/0.9252, allocations: 2.804 MB / 0.6685 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006211/0.9258, allocations: 338.2 kB / 0.6688 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.112e-05/0.9259, allocations: 81.56 kB / 0.6689 GB, free: 13.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 7.645e-06/0.9259, allocations: 0 / 0.6689 GB, free: 13.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03829/0.9642, allocations: 14.9 MB / 0.6834 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.439e-05/0.9643, allocations: 94.48 kB / 0.6835 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007847/0.9721, allocations: 3.603 MB / 0.687 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001005/0.9731, allocations: 85.7 kB / 0.6871 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003885/0.977, allocations: 4.192 MB / 0.6912 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002331/0.9793, allocations: 1.406 MB / 0.6926 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00225/0.9816, allocations: 1.18 MB / 0.6937 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.9817, allocations: 305.1 kB / 0.694 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00465/0.9864, allocations: 2.6 MB / 0.6966 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007518/0.9939, allocations: 5.087 MB / 0.7015 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01349/1.007, allocations: 8.356 MB / 0.7097 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.592e-05/1.007, allocations: 24 kB / 0.7097 GB, free: 0.7852 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01869/1.026, allocations: 8.65 MB / 0.7182 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/1.026, allocations: 52.09 kB / 0.7182 GB, free: 8.055 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001666/1.026, allocations: 84 kB / 0.7183 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002587/1.029, allocations: 0.8497 MB / 0.7191 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005432/1.034, allocations: 1.369 MB / 0.7205 GB, free: 5.754 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/1.047, allocations: 7.682 MB / 0.728 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004698/1.052, allocations: 335.4 kB / 0.7283 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.053, allocations: 308 kB / 0.7286 GB, free: 13.29 MB / 0.545 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.00773/1.061, allocations: 3.509 MB / 0.732 GB, free: 9.766 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/1.062, allocations: 433.2 kB / 0.7324 GB, free: 9.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0127/1.075, allocations: 5.961 MB / 0.7382 GB, free: 3.34 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-05/1.075, allocations: 40 kB / 0.7383 GB, free: 3.301 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/1.075, allocations: 4 kB / 0.7383 GB, free: 3.297 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.524e-05/1.075, allocations: 27.86 kB / 0.7383 GB, free: 3.27 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4543/1.529, allocations: 14.94 MB / 0.7529 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/1.529, allocations: 7.562 kB / 0.7529 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/1.532, allocations: 0.6965 MB / 0.7536 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001889/1.534, allocations: 0.711 MB / 0.7543 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003169/1.534, allocations: 95.53 kB / 0.7544 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007642/1.542, allocations: 6.713 MB / 0.7609 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/1.542, allocations: 7.812 kB / 0.7609 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/1.554, allocations: 8.774 MB / 0.7695 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002424/1.556, allocations: 0.9127 MB / 0.7704 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000666/1.557, allocations: 73.52 kB / 0.7705 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/1.559, allocations: 184 kB / 0.7706 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004437/1.559, allocations: 268.1 kB / 0.7709 GB, free: 170.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002094/1.559, allocations: 118.1 kB / 0.771 GB, free: 170.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00315/1.562, allocations: 2.417 MB / 0.7734 GB, free: 169.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/1.562, allocations: 0 / 0.7734 GB, free: 169.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005037/1.567, allocations: 1.55 MB / 0.7749 GB, free: 168.1 MB / 0.545 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.0005102/1.568, allocations: 269.3 kB / 0.7751 GB, free: 167.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008286/1.576, allocations: 6.285 MB / 0.7813 GB, free: 162.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.576, allocations: 4 kB / 0.7813 GB, free: 162.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003814/1.58, allocations: 2.74 MB / 0.784 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004544/1.585, allocations: 0.9611 MB / 0.7849 GB, free: 159.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02699/1.612, allocations: 16.01 MB / 0.8005 GB, free: 144 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007131/1.619, allocations: 5.967 MB / 0.8064 GB, free: 138 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004507/1.623, allocations: 1.885 MB / 0.8082 GB, free: 136.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.624, allocations: 363.3 kB / 0.8085 GB, free: 135.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.583e-06/1.624, allocations: 0 / 0.8085 GB, free: 135.7 MB / 0.545 GB Notification: Performance of Templates: time 0.09447/1.719, allocations: 63.1 MB / 0.8702 GB, free: 73.11 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.072572039440274]