Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001873/0.001873, allocations: 115 kB / 18.46 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002317/0.002317, allocations: 207.3 kB / 21.41 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 254.8 MB, free: 15.23 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 52.06 kB / 374.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1114, allocations: 53.33 MB / 427.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01898/0.1304, allocations: 15.86 MB / 443.4 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2353/0.3656, allocations: 5.363 MB / 448.7 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003663/0.3693, allocations: 129.2 kB / 448.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003433/0.3727, allocations: 1.141 MB / 450 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004496/0.3772, allocations: 1.286 MB / 451.3 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002421/0.3796, allocations: 0.9229 MB / 452.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005297/0.3849, allocations: 3.648 MB / 455.9 MB, free: 8.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003514/0.3885, allocations: 2.372 MB / 458.2 MB, free: 8.277 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00336/0.3918, allocations: 1.775 MB / 460 MB, free: 7.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004191/0.396, allocations: 2.153 MB / 462.2 MB, free: 6.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001202/0.3972, allocations: 482.5 kB / 462.6 MB, free: 6.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002478/0.3997, allocations: 0.7094 MB / 463.3 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.401, allocations: 1.152 MB / 464.5 MB, free: 5.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003612/0.4046, allocations: 2.046 MB / 466.5 MB, free: 4.344 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008381/0.413, allocations: 6.323 MB / 472.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.413, allocations: 0 / 472.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.413, allocations: 0 / 472.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001902/0.4132, allocations: 1.125 kB / 472.9 MB, free: 1.617 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01298/0.4262, allocations: 4.371 MB / 477.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4262, allocations: 9.594 kB / 477.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003639/0.4298, allocations: 0.6289 MB / 477.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00551/0.4353, allocations: 2.303 MB / 480.2 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002414/0.4356, allocations: 239 kB / 480.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00104/0.4366, allocations: 314.3 kB / 480.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008937/0.4456, allocations: 4.055 MB / 484.8 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.752e-05/0.4457, allocations: 7.031 kB / 484.8 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003243/0.446, allocations: 127.2 kB / 484.9 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.4461, allocations: 146 kB / 485 MB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006833/0.4529, allocations: 3.394 MB / 488.4 MB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02446/0.4774, allocations: 13.38 MB / 0.4901 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004956/0.4824, allocations: 4.174 MB / 0.4941 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.4842, allocations: 0.9249 MB / 0.495 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00573/0.49, allocations: 2.86 MB / 0.4978 GB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.49, allocations: 43.56 kB / 0.4979 GB, free: 3.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.585e-06/0.49, allocations: 0 / 0.4979 GB, free: 3.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01361/0.5036, allocations: 6.053 MB / 0.5038 GB, free: 13.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.5037, allocations: 72.72 kB / 0.5038 GB, free: 13.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00338/0.5071, allocations: 1.909 MB / 0.5057 GB, free: 11.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002293/0.5073, allocations: 45.7 kB / 0.5058 GB, free: 11.14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001295/0.5086, allocations: 1.561 MB / 0.5073 GB, free: 9.578 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005411/0.5091, allocations: 0.5009 MB / 0.5078 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000605/0.5097, allocations: 335.4 kB / 0.5081 GB, free: 8.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.5099, allocations: 310.9 kB / 0.5084 GB, free: 8.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.5112, allocations: 0.7691 MB / 0.5091 GB, free: 7.672 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.513, allocations: 1.376 MB / 0.5105 GB, free: 6.031 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003378/0.5164, allocations: 2.316 MB / 0.5127 GB, free: 3.457 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.311e-05/0.5164, allocations: 4 kB / 0.5127 GB, free: 3.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004548/0.5209, allocations: 2.498 MB / 0.5152 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.521, allocations: 12 kB / 0.5152 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.521, allocations: 20 kB / 0.5152 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003833/0.5214, allocations: 114.5 kB / 0.5153 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001837/0.5232, allocations: 491.5 kB / 0.5158 GB, free: 312 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.5244, allocations: 1.404 MB / 0.5172 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.5263, allocations: 119.8 kB / 0.5173 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/0.5264, allocations: 83.94 kB / 0.5174 GB, free: 14.56 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.002218/0.5287, allocations: 0.9852 MB / 0.5183 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008796/0.5295, allocations: 210.6 kB / 0.5185 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004021/0.5336, allocations: 1.966 MB / 0.5204 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.5336, allocations: 15.94 kB / 0.5205 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.5336, allocations: 3.984 kB / 0.5205 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.5336, allocations: 7.984 kB / 0.5205 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009294/0.5429, allocations: 5 MB / 0.5254 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.5429, allocations: 4 kB / 0.5254 GB, free: 6.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/0.5443, allocations: 303.5 kB / 0.5256 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003279/0.5447, allocations: 102.8 kB / 0.5257 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.434e-05/0.5447, allocations: 27.98 kB / 0.5258 GB, free: 5.836 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.5459, allocations: 1.371 MB / 0.5271 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.325e-06/0.5459, allocations: 11.94 kB / 0.5271 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005074/0.551, allocations: 3.1 MB / 0.5302 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.5522, allocations: 463.6 kB / 0.5306 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003166/0.5525, allocations: 28 kB / 0.5306 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.5536, allocations: 75.91 kB / 0.5307 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.5538, allocations: 97.06 kB / 0.5308 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.091e-05/0.5538, allocations: 36.05 kB / 0.5308 GB, free: 468 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002235/0.5561, allocations: 1.305 MB / 0.5321 GB, free: 15.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5561, allocations: 0 / 0.5321 GB, free: 15.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002219/0.5583, allocations: 0.5312 MB / 0.5326 GB, free: 14.6 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.0003913/0.5587, allocations: 179 kB / 0.5328 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003756/0.5624, allocations: 2.13 MB / 0.5349 GB, free: 12.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5625, allocations: 0 / 0.5349 GB, free: 12.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001736/0.5642, allocations: 1.104 MB / 0.5359 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00304/0.5672, allocations: 0.5264 MB / 0.5365 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.5785, allocations: 5.707 MB / 0.542 GB, free: 4.805 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002269/0.5807, allocations: 2.221 MB / 0.5442 GB, free: 2.547 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008866/0.5816, allocations: 175.4 kB / 0.5444 GB, free: 2.375 MB / 446.1 MB Notification: Performance of SimCode: time 1.343e-06/0.5816, allocations: 4 kB / 0.5444 GB, free: 2.371 MB / 446.1 MB Notification: Performance of Templates: time 0.1129/0.6945, allocations: 87.06 MB / 0.6294 GB, free: 11.4 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 13.608201100025326]