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.001782/0.001782, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002141/0.002141, allocations: 209.2 kB / 24.47 MB, free: 3.977 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.506/1.506, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.001534/0.001534, allocations: 47.94 kB / 379 MB, free: 2.418 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2078, allocations: 53.36 MB / 432.4 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03029/0.2381, allocations: 24.64 MB / 457 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0166/0.2547, allocations: 8.166 MB / 465.2 MB, free: 5.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004107/0.2588, allocations: 250.8 kB / 465.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0192/0.278, allocations: 7.649 MB / 473.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009078/0.287, allocations: 2.852 MB / 475.9 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005252/0.2923, allocations: 1.847 MB / 477.8 MB, free: 9.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01302/0.3053, allocations: 10.09 MB / 487.9 MB, free: 15.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02112/0.3264, allocations: 14.04 MB / 0.4901 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007372/0.3338, allocations: 5.506 MB / 0.4955 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009245/0.343, allocations: 6.14 MB / 0.5015 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002534/0.3456, allocations: 1.543 MB / 0.503 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003838/0.3494, allocations: 1.917 MB / 0.5049 GB, free: 1.715 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002688/0.3521, allocations: 2.985 MB / 0.5078 GB, free: 14.72 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005827/0.3579, allocations: 4.545 MB / 0.5122 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02196/0.3799, allocations: 20.77 MB / 0.5325 GB, free: 5.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3799, allocations: 0 / 0.5325 GB, free: 5.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3799, allocations: 0 / 0.5325 GB, free: 5.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003245/0.3802, allocations: 0 / 0.5325 GB, free: 5.32 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.3692/0.7494, allocations: 12.01 MB / 0.5443 GB, free: 91.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.7494, allocations: 11.81 kB / 0.5443 GB, free: 91.23 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02849/0.7779, allocations: 5.604 MB / 0.5497 GB, free: 87.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/0.7903, allocations: 6.381 MB / 0.556 GB, free: 81.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004033/0.7907, allocations: 0.7053 MB / 0.5567 GB, free: 80.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002057/0.7927, allocations: 0.9176 MB / 0.5576 GB, free: 79.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02458/0.8173, allocations: 15.25 MB / 0.5724 GB, free: 64.35 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002184/0.8175, allocations: 28.45 kB / 0.5725 GB, free: 64.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009446/0.8185, allocations: 391.2 kB / 0.5728 GB, free: 63.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00035/0.8188, allocations: 0.5155 MB / 0.5734 GB, free: 63.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01995/0.8388, allocations: 13.72 MB / 0.5868 GB, free: 49.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05417/0.8929, allocations: 41.33 MB / 0.6271 GB, free: 7.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.9038, allocations: 7.986 MB / 0.6349 GB, free: 1.238 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003899/0.9077, allocations: 2.79 MB / 0.6376 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003024/0.908, allocations: 94.92 kB / 0.6377 GB, free: 14.35 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.487e-05/0.908, allocations: 73.58 kB / 0.6378 GB, free: 14.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 6.082e-06/0.9081, allocations: 0 / 0.6378 GB, free: 14.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03007/0.9381, allocations: 14.68 MB / 0.6521 GB, free: 15.64 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.119e-05/0.9382, allocations: 90.48 kB / 0.6522 GB, free: 15.54 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005168/0.9434, allocations: 3.559 MB / 0.6557 GB, free: 11.97 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002461/0.9436, allocations: 85.7 kB / 0.6558 GB, free: 11.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003054/0.9467, allocations: 4.187 MB / 0.6599 GB, free: 7.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001277/0.948, allocations: 1.414 MB / 0.6612 GB, free: 6.234 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00179/0.9497, allocations: 1.176 MB / 0.6624 GB, free: 5.047 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.9499, allocations: 309.1 kB / 0.6627 GB, free: 4.742 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0041/0.954, allocations: 2.596 MB / 0.6652 GB, free: 2.141 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006239/0.9602, allocations: 5.116 MB / 0.6702 GB, free: 11.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01119/0.9714, allocations: 8.352 MB / 0.6784 GB, free: 2.301 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.125e-05/0.9714, allocations: 20 kB / 0.6784 GB, free: 2.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01494/0.9864, allocations: 8.622 MB / 0.6868 GB, free: 9.633 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 7.202e-05/0.9865, allocations: 43.98 kB / 0.6869 GB, free: 9.59 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.9866, allocations: 84 kB / 0.6869 GB, free: 9.508 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.989, allocations: 0.8304 MB / 0.6877 GB, free: 8.676 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004822/0.9939, allocations: 1.373 MB / 0.6891 GB, free: 7.301 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/1.005, allocations: 7.348 MB / 0.6963 GB, free: 15.83 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003615/1.009, allocations: 327.5 kB / 0.6966 GB, free: 15.51 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005399/1.01, allocations: 315.9 kB / 0.6969 GB, free: 15.2 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.005395/1.015, allocations: 3.509 MB / 0.7003 GB, free: 11.68 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009041/1.016, allocations: 413.4 kB / 0.7007 GB, free: 11.27 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/1.027, allocations: 5.945 MB / 0.7065 GB, free: 5.285 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.512e-05/1.027, allocations: 43.94 kB / 0.7065 GB, free: 5.242 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/1.027, allocations: 8 kB / 0.7066 GB, free: 5.234 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.761e-05/1.027, allocations: 19.92 kB / 0.7066 GB, free: 5.215 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02397/1.051, allocations: 13.01 MB / 0.7193 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/1.051, allocations: 4 kB / 0.7193 GB, free: 8.062 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002879/1.054, allocations: 0.6982 MB / 0.72 GB, free: 7.363 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/1.056, allocations: 0.6942 MB / 0.7206 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002366/1.056, allocations: 91.91 kB / 0.7207 GB, free: 6.578 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00967/1.066, allocations: 6.396 MB / 0.727 GB, free: 80 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/1.066, allocations: 4 kB / 0.727 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/1.08, allocations: 8.752 MB / 0.7355 GB, free: 7.195 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002427/1.082, allocations: 0.8368 MB / 0.7363 GB, free: 6.355 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005271/1.083, allocations: 75.94 kB / 0.7364 GB, free: 6.281 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001824/1.085, allocations: 183.9 kB / 0.7366 GB, free: 6.102 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005326/1.085, allocations: 282.5 kB / 0.7369 GB, free: 5.824 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002639/1.085, allocations: 120 kB / 0.737 GB, free: 5.707 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003464/1.089, allocations: 2.283 MB / 0.7392 GB, free: 3.434 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/1.089, allocations: 0 / 0.7392 GB, free: 3.434 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004833/1.094, allocations: 1.543 MB / 0.7407 GB, free: 1.891 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.0005478/1.094, allocations: 263.2 kB / 0.741 GB, free: 1.621 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0106/1.105, allocations: 6.26 MB / 0.7471 GB, free: 11.36 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.105, allocations: 4 kB / 0.7471 GB, free: 11.35 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004643/1.109, allocations: 2.726 MB / 0.7497 GB, free: 8.617 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004016/1.113, allocations: 0.9034 MB / 0.7506 GB, free: 7.742 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2107/1.324, allocations: 15.99 MB / 0.7662 GB, free: 195.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004753/1.329, allocations: 5.517 MB / 0.7716 GB, free: 195 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.003955/1.333, allocations: 1.867 MB / 0.7734 GB, free: 194.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008886/1.334, allocations: 359.2 kB / 0.7738 GB, free: 194.9 MB / 0.5607 GB Notification: Performance of SimCode: time 8.51e-07/1.334, allocations: 0 / 0.7738 GB, free: 194.9 MB / 0.5607 GB Notification: Performance of Templates: time 0.0908/1.425, allocations: 67.46 MB / 0.8397 GB, free: 134.7 MB / 0.5607 GB " [Timeout remaining time 659] 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 -s gbode -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: 7.416075586006627]