Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001547/0.001547, allocations: 116.6 kB / 17.06 MB, free: 5.996 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.001782/0.001782, allocations: 198.8 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 55.91 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2742, allocations: 49.42 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004248/0.2785, allocations: 2.735 MB / 403.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.2808, allocations: 1.088 MB / 404.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.2812, allocations: 4 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000291/0.2815, allocations: 75.36 kB / 404.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007046/0.2822, allocations: 190.9 kB / 404.8 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005863/0.2828, allocations: 247.5 kB / 405 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007095/0.2836, allocations: 0.6508 MB / 405.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.2838, allocations: 119.4 kB / 405.8 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004607/0.2843, allocations: 295.1 kB / 406.1 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004832/0.2848, allocations: 342.8 kB / 406.4 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.2849, allocations: 52 kB / 406.5 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000276/0.2852, allocations: 143.9 kB / 406.6 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.2854, allocations: 143.5 kB / 406.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002781/0.2857, allocations: 254.8 kB / 407 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007209/0.2864, allocations: 0.6359 MB / 407.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.187e-06/0.2864, allocations: 11.94 kB / 407.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2864, allocations: 0 / 407.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.724e-05/0.2865, allocations: 4 kB / 407.7 MB, free: 1.914 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.001643/0.2881, allocations: 0.7953 MB / 408.5 MB, free: 1.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.2882, allocations: 11.89 kB / 408.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003448/0.2885, allocations: 68.36 kB / 408.5 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.2892, allocations: 362.5 kB / 408.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.2893, allocations: 92.95 kB / 409 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.034e-05/0.2894, allocations: 48.28 kB / 409 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.2905, allocations: 0.5606 MB / 409.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.2905, allocations: 0 / 409.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.549e-05/0.2906, allocations: 16 kB / 409.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.2906, allocations: 12 kB / 409.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.2919, allocations: 0.6363 MB / 410.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.2943, allocations: 1.295 MB / 411.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.2954, allocations: 0.5372 MB / 412.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006245/0.2961, allocations: 318.4 kB / 412.4 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.2961, allocations: 20.48 kB / 412.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.2962, allocations: 39.31 kB / 412.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.264e-06/0.2962, allocations: 3.938 kB / 412.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.00697/0.3032, allocations: 2.86 MB / 415.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.3032, allocations: 89.61 kB / 415.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.3036, allocations: 338.8 kB / 415.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.242e-05/0.3037, allocations: 41.7 kB / 415.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.3038, allocations: 161.6 kB / 415.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.304, allocations: 224.8 kB / 416.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.3042, allocations: 118.3 kB / 416.3 MB, free: 8.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3044, allocations: 350.8 kB / 416.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006269/0.305, allocations: 289.2 kB / 416.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006548/0.3057, allocations: 358.4 kB / 417.2 MB, free: 7.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.3068, allocations: 0.5227 MB / 417.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3068, allocations: 0 / 417.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001777/0.3086, allocations: 0.885 MB / 418.6 MB, free: 6.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3086, allocations: 7.938 kB / 418.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3086, allocations: 8.094 kB / 418.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.3097, allocations: 475.2 kB / 419.1 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.3101, allocations: 79.89 kB / 419.2 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.3115, allocations: 1.083 MB / 420.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004889/0.312, allocations: 67.97 kB / 420.4 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-05/0.312, allocations: 27.92 kB / 420.4 MB, free: 4.758 MB / 334.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.0002524/0.3123, allocations: 181.6 kB / 420.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.767e-05/0.3124, allocations: 39.53 kB / 420.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.3126, allocations: 67.77 kB / 420.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3126, allocations: 12 kB / 420.7 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3126, allocations: 0 / 420.7 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3126, allocations: 3.984 kB / 420.7 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.3158, allocations: 1.753 MB / 422.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.3159, allocations: 0 / 422.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/0.3163, allocations: 79.88 kB / 422.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009869/0.3173, allocations: 461 kB / 423 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.326e-05/0.3173, allocations: 15.98 kB / 423 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.3187, allocations: 1.032 MB / 424 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3187, allocations: 0 / 424 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.3213, allocations: 1.31 MB / 425.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002288/0.3215, allocations: 180.6 kB / 425.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-05/0.3216, allocations: 20 kB / 425.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.3221, allocations: 47.94 kB / 425.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.3223, allocations: 88.42 kB / 425.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.3223, allocations: 19.98 kB / 425.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003023/0.3226, allocations: 249.9 kB / 425.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.3227, allocations: 4.062 kB / 425.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005205/0.3232, allocations: 139.9 kB / 426 MB, free: 14.93 MB / 350.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.0002843/0.3235, allocations: 162.9 kB / 426.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.325, allocations: 0.7041 MB / 426.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.325, allocations: 4.062 kB / 426.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000846/0.3259, allocations: 392 kB / 427.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.3264, allocations: 52.88 kB / 427.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.329, allocations: 1.114 MB / 428.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.3294, allocations: 0.8172 MB / 429.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002187/0.3296, allocations: 67.34 kB / 429.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.3297, allocations: 47.34 kB / 429.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3297, allocations: 0 / 429.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Templates: time 0.01673/0.3465, allocations: 10.05 MB / 439.4 MB, free: 1.488 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.f,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