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.00176/0.00176, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.002189/0.002189, allocations: 217.4 kB / 24.47 MB, free: 4.359 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.456/1.456, allocations: 230.4 MB / 258.1 MB, free: 8.148 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.002038/0.002038, allocations: 71.81 kB / 378.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2816, allocations: 53.32 MB / 432.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01438/0.2959, allocations: 11.05 MB / 443.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00793/0.3039, allocations: 3.692 MB / 446.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001485/0.3054, allocations: 63.75 kB / 446.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002073/0.3074, allocations: 0.8851 MB / 447.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002921/0.3104, allocations: 0.9087 MB / 448.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.3118, allocations: 463.2 kB / 449.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004091/0.3159, allocations: 2.942 MB / 452.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002383/0.3183, allocations: 1.564 MB / 453.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002312/0.3206, allocations: 1.394 MB / 455 MB, free: 272 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0032/0.3238, allocations: 1.794 MB / 456.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006542/0.3244, allocations: 372 kB / 457.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.3255, allocations: 491.7 kB / 457.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.3267, allocations: 1.087 MB / 458.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002165/0.3288, allocations: 1.676 MB / 460.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006021/0.3349, allocations: 4.904 MB / 465.3 MB, free: 5.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3349, allocations: 0 / 465.3 MB, free: 5.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3349, allocations: 4 kB / 465.3 MB, free: 5.922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.279e-05/0.3349, allocations: 3.938 kB / 465.3 MB, free: 5.918 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.006965/0.3419, allocations: 3.485 MB / 468.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3419, allocations: 12.03 kB / 468.8 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009439/0.3429, allocations: 358.8 kB / 469.2 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003577/0.3465, allocations: 1.843 MB / 471 MB, free: 104 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001758/0.3466, allocations: 185.5 kB / 471.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004102/0.347, allocations: 263.7 kB / 471.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005531/0.3526, allocations: 3.279 MB / 474.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.646e-05/0.3526, allocations: 4 kB / 474.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002497/0.3529, allocations: 104 kB / 474.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001438/0.353, allocations: 128.9 kB / 475 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00508/0.3581, allocations: 2.752 MB / 477.7 MB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/0.3751, allocations: 10.41 MB / 488.1 MB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002006/0.3771, allocations: 1.307 MB / 489.4 MB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.3784, allocations: 0.7032 MB / 490.1 MB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003107/0.3787, allocations: 204.3 kB / 490.3 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.3787, allocations: 47.55 kB / 490.4 MB, free: 12.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.517e-06/0.3787, allocations: 0 / 490.4 MB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01611/0.3949, allocations: 6.939 MB / 497.3 MB, free: 5.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.3949, allocations: 68.34 kB / 497.4 MB, free: 5.039 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002765/0.3977, allocations: 1.79 MB / 499.2 MB, free: 3.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.3978, allocations: 45.7 kB / 499.2 MB, free: 3.199 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.3988, allocations: 1.31 MB / 0.4888 GB, free: 1.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004095/0.3992, allocations: 452.2 kB / 0.4892 GB, free: 1.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004914/0.3997, allocations: 295.5 kB / 0.4895 GB, free: 1.133 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3999, allocations: 305.1 kB / 0.4898 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.4012, allocations: 0.773 MB / 0.4906 GB, free: 60 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.4029, allocations: 1.296 MB / 0.4918 GB, free: 14.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00316/0.406, allocations: 2.214 MB / 0.494 GB, free: 12.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/0.406, allocations: 4 kB / 0.494 GB, free: 12.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004395/0.4104, allocations: 2.475 MB / 0.4964 GB, free: 9.594 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.4105, allocations: 16.12 kB / 0.4964 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/0.4105, allocations: 16 kB / 0.4964 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00069/0.4112, allocations: 247.2 kB / 0.4967 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.4127, allocations: 415.3 kB / 0.4971 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003215/0.416, allocations: 3.243 MB / 0.5002 GB, free: 5.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.4175, allocations: 135.7 kB / 0.5004 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.4177, allocations: 75.97 kB / 0.5004 GB, free: 5.164 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.001506/0.4192, allocations: 0.8212 MB / 0.5012 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003786/0.4195, allocations: 198.7 kB / 0.5014 GB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.4232, allocations: 2.046 MB / 0.5034 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.4232, allocations: 19.94 kB / 0.5035 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4232, allocations: 0 / 0.5035 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.4233, allocations: 3.984 kB / 0.5035 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008991/0.4322, allocations: 4.737 MB / 0.5081 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.4323, allocations: 0 / 0.5081 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.4335, allocations: 267.9 kB / 0.5083 GB, free: 12.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005838/0.434, allocations: 199.3 kB / 0.5085 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.28e-05/0.4341, allocations: 27.98 kB / 0.5086 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003085/0.4372, allocations: 3.211 MB / 0.5117 GB, free: 9.215 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.4372, allocations: 8.062 kB / 0.5117 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005056/0.4423, allocations: 3.132 MB / 0.5148 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.4435, allocations: 439.7 kB / 0.5152 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002617/0.4437, allocations: 24 kB / 0.5152 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009846/0.4447, allocations: 103.9 kB / 0.5153 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.4449, allocations: 80.83 kB / 0.5154 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.392e-05/0.445, allocations: 35.98 kB / 0.5154 GB, free: 5.332 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00196/0.4469, allocations: 1.22 MB / 0.5166 GB, free: 4.121 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4469, allocations: 0 / 0.5166 GB, free: 4.121 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001658/0.4486, allocations: 491.9 kB / 0.5171 GB, free: 3.641 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.000444/0.449, allocations: 199 kB / 0.5173 GB, free: 3.438 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003885/0.4529, allocations: 2.276 MB / 0.5195 GB, free: 1.098 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4529, allocations: 4.25 kB / 0.5195 GB, free: 1.094 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002066/0.455, allocations: 1.265 MB / 0.5207 GB, free: 15.76 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.4575, allocations: 0.4947 MB / 0.5212 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008699/0.4662, allocations: 4.972 MB / 0.5261 GB, free: 10.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001939/0.4681, allocations: 2.01 MB / 0.528 GB, free: 8.184 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00155/0.4697, allocations: 500 kB / 0.5285 GB, free: 7.691 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/0.4701, allocations: 147.4 kB / 0.5286 GB, free: 7.547 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4701, allocations: 0 / 0.5286 GB, free: 7.547 MB / 446.1 MB Notification: Performance of Templates: time 0.2585/0.7287, allocations: 27.11 MB / 0.5551 GB, free: 91.56 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 -s cvode -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: 5.823075387161225]