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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 116.2 kB / 18.5 MB, free: 4.543 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.002199/0.002199, allocations: 201 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 71.86 kB / 373.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.103, allocations: 53.31 MB / 427.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004503/0.1075, allocations: 2.88 MB / 430 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.11, allocations: 1.279 MB / 431.3 MB, free: 312 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.1101, allocations: 4 kB / 431.3 MB, free: 308 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003322/0.1105, allocations: 87.28 kB / 431.4 MB, free: 220 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005391/0.111, allocations: 222.2 kB / 431.6 MB, free: 0 / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2043/0.3153, allocations: 244.9 kB / 431.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.3163, allocations: 0.7107 MB / 432.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.3165, allocations: 87.77 kB / 432.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004332/0.3169, allocations: 325.1 kB / 433 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.3173, allocations: 388.8 kB / 433.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.758e-05/0.3173, allocations: 56.88 kB / 433.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002925/0.3176, allocations: 159.2 kB / 433.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.3178, allocations: 164.1 kB / 433.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002187/0.318, allocations: 272.2 kB / 434 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008744/0.3189, allocations: 0.7148 MB / 434.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3189, allocations: 0 / 434.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3189, allocations: 4 kB / 434.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.3189, allocations: 0 / 434.7 MB, free: 7.867 MB / 350.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.00169/0.3206, allocations: 0.8526 MB / 435.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3206, allocations: 10.08 kB / 435.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004567/0.3211, allocations: 76.3 kB / 435.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006304/0.3217, allocations: 372.1 kB / 436 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.3219, allocations: 98.03 kB / 436.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.231e-05/0.3219, allocations: 47.39 kB / 436.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.3232, allocations: 0.56 MB / 436.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.3232, allocations: 1.062 kB / 436.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-05/0.3233, allocations: 14.81 kB / 436.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.3233, allocations: 17.12 kB / 436.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.3247, allocations: 0.6137 MB / 437.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.3272, allocations: 1.307 MB / 438.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.3284, allocations: 496.5 kB / 439.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006235/0.3291, allocations: 277.9 kB / 439.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-05/0.3291, allocations: 9.781 kB / 439.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.3291, allocations: 43.67 kB / 439.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.813e-06/0.3291, allocations: 0.5938 kB / 439.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007062/0.3362, allocations: 2.743 MB / 442.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.3363, allocations: 86.05 kB / 442.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004765/0.3367, allocations: 352.7 kB / 442.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.943e-05/0.3368, allocations: 40.02 kB / 442.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.3369, allocations: 173.7 kB / 442.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.337, allocations: 240.5 kB / 443.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.3373, allocations: 126.7 kB / 443.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.158e-05/0.3374, allocations: 350.1 kB / 443.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006354/0.338, allocations: 267.8 kB / 443.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006711/0.3387, allocations: 335.5 kB / 444.1 MB, free: 3.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.3398, allocations: 492.4 kB / 444.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3398, allocations: 0 / 444.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001855/0.3416, allocations: 0.8265 MB / 445.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3417, allocations: 4.844 kB / 445.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3417, allocations: 4.078 kB / 445.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.3428, allocations: 443.9 kB / 445.9 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.3432, allocations: 87.58 kB / 446 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.3444, allocations: 1.02 MB / 447 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.3449, allocations: 62.53 kB / 447 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.557e-05/0.345, allocations: 28.41 kB / 447.1 MB, free: 1.859 MB / 350.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.0002455/0.3452, allocations: 180.7 kB / 447.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.3453, allocations: 45.19 kB / 447.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.3455, allocations: 65.52 kB / 447.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.3455, allocations: 8.656 kB / 447.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.3455, allocations: 3.469 kB / 447.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.3455, allocations: 3.562 kB / 447.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003195/0.3487, allocations: 1.703 MB / 449.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3487, allocations: 0 / 449.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/0.3491, allocations: 82.45 kB / 449.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000968/0.3501, allocations: 411.5 kB / 449.6 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.929e-05/0.3501, allocations: 27.81 kB / 449.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.3514, allocations: 0.9966 MB / 450.6 MB, free: 0 / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3514, allocations: 0 / 450.6 MB, free: 0 / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.3541, allocations: 1.214 MB / 451.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.3544, allocations: 190.5 kB / 452 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.3545, allocations: 22.88 kB / 452 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.355, allocations: 58.09 kB / 452.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.3552, allocations: 88.36 kB / 452.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-05/0.3553, allocations: 26.05 kB / 452.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003652/0.3557, allocations: 255.5 kB / 452.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3557, allocations: 0 / 452.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005471/0.3562, allocations: 148.3 kB / 452.6 MB, free: 15.07 MB / 366.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.001382/0.3576, allocations: 399.4 kB / 453 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.3593, allocations: 0.6358 MB / 453.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3593, allocations: 1.125 kB / 453.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000892/0.3602, allocations: 340.8 kB / 453.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.3607, allocations: 66.66 kB / 454 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.3635, allocations: 1.149 MB / 455.1 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.364, allocations: 0.8206 MB / 456 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002802/0.3642, allocations: 87.08 kB / 456 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/0.3644, allocations: 58.05 kB / 456.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3644, allocations: 1.219 kB / 456.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of Templates: time 0.01832/0.3827, allocations: 10.48 MB / 466.6 MB, free: 8.262 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 4.927945959381759]