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.001323/0.001323, allocations: 114.2 kB / 19.04 MB, free: 3.281 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.001261/0.001261, allocations: 188.5 kB / 22.21 MB, free: 112 kB / 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.369/1.369, allocations: 225.6 MB / 250.8 MB, free: 13.39 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.001478/0.001478, allocations: 47.92 kB / 368.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2161, allocations: 52.14 MB / 420.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03366/0.2498, allocations: 28.78 MB / 449.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01648/0.2663, allocations: 8.431 MB / 458.1 MB, free: 9.766 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004128/0.2704, allocations: 211.4 kB / 458.3 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01937/0.2898, allocations: 8.263 MB / 466.6 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009323/0.2991, allocations: 2.84 MB / 469.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005134/0.3042, allocations: 1.878 MB / 471.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01261/0.3168, allocations: 9.979 MB / 481.3 MB, free: 2.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02025/0.3371, allocations: 13.16 MB / 494.4 MB, free: 5.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006899/0.344, allocations: 5.385 MB / 499.8 MB, free: 15.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008651/0.3526, allocations: 6.097 MB / 0.4941 GB, free: 9.727 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002415/0.3551, allocations: 1.539 MB / 0.4956 GB, free: 8.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003547/0.3586, allocations: 1.894 MB / 0.4974 GB, free: 6.293 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002741/0.3613, allocations: 2.997 MB / 0.5003 GB, free: 3.289 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007305/0.3686, allocations: 5.844 MB / 0.5061 GB, free: 13.42 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02494/0.3936, allocations: 20.67 MB / 0.5262 GB, free: 8.688 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3936, allocations: 0 / 0.5262 GB, free: 8.688 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3936, allocations: 0 / 0.5262 GB, free: 8.688 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004489/0.394, allocations: 0 / 0.5262 GB, free: 8.688 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.3809/0.775, allocations: 12.05 MB / 0.538 GB, free: 94 MB / 446.2 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.775, allocations: 11.16 kB / 0.538 GB, free: 94 MB / 446.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02907/0.8041, allocations: 5.684 MB / 0.5436 GB, free: 92.85 MB / 446.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.8154, allocations: 6.314 MB / 0.5497 GB, free: 88.96 MB / 446.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004571/0.8159, allocations: 0.7014 MB / 0.5504 GB, free: 88.65 MB / 446.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002622/0.8185, allocations: 0.9277 MB / 0.5513 GB, free: 88.34 MB / 446.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02468/0.8432, allocations: 15.06 MB / 0.566 GB, free: 74.36 MB / 446.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002128/0.8434, allocations: 23.89 kB / 0.5661 GB, free: 74.33 MB / 446.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001043/0.8444, allocations: 395.1 kB / 0.5664 GB, free: 73.96 MB / 446.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003252/0.8448, allocations: 0.5125 MB / 0.5669 GB, free: 73.44 MB / 446.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0205/0.8653, allocations: 13.75 MB / 0.5804 GB, free: 59.67 MB / 446.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05725/0.9225, allocations: 47.24 MB / 0.6265 GB, free: 11.98 MB / 446.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01969/0.9422, allocations: 28.21 MB / 0.654 GB, free: 12.05 MB / 478.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005038/0.9472, allocations: 2.806 MB / 0.6568 GB, free: 9.238 MB / 478.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004236/0.9477, allocations: 241.4 kB / 0.657 GB, free: 8.977 MB / 478.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.479e-05/0.9477, allocations: 69.58 kB / 0.6571 GB, free: 8.898 MB / 478.2 MB Notification: Performance of pre-optimization done (n=384): time 5.39e-06/0.9477, allocations: 0 / 0.6571 GB, free: 8.898 MB / 478.2 MB Notification: Performance of matching and sorting (n=392): time 0.03069/0.9784, allocations: 14.86 MB / 0.6716 GB, free: 10.06 MB / 494.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.9785, allocations: 94.48 kB / 0.6717 GB, free: 9.957 MB / 494.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005824/0.9843, allocations: 3.599 MB / 0.6752 GB, free: 6.363 MB / 494.2 MB Notification: Performance of collectPreVariables (initialization): time 0.0005295/0.9849, allocations: 93.7 kB / 0.6753 GB, free: 6.266 MB / 494.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.003102/0.988, allocations: 4.183 MB / 0.6794 GB, free: 2.055 MB / 494.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.001576/0.9895, allocations: 1.41 MB / 0.6807 GB, free: 0.6328 MB / 494.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001799/0.9913, allocations: 1.172 MB / 0.6819 GB, free: 15.45 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.9915, allocations: 309.1 kB / 0.6822 GB, free: 15.14 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004045/0.9955, allocations: 2.592 MB / 0.6847 GB, free: 12.55 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006108/1.002, allocations: 5.085 MB / 0.6897 GB, free: 6.289 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/1.013, allocations: 8.34 MB / 0.6978 GB, free: 12.76 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.569e-05/1.013, allocations: 27.94 kB / 0.6979 GB, free: 12.73 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0152/1.028, allocations: 8.63 MB / 0.7063 GB, free: 4.074 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.727e-05/1.028, allocations: 44.06 kB / 0.7063 GB, free: 4.031 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001274/1.028, allocations: 84 kB / 0.7064 GB, free: 3.949 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002411/1.031, allocations: 0.8576 MB / 0.7072 GB, free: 3.09 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004713/1.035, allocations: 1.361 MB / 0.7086 GB, free: 1.727 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/1.047, allocations: 7.685 MB / 0.7161 GB, free: 9.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004044/1.051, allocations: 339.5 kB / 0.7164 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006632/1.052, allocations: 304 kB / 0.7167 GB, free: 9.262 MB / 0.5294 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.005583/1.057, allocations: 3.505 MB / 0.7201 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009089/1.058, allocations: 429.2 kB / 0.7205 GB, free: 5.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/1.069, allocations: 5.957 MB / 0.7263 GB, free: 15.32 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.67e-05/1.069, allocations: 44 kB / 0.7264 GB, free: 15.28 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/1.069, allocations: 15.88 kB / 0.7264 GB, free: 15.27 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.722e-05/1.069, allocations: 23.86 kB / 0.7264 GB, free: 15.24 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/1.095, allocations: 14.92 MB / 0.741 GB, free: 164 kB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/1.095, allocations: 8.094 kB / 0.741 GB, free: 156 kB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2138/1.308, allocations: 0.688 MB / 0.7417 GB, free: 186.1 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002154/1.311, allocations: 0.7073 MB / 0.7424 GB, free: 186 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004686/1.311, allocations: 89.94 kB / 0.7424 GB, free: 186 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007638/1.319, allocations: 6.704 MB / 0.749 GB, free: 183.9 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/1.319, allocations: 7.906 kB / 0.749 GB, free: 183.8 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01106/1.33, allocations: 8.76 MB / 0.7576 GB, free: 180.2 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002246/1.332, allocations: 0.9039 MB / 0.7584 GB, free: 179.9 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000523/1.333, allocations: 80.69 kB / 0.7585 GB, free: 179.9 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00172/1.334, allocations: 193.4 kB / 0.7587 GB, free: 179.8 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005104/1.335, allocations: 266.9 kB / 0.759 GB, free: 179.8 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/1.335, allocations: 114.4 kB / 0.7591 GB, free: 179.7 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.002964/1.338, allocations: 2.413 MB / 0.7614 GB, free: 178.8 MB / 0.5451 GB Notification: Performance of sort global known variables: time 9e-08/1.338, allocations: 0 / 0.7614 GB, free: 178.8 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.004517/1.342, allocations: 1.541 MB / 0.7629 GB, free: 178.7 MB / 0.5451 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.0004445/1.343, allocations: 259.3 kB / 0.7632 GB, free: 178.5 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.008295/1.351, allocations: 6.276 MB / 0.7693 GB, free: 176.2 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.351, allocations: 1 kB / 0.7693 GB, free: 176.2 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.003594/1.355, allocations: 2.725 MB / 0.772 GB, free: 175.1 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004043/1.359, allocations: 0.9575 MB / 0.7729 GB, free: 174.8 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/1.38, allocations: 16.08 MB / 0.7886 GB, free: 161 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004297/1.384, allocations: 5.963 MB / 0.7944 GB, free: 156.2 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.003925/1.388, allocations: 1.877 MB / 0.7963 GB, free: 154.3 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008906/1.389, allocations: 347.4 kB / 0.7966 GB, free: 153.9 MB / 0.5451 GB Notification: Performance of SimCode: time 1.232e-06/1.389, allocations: 4 kB / 0.7966 GB, free: 153.9 MB / 0.5451 GB Notification: Performance of Templates: time 0.08414/1.473, allocations: 62.63 MB / 0.8577 GB, free: 91.79 MB / 0.5451 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.264675493352115]