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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 113.4 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.558/1.558, allocations: 230.4 MB / 251.1 MB, free: 8.434 MB / 206.1 MB 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.002042/0.002042, allocations: 67.83 kB / 369 MB, free: 6.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2707, allocations: 53.31 MB / 422.3 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01898/0.2897, allocations: 15.87 MB / 438.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.302, allocations: 5.357 MB / 443.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003202/0.3052, allocations: 99.62 kB / 443.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003688/0.3089, allocations: 1.149 MB / 444.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004921/0.3138, allocations: 1.274 MB / 446 MB, free: 164 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.3167, allocations: 0.9389 MB / 447 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005654/0.3224, allocations: 3.646 MB / 450.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003413/0.3258, allocations: 2.369 MB / 453 MB, free: 9.117 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002709/0.3285, allocations: 1.745 MB / 454.7 MB, free: 7.367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003654/0.3322, allocations: 2.152 MB / 456.9 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009419/0.3331, allocations: 484 kB / 457.4 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001624/0.3347, allocations: 0.7028 MB / 458.1 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.3359, allocations: 1.157 MB / 459.2 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002537/0.3384, allocations: 2.05 MB / 461.3 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007712/0.3461, allocations: 6.318 MB / 467.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3461, allocations: 0 / 467.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3461, allocations: 0 / 467.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00016/0.3463, allocations: 0 / 467.6 MB, free: 10.47 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.0109/0.3572, allocations: 4.362 MB / 472 MB, free: 6.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.3572, allocations: 16.03 kB / 472 MB, free: 6.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002941/0.3602, allocations: 0.6388 MB / 472.6 MB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004336/0.3645, allocations: 2.302 MB / 474.9 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.3647, allocations: 242.5 kB / 475.1 MB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005135/0.3652, allocations: 324 kB / 475.5 MB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007395/0.3726, allocations: 4.051 MB / 479.5 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.136e-05/0.3727, allocations: 3.953 kB / 479.5 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002922/0.373, allocations: 132 kB / 479.6 MB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/0.3731, allocations: 146.2 kB / 479.8 MB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005995/0.3791, allocations: 3.393 MB / 483.2 MB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02062/0.3997, allocations: 13.39 MB / 496.6 MB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004884/0.4046, allocations: 4.166 MB / 0.489 GB, free: 8.086 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/0.4062, allocations: 0.9337 MB / 0.4899 GB, free: 7.156 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005125/0.4114, allocations: 2.855 MB / 0.4927 GB, free: 4.176 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.4114, allocations: 51.5 kB / 0.4928 GB, free: 4.117 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.625e-06/0.4114, allocations: 0 / 0.4928 GB, free: 4.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.013/0.4244, allocations: 6.04 MB / 0.4986 GB, free: 13.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.4245, allocations: 64.72 kB / 0.4987 GB, free: 13.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003942/0.4284, allocations: 1.913 MB / 0.5006 GB, free: 11.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.4285, allocations: 45.7 kB / 0.5006 GB, free: 11.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.4298, allocations: 1.56 MB / 0.5021 GB, free: 10.33 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005165/0.4304, allocations: 0.4958 MB / 0.5026 GB, free: 9.828 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005712/0.4309, allocations: 339.4 kB / 0.503 GB, free: 9.488 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.431, allocations: 305.1 kB / 0.5032 GB, free: 9.188 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.4324, allocations: 0.7769 MB / 0.504 GB, free: 8.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.4343, allocations: 1.375 MB / 0.5053 GB, free: 6.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003383/0.4377, allocations: 2.32 MB / 0.5076 GB, free: 4.184 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.781e-05/0.4377, allocations: 7.938 kB / 0.5076 GB, free: 4.176 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004578/0.4423, allocations: 2.483 MB / 0.51 GB, free: 1.676 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.819e-05/0.4423, allocations: 16 kB / 0.5101 GB, free: 1.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/0.4424, allocations: 20 kB / 0.5101 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003947/0.4428, allocations: 126.4 kB / 0.5102 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/0.4446, allocations: 483.5 kB / 0.5107 GB, free: 1.035 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.4459, allocations: 1.402 MB / 0.512 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.4475, allocations: 115.8 kB / 0.5121 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.4477, allocations: 91.92 kB / 0.5122 GB, free: 15.29 MB / 446.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.002302/0.45, allocations: 0.989 MB / 0.5132 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009299/0.451, allocations: 210.6 kB / 0.5134 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004314/0.4553, allocations: 1.969 MB / 0.5153 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/0.4553, allocations: 16 kB / 0.5153 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.4553, allocations: 4 kB / 0.5153 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.4553, allocations: 7.969 kB / 0.5153 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009983/0.4653, allocations: 4.999 MB / 0.5202 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.4653, allocations: 0 / 0.5202 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.4667, allocations: 307.6 kB / 0.5205 GB, free: 6.652 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003316/0.4671, allocations: 102.7 kB / 0.5206 GB, free: 6.543 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.4672, allocations: 27.98 kB / 0.5206 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.4683, allocations: 1.382 MB / 0.522 GB, free: 4.996 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4683, allocations: 3.938 kB / 0.522 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005127/0.4734, allocations: 3.099 MB / 0.525 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.4746, allocations: 471.5 kB / 0.5255 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005749/0.4752, allocations: 28 kB / 0.5255 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.4764, allocations: 75.91 kB / 0.5256 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.4766, allocations: 89.12 kB / 0.5257 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-05/0.4767, allocations: 39.98 kB / 0.5257 GB, free: 1.129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002703/0.4794, allocations: 1.301 MB / 0.527 GB, free: 15.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4794, allocations: 0 / 0.527 GB, free: 15.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002308/0.4817, allocations: 0.5351 MB / 0.5275 GB, free: 15.27 MB / 462.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.0004326/0.4822, allocations: 166.9 kB / 0.5276 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004063/0.4862, allocations: 2.134 MB / 0.5297 GB, free: 12.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.4862, allocations: 4 kB / 0.5297 GB, free: 12.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.4881, allocations: 1.095 MB / 0.5308 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003278/0.4914, allocations: 0.5326 MB / 0.5313 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.504, allocations: 5.696 MB / 0.5369 GB, free: 5.469 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003529/0.5075, allocations: 2.268 MB / 0.5391 GB, free: 3.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002215/0.5097, allocations: 0.5171 MB / 0.5396 GB, free: 2.641 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007237/0.5104, allocations: 159.4 kB / 0.5398 GB, free: 2.484 MB / 462.1 MB Notification: Performance of SimCode: time 1.292e-06/0.5105, allocations: 0 / 0.5398 GB, free: 2.484 MB / 462.1 MB Notification: Performance of Templates: time 0.2557/0.7661, allocations: 27.47 MB / 0.5666 GB, free: 101.2 MB / 462.1 MB 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] Reference file matches