Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001256/0.001256, allocations: 115.5 kB / 21.18 MB, free: 0.5898 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.001358/0.001358, allocations: 210.9 kB / 24.47 MB, free: 3.996 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.41/1.41, 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [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.002193/0.002193, allocations: 67.89 kB / 378.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2488, allocations: 53.31 MB / 432.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01393/0.2627, allocations: 11.05 MB / 443.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007903/0.2706, allocations: 3.692 MB / 446.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001932/0.2725, allocations: 63.75 kB / 446.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00229/0.2748, allocations: 0.8929 MB / 447.8 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003145/0.278, allocations: 0.9009 MB / 448.7 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.2792, allocations: 463.2 kB / 449.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003927/0.2831, allocations: 2.942 MB / 452.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002278/0.2854, allocations: 1.564 MB / 453.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.2875, allocations: 1.394 MB / 455 MB, free: 296 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002733/0.2902, allocations: 1.798 MB / 456.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006149/0.2908, allocations: 372 kB / 457.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000993/0.2918, allocations: 491.8 kB / 457.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.2929, allocations: 1.083 MB / 458.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00199/0.2949, allocations: 1.68 MB / 460.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006014/0.3009, allocations: 4.908 MB / 465.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3009, allocations: 0 / 465.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3009, allocations: 4 kB / 465.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001014/0.301, allocations: 0 / 465.3 MB, free: 5.938 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007289/0.3083, allocations: 3.481 MB / 468.8 MB, free: 2.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3084, allocations: 19.97 kB / 468.8 MB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009496/0.3093, allocations: 358.8 kB / 469.2 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003593/0.3129, allocations: 1.832 MB / 471 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/0.3131, allocations: 201.4 kB / 471.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004183/0.3135, allocations: 247.9 kB / 471.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00546/0.319, allocations: 3.287 MB / 474.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-05/0.319, allocations: 8 kB / 474.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/0.3193, allocations: 99.98 kB / 474.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.3194, allocations: 128.9 kB / 475 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00481/0.3242, allocations: 2.748 MB / 477.7 MB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01723/0.3415, allocations: 10.42 MB / 488.1 MB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.3434, allocations: 1.292 MB / 489.4 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.3447, allocations: 0.7153 MB / 490.1 MB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003101/0.345, allocations: 203.2 kB / 490.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.345, allocations: 43.56 kB / 490.4 MB, free: 12.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.885e-06/0.345, allocations: 0 / 490.4 MB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01564/0.3606, allocations: 6.934 MB / 497.3 MB, free: 5.141 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.3607, allocations: 64.41 kB / 497.4 MB, free: 5.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/0.3634, allocations: 1.794 MB / 499.2 MB, free: 3.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.691e-05/0.3635, allocations: 45.7 kB / 499.2 MB, free: 3.223 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/0.3645, allocations: 1.318 MB / 0.4888 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003855/0.3649, allocations: 448.2 kB / 0.4892 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004781/0.3654, allocations: 295.5 kB / 0.4895 GB, free: 1.152 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.3655, allocations: 305.1 kB / 0.4898 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.3668, allocations: 0.7769 MB / 0.4906 GB, free: 76 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.3684, allocations: 1.292 MB / 0.4918 GB, free: 14.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003027/0.3714, allocations: 2.21 MB / 0.494 GB, free: 12.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/0.3715, allocations: 4 kB / 0.494 GB, free: 12.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00423/0.3757, allocations: 2.483 MB / 0.4964 GB, free: 9.609 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.3757, allocations: 15.06 kB / 0.4964 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.3757, allocations: 23.94 kB / 0.4965 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006468/0.3764, allocations: 239.2 kB / 0.4967 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/0.3779, allocations: 415.3 kB / 0.4971 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.381, allocations: 3.247 MB / 0.5002 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.3825, allocations: 135.7 kB / 0.5004 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.3826, allocations: 68 kB / 0.5004 GB, free: 5.188 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00149/0.3841, allocations: 0.8252 MB / 0.5012 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003874/0.3845, allocations: 190.8 kB / 0.5014 GB, free: 4.164 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003481/0.388, allocations: 2.042 MB / 0.5034 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.388, allocations: 12 kB / 0.5034 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.388, allocations: 4 kB / 0.5034 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.388, allocations: 7.969 kB / 0.5034 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008263/0.3963, allocations: 4.737 MB / 0.5081 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3963, allocations: 0 / 0.5081 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.3974, allocations: 263.6 kB / 0.5083 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005458/0.398, allocations: 203.5 kB / 0.5085 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.984e-05/0.398, allocations: 28 kB / 0.5085 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002887/0.4009, allocations: 3.218 MB / 0.5117 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4009, allocations: 4.062 kB / 0.5117 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/0.406, allocations: 3.14 MB / 0.5148 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.4071, allocations: 435.8 kB / 0.5152 GB, free: 5.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/0.4074, allocations: 20 kB / 0.5152 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009456/0.4083, allocations: 103.9 kB / 0.5153 GB, free: 5.469 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.4085, allocations: 84.83 kB / 0.5154 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/0.4086, allocations: 32 kB / 0.5154 GB, free: 5.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00194/0.4105, allocations: 1.224 MB / 0.5166 GB, free: 4.141 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4105, allocations: 0 / 0.5166 GB, free: 4.141 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001596/0.4121, allocations: 491.9 kB / 0.5171 GB, free: 3.66 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004137/0.4125, allocations: 195 kB / 0.5173 GB, free: 3.465 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00378/0.4163, allocations: 2.276 MB / 0.5195 GB, free: 1.125 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.4163, allocations: 4.188 kB / 0.5195 GB, free: 1.121 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001926/0.4182, allocations: 1.268 MB / 0.5207 GB, free: 15.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/0.4206, allocations: 0.4983 MB / 0.5212 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008544/0.4291, allocations: 5.027 MB / 0.5261 GB, free: 10.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/0.431, allocations: 1.981 MB / 0.528 GB, free: 8.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006294/0.4316, allocations: 151.4 kB / 0.5282 GB, free: 8.031 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4316, allocations: 0 / 0.5282 GB, free: 8.031 MB / 446.1 MB Notification: Performance of Templates: time 0.2563/0.6879, allocations: 83.24 MB / 0.6095 GB, free: 34 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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: 12.646925940178335]