Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001598/0.001598, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001789/0.001789, allocations: 213.7 kB / 24.54 MB, free: 4.016 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.435/1.435, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.002025/0.002025, allocations: 72.53 kB / 379.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2689, allocations: 53.36 MB / 432.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01973/0.2887, allocations: 15.94 MB / 448.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01165/0.3003, allocations: 5.379 MB / 453.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003828/0.3042, allocations: 123.2 kB / 453.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003955/0.3081, allocations: 1.142 MB / 455 MB, free: 308 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004319/0.3124, allocations: 1.297 MB / 456.3 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002185/0.3146, allocations: 0.937 MB / 457.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004572/0.3192, allocations: 3.661 MB / 460.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002548/0.3217, allocations: 1.916 MB / 462.8 MB, free: 8.402 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00239/0.3241, allocations: 1.784 MB / 464.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002925/0.327, allocations: 2.156 MB / 466.8 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006534/0.3277, allocations: 476 kB / 467.2 MB, free: 3.984 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.3291, allocations: 0.7029 MB / 467.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.3302, allocations: 1.165 MB / 469.1 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002644/0.3329, allocations: 2.053 MB / 471.2 MB, free: 52 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007874/0.3407, allocations: 6.314 MB / 477.5 MB, free: 9.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3408, allocations: 0 / 477.5 MB, free: 9.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3408, allocations: 0 / 477.5 MB, free: 9.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001286/0.3409, allocations: 0 / 477.5 MB, free: 9.711 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01102/0.3519, allocations: 4.291 MB / 481.8 MB, free: 5.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.352, allocations: 12.03 kB / 481.8 MB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003372/0.3553, allocations: 0.6388 MB / 482.4 MB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005557/0.3609, allocations: 2.226 MB / 484.6 MB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.3611, allocations: 234.7 kB / 484.9 MB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005606/0.3617, allocations: 320.1 kB / 485.2 MB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007767/0.3694, allocations: 4.051 MB / 489.2 MB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.015e-05/0.3695, allocations: 15.94 kB / 489.2 MB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002988/0.3698, allocations: 120 kB / 489.4 MB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001718/0.37, allocations: 150.2 kB / 489.5 MB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00626/0.3763, allocations: 3.39 MB / 492.9 MB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02286/0.3991, allocations: 12.87 MB / 0.4939 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003622/0.4027, allocations: 1.76 MB / 0.4956 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.4046, allocations: 0.9337 MB / 0.4965 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005096/0.4097, allocations: 2.458 MB / 0.4989 GB, free: 7.688 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.4097, allocations: 47.48 kB / 0.499 GB, free: 7.633 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.615e-06/0.4097, allocations: 0 / 0.499 GB, free: 7.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01347/0.4232, allocations: 5.826 MB / 0.5047 GB, free: 1.773 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.4233, allocations: 64.72 kB / 0.5047 GB, free: 1.699 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/0.4267, allocations: 1.91 MB / 0.5066 GB, free: 15.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.4268, allocations: 53.7 kB / 0.5067 GB, free: 15.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.4282, allocations: 1.556 MB / 0.5082 GB, free: 14.12 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005201/0.4287, allocations: 0.5035 MB / 0.5087 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005907/0.4293, allocations: 335.4 kB / 0.509 GB, free: 13.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.4295, allocations: 309.1 kB / 0.5093 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.4309, allocations: 0.7652 MB / 0.51 GB, free: 12.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.4328, allocations: 1.383 MB / 0.5114 GB, free: 10.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003594/0.4364, allocations: 2.316 MB / 0.5136 GB, free: 7.965 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.515e-05/0.4364, allocations: 15.94 kB / 0.5137 GB, free: 7.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004775/0.4412, allocations: 2.475 MB / 0.5161 GB, free: 5.457 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.4412, allocations: 12 kB / 0.5161 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.799e-05/0.4413, allocations: 24.03 kB / 0.5161 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004745/0.4418, allocations: 130.4 kB / 0.5162 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/0.4436, allocations: 475.2 kB / 0.5167 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.4449, allocations: 1.307 MB / 0.518 GB, free: 3.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/0.4466, allocations: 115.8 kB / 0.5181 GB, free: 3.289 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/0.4467, allocations: 91.97 kB / 0.5182 GB, free: 3.199 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002006/0.4487, allocations: 0.9889 MB / 0.5191 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005012/0.4492, allocations: 218.6 kB / 0.5193 GB, free: 1.984 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003984/0.4532, allocations: 1.969 MB / 0.5213 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.4532, allocations: 16 kB / 0.5213 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4532, allocations: 0 / 0.5213 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.4532, allocations: 7.922 kB / 0.5213 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009151/0.4624, allocations: 4.967 MB / 0.5261 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.4624, allocations: 4.062 kB / 0.5261 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.4639, allocations: 311.5 kB / 0.5264 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003184/0.4642, allocations: 94.52 kB / 0.5265 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.557e-05/0.4643, allocations: 32 kB / 0.5265 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.4656, allocations: 1.279 MB / 0.5278 GB, free: 9.062 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.4656, allocations: 4 kB / 0.5278 GB, free: 9.059 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005343/0.4709, allocations: 3.087 MB / 0.5308 GB, free: 5.914 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.4721, allocations: 390.5 kB / 0.5312 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002448/0.4723, allocations: 28 kB / 0.5312 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009686/0.4733, allocations: 79.97 kB / 0.5313 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001935/0.4735, allocations: 101 kB / 0.5314 GB, free: 5.328 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.433e-05/0.4736, allocations: 36 kB / 0.5314 GB, free: 5.293 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002391/0.4759, allocations: 1.294 MB / 0.5327 GB, free: 3.977 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4759, allocations: 4 kB / 0.5327 GB, free: 3.973 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002245/0.4782, allocations: 0.5351 MB / 0.5332 GB, free: 3.438 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.000458/0.4786, allocations: 174.9 kB / 0.5334 GB, free: 3.258 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003988/0.4826, allocations: 1.972 MB / 0.5353 GB, free: 1.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.4826, allocations: 0 / 0.5353 GB, free: 1.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.4843, allocations: 0.9605 MB / 0.5362 GB, free: 296 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2113/0.6956, allocations: 0.5117 MB / 0.5367 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009197/0.7048, allocations: 5.698 MB / 0.5423 GB, free: 99.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001937/0.7067, allocations: 2.268 MB / 0.5445 GB, free: 98.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001436/0.7081, allocations: 0.5154 MB / 0.545 GB, free: 98.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003823/0.7085, allocations: 160.2 kB / 0.5452 GB, free: 98.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.7085, allocations: 0 / 0.5452 GB, free: 98.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04099/0.7495, allocations: 28.42 MB / 0.5729 GB, free: 75.55 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.829550201073289]