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.001505/0.001505, allocations: 117.9 kB / 21.18 MB, free: 0.6289 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.001674/0.001674, allocations: 202.8 kB / 24.46 MB, free: 3.902 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.4/1.4, allocations: 230.5 MB / 258.1 MB, free: 8.141 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.001977/0.001977, allocations: 71.88 kB / 378.8 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2541, allocations: 53.31 MB / 432.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03193/0.286, allocations: 28.8 MB / 460.9 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.3046, allocations: 8.532 MB / 469.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007284/0.3119, allocations: 215.4 kB / 469.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02016/0.332, allocations: 8.276 MB / 477.9 MB, free: 9.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.3423, allocations: 2.832 MB / 480.7 MB, free: 6.512 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005974/0.3482, allocations: 1.903 MB / 482.6 MB, free: 4.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01517/0.3634, allocations: 10.04 MB / 492.7 MB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02456/0.388, allocations: 13.17 MB / 0.494 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008785/0.3968, allocations: 5.385 MB / 0.4993 GB, free: 7.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01055/0.4073, allocations: 6.14 MB / 0.5053 GB, free: 1.672 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004079/0.4114, allocations: 1.539 MB / 0.5068 GB, free: 136 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006051/0.4174, allocations: 1.921 MB / 0.5086 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004708/0.4221, allocations: 2.993 MB / 0.5116 GB, free: 11.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01009/0.4322, allocations: 5.844 MB / 0.5173 GB, free: 5.344 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02717/0.4594, allocations: 20.69 MB / 0.5375 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.4594, allocations: 3.938 kB / 0.5375 GB, free: 0.582 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4594, allocations: 0 / 0.5375 GB, free: 0.582 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000564/0.46, allocations: 0 / 0.5375 GB, free: 0.582 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.242/0.702, allocations: 12.09 MB / 0.5493 GB, free: 88.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.7021, allocations: 9.875 kB / 0.5493 GB, free: 88.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02876/0.7308, allocations: 5.597 MB / 0.5548 GB, free: 86.17 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/0.7453, allocations: 6.34 MB / 0.561 GB, free: 80.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005577/0.7459, allocations: 0.7018 MB / 0.5616 GB, free: 79.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003425/0.7493, allocations: 0.9252 MB / 0.5625 GB, free: 78.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03288/0.7822, allocations: 15.1 MB / 0.5773 GB, free: 63.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005313/0.7827, allocations: 19.91 kB / 0.5773 GB, free: 63.67 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003132/0.7859, allocations: 387.3 kB / 0.5777 GB, free: 63.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004251/0.7863, allocations: 0.5194 MB / 0.5782 GB, free: 62.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02518/0.8115, allocations: 13.77 MB / 0.5916 GB, free: 48.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06584/0.8773, allocations: 47.65 MB / 0.6382 GB, free: 368 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02591/0.9032, allocations: 28.24 MB / 0.6657 GB, free: 432 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005272/0.9085, allocations: 2.808 MB / 0.6685 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005827/0.9091, allocations: 346.2 kB / 0.6688 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.923e-05/0.9091, allocations: 69.58 kB / 0.6689 GB, free: 13.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.803e-06/0.9092, allocations: 4 kB / 0.6689 GB, free: 13.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03274/0.9419, allocations: 14.89 MB / 0.6834 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/0.942, allocations: 98.48 kB / 0.6835 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005543/0.9475, allocations: 3.603 MB / 0.687 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005312/0.9481, allocations: 93.7 kB / 0.6871 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003204/0.9513, allocations: 4.192 MB / 0.6912 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001683/0.9529, allocations: 1.406 MB / 0.6926 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/0.9548, allocations: 1.172 MB / 0.6937 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.9549, allocations: 305.1 kB / 0.694 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00409/0.959, allocations: 2.6 MB / 0.6966 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006241/0.9652, allocations: 5.091 MB / 0.7015 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/0.977, allocations: 8.352 MB / 0.7097 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.23e-05/0.977, allocations: 24 kB / 0.7097 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01669/0.9937, allocations: 8.649 MB / 0.7182 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.196e-05/0.9938, allocations: 43.94 kB / 0.7182 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/0.994, allocations: 84 kB / 0.7183 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002429/0.9964, allocations: 0.8463 MB / 0.7191 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005123/1.002, allocations: 1.377 MB / 0.7205 GB, free: 5.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/1.014, allocations: 7.685 MB / 0.728 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004687/1.019, allocations: 327.5 kB / 0.7283 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00118/1.02, 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.006905/1.027, allocations: 3.517 MB / 0.732 GB, free: 9.758 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/1.028, allocations: 429.2 kB / 0.7324 GB, free: 9.336 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/1.04, allocations: 5.953 MB / 0.7382 GB, free: 3.344 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.152e-05/1.04, allocations: 40 kB / 0.7383 GB, free: 3.305 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.237e-05/1.04, allocations: 15.94 kB / 0.7383 GB, free: 3.289 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.265e-05/1.04, allocations: 23.86 kB / 0.7383 GB, free: 3.266 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4282/1.468, allocations: 14.95 MB / 0.7529 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/1.468, allocations: 3.812 kB / 0.7529 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002365/1.47, allocations: 0.6915 MB / 0.7536 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001772/1.472, allocations: 0.7184 MB / 0.7543 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002703/1.473, allocations: 97.38 kB / 0.7544 GB, free: 177.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007316/1.48, allocations: 6.707 MB / 0.7609 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.48, allocations: 11.44 kB / 0.7609 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01175/1.492, allocations: 8.781 MB / 0.7695 GB, free: 170.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002339/1.494, allocations: 0.9042 MB / 0.7704 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008181/1.495, allocations: 77.36 kB / 0.7705 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002026/1.497, allocations: 176.2 kB / 0.7706 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004144/1.497, allocations: 274.2 kB / 0.7709 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/1.497, allocations: 118.3 kB / 0.771 GB, free: 169.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003107/1.5, allocations: 2.418 MB / 0.7734 GB, free: 168.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.5, allocations: 0 / 0.7734 GB, free: 168.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005274/1.506, allocations: 1.552 MB / 0.7749 GB, free: 167.6 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.0006438/1.506, allocations: 263.7 kB / 0.7751 GB, free: 167.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008371/1.515, allocations: 6.288 MB / 0.7813 GB, free: 162 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.515, allocations: 3.562 kB / 0.7813 GB, free: 162 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003903/1.519, allocations: 2.741 MB / 0.784 GB, free: 159.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004455/1.523, allocations: 0.9673 MB / 0.7849 GB, free: 158.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02608/1.549, allocations: 15.76 MB / 0.8003 GB, free: 144 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006967/1.556, allocations: 5.791 MB / 0.8059 GB, free: 138.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/1.558, allocations: 403.3 kB / 0.8063 GB, free: 137.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.262e-06/1.558, allocations: 0 / 0.8063 GB, free: 137.8 MB / 0.545 GB Notification: Performance of Templates: time 0.3453/1.903, allocations: 153.4 MB / 0.9561 GB, free: 184 MB / 0.5607 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 -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: 15.911547557916492]