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.001345/0.001345, allocations: 106.4 kB / 21.22 MB, free: 0.6758 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.001477/0.001477, allocations: 209.9 kB / 24.53 MB, free: 4.035 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.475/1.475, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.001936/0.001936, allocations: 68.95 kB / 379.1 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2718, allocations: 53.37 MB / 432.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01692/0.2887, allocations: 11.05 MB / 443.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00885/0.2975, allocations: 3.696 MB / 447.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002188/0.2997, allocations: 83.44 kB / 447.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.3027, allocations: 0.8813 MB / 448.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004023/0.3067, allocations: 0.9243 MB / 449.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.3083, allocations: 467.2 kB / 449.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004796/0.3131, allocations: 2.95 MB / 452.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003141/0.3162, allocations: 1.564 MB / 454 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002658/0.3189, allocations: 1.417 MB / 455.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003336/0.3222, allocations: 1.802 MB / 457.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000992/0.3232, allocations: 376 kB / 457.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001507/0.3247, allocations: 491.8 kB / 458.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001739/0.3265, allocations: 1.091 MB / 459.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00304/0.3295, allocations: 1.672 MB / 460.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006276/0.3358, allocations: 4.914 MB / 465.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3358, allocations: 0 / 465.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3358, allocations: 0 / 465.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000101/0.3359, allocations: 4 kB / 465.8 MB, free: 5.457 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.008574/0.3445, allocations: 3.413 MB / 469.2 MB, free: 1.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3445, allocations: 11.98 kB / 469.2 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.3455, allocations: 366.8 kB / 469.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003441/0.3489, allocations: 1.748 MB / 471.3 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.3491, allocations: 193.3 kB / 471.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004008/0.3495, allocations: 255.9 kB / 471.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006189/0.3557, allocations: 3.279 MB / 475 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.584e-05/0.3558, allocations: 11.98 kB / 475 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/0.356, allocations: 99.98 kB / 475.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/0.3562, allocations: 124.9 kB / 475.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005028/0.3612, allocations: 2.752 MB / 478 MB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.017/0.3782, allocations: 10.22 MB / 488.2 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.38, allocations: 1.07 MB / 489.3 MB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/0.3812, allocations: 0.7071 MB / 490 MB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000252/0.3815, allocations: 58.05 kB / 490.1 MB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.3815, allocations: 39.56 kB / 490.1 MB, free: 12.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.645e-06/0.3815, allocations: 0 / 490.1 MB, free: 12.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01607/0.3976, allocations: 6.64 MB / 496.7 MB, free: 5.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.3977, allocations: 68.34 kB / 496.8 MB, free: 5.801 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00289/0.4006, allocations: 1.794 MB / 498.6 MB, free: 4.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.4007, allocations: 45.7 kB / 498.6 MB, free: 3.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.4017, allocations: 1.306 MB / 500 MB, free: 2.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004302/0.4021, allocations: 452.1 kB / 0.4887 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004822/0.4026, allocations: 299.5 kB / 0.489 GB, free: 1.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4027, allocations: 305.1 kB / 0.4892 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.404, allocations: 0.773 MB / 0.49 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.4056, allocations: 1.292 MB / 0.4913 GB, free: 15.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003126/0.4088, allocations: 2.214 MB / 0.4934 GB, free: 12.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.4088, allocations: 4 kB / 0.4934 GB, free: 12.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004495/0.4133, allocations: 2.479 MB / 0.4958 GB, free: 10.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.4133, allocations: 12.62 kB / 0.4959 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.657e-05/0.4133, allocations: 16 kB / 0.4959 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006852/0.414, allocations: 247.2 kB / 0.4961 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.4155, allocations: 415.3 kB / 0.4965 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002903/0.4184, allocations: 3.039 MB / 0.4995 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.4199, allocations: 127.8 kB / 0.4996 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.42, allocations: 75.92 kB / 0.4997 GB, free: 6.195 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.001555/0.4216, allocations: 0.8212 MB / 0.5005 GB, free: 5.363 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005317/0.4221, allocations: 198.7 kB / 0.5007 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/0.4258, allocations: 2.039 MB / 0.5026 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.4258, allocations: 16 kB / 0.5027 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.4258, allocations: 4 kB / 0.5027 GB, free: 3.086 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.4258, allocations: 3.984 kB / 0.5027 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008573/0.4344, allocations: 4.713 MB / 0.5073 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.4344, allocations: 4 kB / 0.5073 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.4355, allocations: 259.6 kB / 0.5075 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005699/0.4361, allocations: 203.5 kB / 0.5077 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.2e-05/0.4361, allocations: 24 kB / 0.5077 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00296/0.4391, allocations: 3.004 MB / 0.5107 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4391, allocations: 8.016 kB / 0.5107 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004924/0.444, allocations: 3.148 MB / 0.5138 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000985/0.445, allocations: 354.6 kB / 0.5141 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.4452, allocations: 27.94 kB / 0.5141 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009173/0.4462, allocations: 99.88 kB / 0.5142 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.4463, allocations: 84.84 kB / 0.5143 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.741e-05/0.4464, allocations: 35.98 kB / 0.5143 GB, free: 6.738 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001928/0.4483, allocations: 1.22 MB / 0.5155 GB, free: 5.527 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4483, allocations: 0 / 0.5155 GB, free: 5.527 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001578/0.4499, allocations: 495.9 kB / 0.516 GB, free: 5.043 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.0003828/0.4503, allocations: 194.9 kB / 0.5162 GB, free: 4.844 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003655/0.454, allocations: 2.118 MB / 0.5183 GB, free: 2.699 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.454, allocations: 0 / 0.5183 GB, free: 2.699 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.4558, allocations: 1.129 MB / 0.5194 GB, free: 1.535 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.4579, allocations: 0.4957 MB / 0.5198 GB, free: 1.055 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008343/0.4662, allocations: 4.97 MB / 0.5247 GB, free: 12.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001947/0.4682, allocations: 2.01 MB / 0.5267 GB, free: 9.977 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001438/0.4696, allocations: 0.496 MB / 0.5271 GB, free: 9.477 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004205/0.47, allocations: 139.4 kB / 0.5273 GB, free: 9.34 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.47, allocations: 0 / 0.5273 GB, free: 9.34 MB / 446.1 MB Notification: Performance of Templates: time 0.2826/0.7526, allocations: 27.65 MB / 0.5543 GB, free: 93.08 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.744699080474675]