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.001317/0.001317, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.00137/0.00137, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.528/1.528, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.002077/0.002077, allocations: 67.83 kB / 374.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1151, allocations: 53.32 MB / 427.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2254/0.3405, allocations: 11 MB / 438.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007357/0.3478, allocations: 3.685 MB / 442.1 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002534/0.3504, allocations: 64.28 kB / 442.1 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002951/0.3533, allocations: 0.8783 MB / 443 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004394/0.3577, allocations: 0.9099 MB / 443.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.3596, allocations: 462.5 kB / 444.4 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005319/0.3649, allocations: 2.945 MB / 447.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003526/0.3684, allocations: 1.977 MB / 449.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003625/0.372, allocations: 1.395 MB / 450.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004222/0.3762, allocations: 1.799 MB / 452.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001409/0.3777, allocations: 373.3 kB / 452.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001674/0.3793, allocations: 486.4 kB / 453.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001506/0.3808, allocations: 1.079 MB / 454.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003521/0.3844, allocations: 1.672 MB / 456.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008154/0.3925, allocations: 4.913 MB / 461 MB, free: 9.602 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.3925, allocations: 4 kB / 461 MB, free: 9.598 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3925, allocations: 0 / 461 MB, free: 9.598 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002677/0.3928, allocations: 1.188 kB / 461 MB, free: 9.598 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.01178/0.4046, allocations: 3.478 MB / 464.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.444e-05/0.4046, allocations: 9.062 kB / 464.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00184/0.4065, allocations: 362.3 kB / 464.8 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004758/0.4112, allocations: 1.839 MB / 466.7 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002044/0.4114, allocations: 191.5 kB / 466.9 MB, free: 5.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005125/0.412, allocations: 250.5 kB / 467.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007525/0.4195, allocations: 3.292 MB / 470.4 MB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.4e-05/0.4195, allocations: 10.38 kB / 470.4 MB, free: 3.547 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002466/0.4198, allocations: 97.47 kB / 470.5 MB, free: 3.473 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.4199, allocations: 128.4 kB / 470.6 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004933/0.4249, allocations: 2.748 MB / 473.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0193/0.4442, allocations: 10.41 MB / 483.8 MB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.4463, allocations: 1.29 MB / 485.1 MB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.4476, allocations: 0.7032 MB / 485.8 MB, free: 5.648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003768/0.4479, allocations: 213.5 kB / 486 MB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.401e-05/0.448, allocations: 43.56 kB / 486 MB, free: 5.355 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.357e-06/0.448, allocations: 0 / 486 MB, free: 5.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01697/0.465, allocations: 6.935 MB / 493 MB, free: 14.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.465, allocations: 65.06 kB / 493 MB, free: 14.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003394/0.4684, allocations: 1.794 MB / 494.8 MB, free: 12.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.4685, allocations: 45.7 kB / 494.9 MB, free: 12.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.4697, allocations: 1.322 MB / 496.2 MB, free: 11.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004519/0.4701, allocations: 448.2 kB / 496.6 MB, free: 10.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000556/0.4707, allocations: 295.5 kB / 496.9 MB, free: 10.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4708, allocations: 305.1 kB / 497.2 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.4722, allocations: 0.7807 MB / 498 MB, free: 9.234 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/0.4741, allocations: 1.288 MB / 499.3 MB, free: 7.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003397/0.4775, allocations: 2.206 MB / 0.4897 GB, free: 5.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.559e-05/0.4775, allocations: 4 kB / 0.4898 GB, free: 5.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004794/0.4823, allocations: 2.483 MB / 0.4922 GB, free: 2.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.687e-05/0.4823, allocations: 16.16 kB / 0.4922 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-05/0.4823, allocations: 16 kB / 0.4922 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007238/0.4831, allocations: 239.2 kB / 0.4924 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.4846, allocations: 415.3 kB / 0.4928 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003434/0.4881, allocations: 3.24 MB / 0.496 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.4902, allocations: 135.7 kB / 0.4961 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002498/0.4904, allocations: 71.94 kB / 0.4962 GB, free: 14.37 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.002148/0.4926, allocations: 0.8329 MB / 0.497 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008777/0.4934, allocations: 190.8 kB / 0.4972 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004727/0.4982, allocations: 2.044 MB / 0.4992 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/0.4982, allocations: 12 kB / 0.4992 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.4982, allocations: 4 kB / 0.4992 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/0.4982, allocations: 7.969 kB / 0.4992 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.5106, allocations: 4.745 MB / 0.5038 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.5106, allocations: 0 / 0.5038 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.5118, allocations: 263.9 kB / 0.5041 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006138/0.5124, allocations: 203.3 kB / 0.5043 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/0.5125, allocations: 24 kB / 0.5043 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00324/0.5157, allocations: 3.218 MB / 0.5075 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.5157, allocations: 5.125 kB / 0.5075 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005855/0.5216, allocations: 3.14 MB / 0.5105 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/0.5231, allocations: 435.8 kB / 0.5109 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008189/0.5239, allocations: 20 kB / 0.511 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/0.5254, allocations: 103.9 kB / 0.5111 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.5256, allocations: 84.83 kB / 0.5111 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.796e-05/0.5257, allocations: 32 kB / 0.5112 GB, free: 14.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0035/0.5292, allocations: 1.224 MB / 0.5124 GB, free: 13.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5292, allocations: 0 / 0.5124 GB, free: 13.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002953/0.5322, allocations: 495.9 kB / 0.5128 GB, free: 12.84 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.0005851/0.5328, allocations: 183.8 kB / 0.513 GB, free: 12.65 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004565/0.5373, allocations: 2.276 MB / 0.5152 GB, free: 10.31 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5374, allocations: 4.125 kB / 0.5152 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/0.5396, allocations: 1.272 MB / 0.5165 GB, free: 8.961 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/0.5434, allocations: 0.4964 MB / 0.517 GB, free: 8.492 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.5549, allocations: 4.942 MB / 0.5218 GB, free: 3.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/0.5576, allocations: 2.01 MB / 0.5238 GB, free: 1.438 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001793/0.5594, allocations: 0.496 MB / 0.5242 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006374/0.56, allocations: 139.4 kB / 0.5244 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.56, allocations: 0 / 0.5244 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of Templates: time 0.0576/0.6176, allocations: 26.71 MB / 0.5505 GB, free: 6.359 MB / 462.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.6334813460707664]