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.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.001361/0.001361, allocations: 84.69 kB / 21.43 MB, free: 296 kB / 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.001476/0.001476, allocations: 164 kB / 24.7 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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.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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.335e-06/2.335e-06, allocations: 0 / 298.9 MB, free: 8.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.384e-05/3.618e-05, allocations: 6.219 kB / 298.9 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004254/0.00429, allocations: 2.541 MB / 301.5 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.006597, allocations: 1.101 MB / 302.6 MB, free: 5.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.006749, allocations: 4 kB / 302.6 MB, free: 5.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002592/0.007008, allocations: 71.36 kB / 302.7 MB, free: 4.977 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006042/0.007613, allocations: 190.8 kB / 302.8 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.008102, allocations: 259.4 kB / 303.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007432/0.008845, allocations: 0.6623 MB / 303.8 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.009064, allocations: 75.97 kB / 303.8 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005475/0.009611, allocations: 407.2 kB / 304.2 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004515/0.01006, allocations: 303.3 kB / 304.5 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.01017, allocations: 52 kB / 304.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.01044, allocations: 123.9 kB / 304.7 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.01065, allocations: 159.5 kB / 304.9 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.01088, allocations: 171.6 kB / 305 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009482/0.01182, allocations: 0.7011 MB / 305.7 MB, free: 1.898 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.01183, allocations: 0 / 305.7 MB, free: 1.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.01183, allocations: 3.938 kB / 305.7 MB, free: 1.895 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.01184, allocations: 3.938 kB / 305.7 MB, free: 1.891 MB / 286.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.001859/0.0137, allocations: 0.7428 MB / 306.5 MB, free: 1.117 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.01375, allocations: 8.031 kB / 306.5 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003704/0.01412, allocations: 72.59 kB / 306.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006605/0.01478, allocations: 296.6 kB / 306.8 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.015, allocations: 148.4 kB / 307 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.0151, allocations: 48.33 kB / 307 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.01632, allocations: 0.5861 MB / 307.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.01635, allocations: 4.172 kB / 307.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.155e-05/0.01641, allocations: 24.12 kB / 307.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.01642, allocations: 15.94 kB / 307.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.01779, allocations: 0.6245 MB / 308.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002643/0.02043, allocations: 1.056 MB / 309.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.02171, allocations: 0.4938 MB / 309.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008777/0.02259, allocations: 298.2 kB / 310.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.438e-05/0.02265, allocations: 8.5 kB / 310.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/0.0227, allocations: 43.19 kB / 310.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.244e-06/0.0227, allocations: 0 / 310.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.007478/0.03018, allocations: 2.56 MB / 312.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.262e-05/0.03026, allocations: 85.77 kB / 312.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004336/0.03069, allocations: 309.8 kB / 313.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.03076, allocations: 45.7 kB / 313.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.03091, allocations: 169.6 kB / 313.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/0.03114, allocations: 238 kB / 313.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.03139, allocations: 122.3 kB / 313.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.03159, allocations: 346.8 kB / 314 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006714/0.03227, allocations: 293.2 kB / 314.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007264/0.03299, allocations: 380.1 kB / 314.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.03417, allocations: 0.523 MB / 315.2 MB, free: 8.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.03417, allocations: 0 / 315.2 MB, free: 8.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001899/0.03607, allocations: 0.8618 MB / 316.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.03609, allocations: 10.44 kB / 316.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.0361, allocations: 4.031 kB / 316.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.03731, allocations: 481.5 kB / 316.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004017/0.03771, allocations: 83.88 kB / 316.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.03921, allocations: 1.072 MB / 317.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004901/0.0397, allocations: 60.03 kB / 317.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.03983, allocations: 23.98 kB / 317.8 MB, free: 5.523 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002991/0.04013, allocations: 181.5 kB / 318 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.04024, allocations: 51.59 kB / 318 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000171/0.04041, allocations: 63.73 kB / 318.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.04042, allocations: 8 kB / 318.1 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.04043, allocations: 0 / 318.1 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.04044, allocations: 3.984 kB / 318.1 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003579/0.04402, allocations: 1.571 MB / 319.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.04402, allocations: 0 / 319.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.04442, allocations: 83.94 kB / 319.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.04548, allocations: 440.5 kB / 320.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.427e-05/0.04554, allocations: 19.98 kB / 320.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/0.04702, allocations: 1.056 MB / 321.3 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.04703, allocations: 0 / 321.3 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002753/0.04978, allocations: 1.286 MB / 322.5 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.05004, allocations: 95.7 kB / 322.6 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.05015, allocations: 32.05 kB / 322.7 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004576/0.0506, allocations: 47.94 kB / 322.7 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.05083, allocations: 88.48 kB / 322.8 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.05089, allocations: 23.98 kB / 322.8 MB, free: 388 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003026/0.05119, allocations: 225.2 kB / 323 MB, free: 164 kB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.05119, allocations: 0 / 323 MB, free: 164 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005658/0.05176, allocations: 147.9 kB / 323.2 MB, free: 16 kB / 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1618/0.2136, allocations: 154.5 kB / 323.3 MB, free: 34.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.2152, allocations: 0.6661 MB / 324 MB, free: 34.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.2152, allocations: 2.062 kB / 324 MB, free: 34.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007955/0.216, allocations: 361.3 kB / 324.4 MB, free: 34.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.2165, allocations: 52.62 kB / 324.4 MB, free: 34.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.2189, allocations: 1.065 MB / 325.5 MB, free: 34.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.2191, allocations: 218.4 kB / 325.7 MB, free: 34.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001952/0.2193, allocations: 60.75 kB / 325.7 MB, free: 34.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.2194, allocations: 42.02 kB / 325.8 MB, free: 34.3 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2194, allocations: 0 / 325.8 MB, free: 34.3 MB / 302.1 MB Notification: Performance of Templates: time 0.01423/0.2336, allocations: 8.381 MB / 334.2 MB, free: 32.04 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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) [Timeout 480] 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) [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.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,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.ratio,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.792109332978725]