Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001938/0.001938, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002126/0.002126, allocations: 192.8 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 55.92 kB / 370.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2246, allocations: 52.18 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03197/0.2565, allocations: 24.59 MB / 447.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.2731, allocations: 8.087 MB / 455.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003423/0.2765, allocations: 258.7 kB / 456 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01903/0.2955, allocations: 7.632 MB / 463.7 MB, free: 5.734 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009624/0.3052, allocations: 2.832 MB / 466.5 MB, free: 2.891 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005603/0.3108, allocations: 1.823 MB / 468.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01309/0.3239, allocations: 10.05 MB / 478.4 MB, free: 6.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02373/0.3476, allocations: 13.86 MB / 492.2 MB, free: 8.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00757/0.3552, allocations: 5.494 MB / 497.7 MB, free: 3.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00899/0.3642, allocations: 5.827 MB / 0.4918 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002601/0.3668, allocations: 1.539 MB / 0.4933 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00376/0.3705, allocations: 1.89 MB / 0.4951 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002807/0.3733, allocations: 2.989 MB / 0.498 GB, free: 7.207 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006019/0.3794, allocations: 4.537 MB / 0.5025 GB, free: 2.652 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02341/0.4028, allocations: 20.75 MB / 0.5227 GB, free: 13.83 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.4028, allocations: 4 kB / 0.5227 GB, free: 13.83 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4028, allocations: 0 / 0.5227 GB, free: 13.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005051/0.4033, allocations: 0 / 0.5227 GB, free: 13.83 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.03244/0.4357, allocations: 11.97 MB / 0.5344 GB, free: 1.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.4358, allocations: 12.03 kB / 0.5344 GB, free: 1.758 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3668/0.8026, allocations: 5.673 MB / 0.54 GB, free: 98.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01284/0.8154, allocations: 6.363 MB / 0.5462 GB, free: 95.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003984/0.8158, allocations: 0.7044 MB / 0.5469 GB, free: 95.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002102/0.8179, allocations: 0.9301 MB / 0.5478 GB, free: 95.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02293/0.8409, allocations: 15.21 MB / 0.5626 GB, free: 79.76 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002236/0.8411, allocations: 15.94 kB / 0.5626 GB, free: 79.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009622/0.8421, allocations: 395.4 kB / 0.563 GB, free: 79.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003387/0.8424, allocations: 0.5155 MB / 0.5635 GB, free: 78.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01987/0.8623, allocations: 13.68 MB / 0.5769 GB, free: 65.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05311/0.9154, allocations: 41.29 MB / 0.6172 GB, free: 23.47 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/0.9268, allocations: 7.957 MB / 0.625 GB, free: 16.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003453/0.9302, allocations: 2.784 MB / 0.6277 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002407/0.9305, allocations: 78.91 kB / 0.6278 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.9305, allocations: 69.58 kB / 0.6278 GB, free: 13.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.863e-06/0.9305, allocations: 0 / 0.6278 GB, free: 13.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02392/0.9544, allocations: 14.65 MB / 0.6422 GB, free: 15.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/0.9545, allocations: 94.48 kB / 0.6422 GB, free: 15.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005113/0.9596, allocations: 3.551 MB / 0.6457 GB, free: 11.62 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002496/0.9599, allocations: 85.7 kB / 0.6458 GB, free: 11.53 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00308/0.9629, allocations: 4.184 MB / 0.6499 GB, free: 7.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/0.9642, allocations: 1.41 MB / 0.6513 GB, free: 5.949 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001746/0.966, allocations: 1.168 MB / 0.6524 GB, free: 4.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.9661, allocations: 309 kB / 0.6527 GB, free: 4.465 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004078/0.9702, allocations: 2.588 MB / 0.6552 GB, free: 1.871 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006251/0.9764, allocations: 5.112 MB / 0.6602 GB, free: 11.58 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/0.9883, allocations: 8.329 MB / 0.6683 GB, free: 2.062 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.973e-05/0.9884, allocations: 24 kB / 0.6684 GB, free: 2.039 MB / 478.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01652/1.005, allocations: 8.605 MB / 0.6768 GB, free: 9.406 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.09e-05/1.005, allocations: 40 kB / 0.6768 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001156/1.005, allocations: 87.94 kB / 0.6769 GB, free: 9.281 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002336/1.007, allocations: 0.838 MB / 0.6777 GB, free: 8.441 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00466/1.012, allocations: 1.361 MB / 0.679 GB, free: 7.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/1.024, allocations: 7.34 MB / 0.6862 GB, free: 15.63 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003601/1.027, allocations: 335.5 kB / 0.6865 GB, free: 15.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005242/1.028, allocations: 308 kB / 0.6868 GB, free: 15 MB / 0.4982 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.005581/1.033, allocations: 3.509 MB / 0.6902 GB, free: 11.48 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008891/1.034, allocations: 413.4 kB / 0.6906 GB, free: 11.07 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.045, allocations: 5.946 MB / 0.6964 GB, free: 5.086 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.304e-05/1.045, allocations: 44 kB / 0.6965 GB, free: 5.043 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/1.045, allocations: 8 kB / 0.6965 GB, free: 5.035 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.032e-05/1.045, allocations: 19.92 kB / 0.6965 GB, free: 5.016 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.025/1.07, allocations: 13 MB / 0.7092 GB, free: 7.867 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/1.07, allocations: 4.625 kB / 0.7092 GB, free: 7.863 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002802/1.073, allocations: 0.6904 MB / 0.7099 GB, free: 7.172 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002071/1.075, allocations: 0.6972 MB / 0.7106 GB, free: 6.473 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002636/1.075, allocations: 95.91 kB / 0.7107 GB, free: 6.379 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/1.085, allocations: 6.382 MB / 0.7169 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/1.085, allocations: 7.938 kB / 0.7169 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0144/1.1, allocations: 8.721 MB / 0.7254 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/1.102, allocations: 0.8251 MB / 0.7262 GB, free: 6.211 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005145/1.103, allocations: 79.92 kB / 0.7263 GB, free: 6.133 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/1.104, allocations: 187.8 kB / 0.7265 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000546/1.105, allocations: 282.5 kB / 0.7268 GB, free: 5.672 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002448/1.105, allocations: 108 kB / 0.7269 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003606/1.109, allocations: 2.283 MB / 0.7291 GB, free: 3.293 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/1.109, allocations: 0 / 0.7291 GB, free: 3.293 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004918/1.114, allocations: 1.539 MB / 0.7306 GB, free: 1.754 MB / 0.5294 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.000545/1.114, allocations: 258.6 kB / 0.7308 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01084/1.125, allocations: 6.257 MB / 0.7369 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.125, allocations: 1 kB / 0.7369 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004987/1.13, allocations: 2.724 MB / 0.7396 GB, free: 8.492 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004665/1.135, allocations: 0.8946 MB / 0.7405 GB, free: 7.621 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2231/1.358, allocations: 16.03 MB / 0.7561 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005828/1.364, allocations: 5.515 MB / 0.7615 GB, free: 186.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004061/1.368, allocations: 1.867 MB / 0.7633 GB, free: 186.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000894/1.369, allocations: 339.9 kB / 0.7637 GB, free: 186.6 MB / 0.545 GB Notification: Performance of SimCode: time 7.21e-07/1.369, allocations: 0 / 0.7637 GB, free: 186.6 MB / 0.545 GB Notification: Performance of Templates: time 0.08833/1.457, allocations: 63.85 MB / 0.826 GB, free: 129.4 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.501316361129284]