Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 105.5 kB / 17.73 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 51.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.126, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005081/0.1312, allocations: 2.72 MB / 377.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.1338, allocations: 1.132 MB / 379 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002934/0.1341, allocations: 4 kB / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.1344, allocations: 71.36 kB / 379.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007083/0.1351, allocations: 194.8 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.1356, allocations: 247.6 kB / 379.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2716/0.4072, allocations: 0.6366 MB / 380.1 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003959/0.4076, allocations: 120.8 kB / 380.2 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008516/0.4085, allocations: 300.9 kB / 380.5 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006126/0.4091, allocations: 343 kB / 380.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.4093, allocations: 52.06 kB / 380.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004361/0.4097, allocations: 142.5 kB / 381.1 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002807/0.41, allocations: 146.9 kB / 381.2 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003955/0.4104, allocations: 248.7 kB / 381.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.4118, allocations: 0.6436 MB / 382.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4118, allocations: 3.438 kB / 382.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4118, allocations: 0.5625 kB / 382.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.4118, allocations: 0 / 382.1 MB, free: 9.594 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001937/0.4138, allocations: 0.7984 MB / 382.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.4138, allocations: 16.86 kB / 382.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003686/0.4142, allocations: 65.34 kB / 383 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000637/0.4148, allocations: 365.5 kB / 383.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.415, allocations: 97.56 kB / 383.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.4151, allocations: 42.89 kB / 383.5 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.4164, allocations: 0.5599 MB / 384 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/0.4164, allocations: 2.219 kB / 384 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.265e-05/0.4165, allocations: 17.16 kB / 384.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.4165, allocations: 8.906 kB / 384.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.4181, allocations: 0.6406 MB / 384.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.4209, allocations: 1.283 MB / 386 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.4223, allocations: 0.5463 MB / 386.5 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006529/0.423, allocations: 323.4 kB / 386.8 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/0.423, allocations: 9.219 kB / 386.9 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.4231, allocations: 50.88 kB / 386.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.404e-06/0.4231, allocations: 0 / 386.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.00732/0.4304, allocations: 2.863 MB / 389.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.4305, allocations: 89.14 kB / 389.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004566/0.4309, allocations: 330.6 kB / 390.2 MB, free: 6.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.252e-05/0.431, allocations: 43.98 kB / 390.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.4311, allocations: 164.7 kB / 390.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.4313, allocations: 226.4 kB / 390.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.4316, allocations: 122.8 kB / 390.7 MB, free: 5.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.4317, allocations: 348.1 kB / 391.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006321/0.4323, allocations: 293.9 kB / 391.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007269/0.4331, allocations: 353.5 kB / 391.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.4341, allocations: 0.5218 MB / 392.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.4341, allocations: 5.375 kB / 392.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001729/0.4359, allocations: 0.876 MB / 393.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.4359, allocations: 4.469 kB / 393.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4359, allocations: 9.031 kB / 393.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.4372, allocations: 477.9 kB / 393.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004342/0.4376, allocations: 86.48 kB / 393.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.439, allocations: 1.071 MB / 394.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005409/0.4396, allocations: 65.39 kB / 394.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.461e-05/0.4397, allocations: 22.59 kB / 394.8 MB, free: 3.676 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002655/0.4399, allocations: 186.3 kB / 395 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.4401, allocations: 48.44 kB / 395 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001564/0.4402, allocations: 64.91 kB / 395.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.4402, allocations: 7.797 kB / 395.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.4403, allocations: 1.25 kB / 395.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.4403, allocations: 8.734 kB / 395.1 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003548/0.4438, allocations: 1.75 MB / 396.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.4438, allocations: 2.375 kB / 396.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.4442, allocations: 78.17 kB / 397 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.4454, allocations: 453.8 kB / 397.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.225e-05/0.4455, allocations: 27.48 kB / 397.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.4467, allocations: 1.036 MB / 398.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4467, allocations: 2.031 kB / 398.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/0.4493, allocations: 1.303 MB / 399.8 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/0.4496, allocations: 175.8 kB / 399.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.4497, allocations: 18.98 kB / 400 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000465/0.4502, allocations: 55.94 kB / 400 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.4504, allocations: 85.81 kB / 400.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.282e-05/0.4505, allocations: 29.97 kB / 400.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003133/0.4508, allocations: 241.5 kB / 400.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4508, allocations: 0 / 400.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000868/0.4517, allocations: 146.7 kB / 400.5 MB, free: 0.8398 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003035/0.452, allocations: 153.8 kB / 400.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.4538, allocations: 0.7131 MB / 401.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4538, allocations: 0 / 401.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008921/0.4547, allocations: 397.1 kB / 401.8 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005515/0.4552, allocations: 48.14 kB / 401.8 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.4581, allocations: 1.115 MB / 402.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.4585, allocations: 0.8199 MB / 403.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002368/0.4588, allocations: 65.17 kB / 403.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.4589, allocations: 45.05 kB / 403.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4589, allocations: 1.188 kB / 403.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of Templates: time 0.0203/0.4793, allocations: 10.05 MB / 413.9 MB, free: 7.559 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi