Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001695/0.001696, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 55.91 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09161, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004539/0.09619, allocations: 2.864 MB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.09868, allocations: 1.275 MB / 363 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003603/0.09907, allocations: 4 kB / 363 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004634/0.09959, allocations: 99.27 kB / 363.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008437/0.1005, allocations: 213.9 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.1012, allocations: 251.5 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1023, allocations: 0.7056 MB / 364.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.1027, allocations: 131.4 kB / 364.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007202/0.1034, allocations: 331 kB / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005874/0.104, allocations: 374.8 kB / 365.1 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.1042, allocations: 56 kB / 365.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004124/0.1046, allocations: 159.9 kB / 365.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002244/0.1049, allocations: 163.6 kB / 365.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003397/0.1052, allocations: 266.7 kB / 365.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009092/0.1061, allocations: 0.7205 MB / 366.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1061, allocations: 4 kB / 366.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1062, allocations: 0 / 366.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.1062, allocations: 0 / 366.5 MB, free: 5.734 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001811/0.108, allocations: 0.8266 MB / 367.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.108, allocations: 8.031 kB / 367.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004543/0.1085, allocations: 80.23 kB / 367.4 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006496/0.1092, allocations: 374.4 kB / 367.7 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.1093, allocations: 101 kB / 367.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.542e-05/0.1094, allocations: 44.28 kB / 367.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.1105, allocations: 0.5606 MB / 368.4 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.1105, allocations: 0 / 368.4 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.1106, allocations: 16 kB / 368.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1106, allocations: 12 kB / 368.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.1119, allocations: 0.6089 MB / 369.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.1143, allocations: 1.31 MB / 370.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.1155, allocations: 0.5265 MB / 370.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000613/0.1161, allocations: 306.4 kB / 371.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.623e-05/0.1162, allocations: 12.48 kB / 371.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.1162, allocations: 39.12 kB / 371.3 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.094e-06/0.1162, allocations: 0 / 371.3 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1842/0.3004, allocations: 2.731 MB / 374 MB, free: 19.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.3005, allocations: 86.7 kB / 374.1 MB, free: 19.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005718/0.3011, allocations: 356 kB / 374.4 MB, free: 19.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.284e-05/0.3012, allocations: 43.95 kB / 374.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.3013, allocations: 165.8 kB / 374.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3014, allocations: 233.9 kB / 374.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002404/0.3017, allocations: 123.5 kB / 375 MB, free: 18.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.427e-05/0.3018, allocations: 353.2 kB / 375.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006365/0.3024, allocations: 267.1 kB / 375.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006861/0.3031, allocations: 333.8 kB / 375.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.3042, allocations: 492.4 kB / 376.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3042, allocations: 2.312 kB / 376.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001805/0.306, allocations: 0.8386 MB / 377.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.306, allocations: 6.688 kB / 377.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.306, allocations: 1.219 kB / 377.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.3071, allocations: 443.6 kB / 377.7 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003847/0.3075, allocations: 88.84 kB / 377.8 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/0.3087, allocations: 1.021 MB / 378.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.3092, allocations: 68.28 kB / 378.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.891e-05/0.3093, allocations: 30 kB / 378.9 MB, free: 16.85 MB / 302.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002202/0.3095, allocations: 183.6 kB / 379.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.3096, allocations: 41.56 kB / 379.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.3098, allocations: 64.19 kB / 379.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3098, allocations: 7.766 kB / 379.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.3098, allocations: 5.25 kB / 379.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.3098, allocations: 3.891 kB / 379.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003146/0.313, allocations: 1.704 MB / 380.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.313, allocations: 2.672 kB / 380.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.3134, allocations: 82.31 kB / 381 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009347/0.3143, allocations: 415.8 kB / 381.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.177e-05/0.3144, allocations: 26.28 kB / 381.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.3155, allocations: 0.9678 MB / 382.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3155, allocations: 5.609 kB / 382.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/0.3181, allocations: 1.226 MB / 383.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.3184, allocations: 186.2 kB / 383.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.3186, allocations: 18.89 kB / 383.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/0.319, allocations: 54.58 kB / 383.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.3193, allocations: 92.61 kB / 383.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-05/0.3194, allocations: 33.53 kB / 384 MB, free: 14.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003408/0.3197, allocations: 256.4 kB / 384.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3197, allocations: 0 / 384.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005613/0.3203, allocations: 145.3 kB / 384.4 MB, free: 14 MB / 302.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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008535/0.3212, allocations: 394.3 kB / 384.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.3229, allocations: 0.6723 MB / 385.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.323, allocations: 1.188 kB / 385.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.324, allocations: 383.6 kB / 385.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005914/0.3246, allocations: 80.62 kB / 385.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002511/0.3271, allocations: 1.127 MB / 387 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.3274, allocations: 0.8255 MB / 387.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002823/0.3277, allocations: 77.48 kB / 387.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.3279, allocations: 52.95 kB / 387.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3279, allocations: 0 / 387.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Templates: time 0.01595/0.3438, allocations: 10.3 MB / 398.2 MB, free: 6.875 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.smoothness,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.smoothness,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