Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.002078/0.002078, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 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.002582/0.002582, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.495/1.495, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 51.92 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2718, allocations: 53.37 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004737/0.2765, allocations: 2.669 MB / 435 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002508/0.279, allocations: 1.221 MB / 436.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.2792, allocations: 11.94 kB / 436.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003429/0.2796, allocations: 87.27 kB / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005979/0.2801, allocations: 226.7 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005796/0.2807, allocations: 263.5 kB / 436.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007838/0.2815, allocations: 0.7132 MB / 437.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.2817, allocations: 87.56 kB / 437.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004878/0.2822, allocations: 331.1 kB / 437.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004881/0.2827, allocations: 354.8 kB / 438.3 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.2828, allocations: 56 kB / 438.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003056/0.2831, allocations: 151.9 kB / 438.5 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.2833, allocations: 167.5 kB / 438.6 MB, free: 436 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002478/0.2836, allocations: 227 kB / 438.9 MB, free: 208 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009271/0.2845, allocations: 0.7269 MB / 439.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2845, allocations: 3.938 kB / 439.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2845, allocations: 0 / 439.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.2845, allocations: 0 / 439.6 MB, free: 15.47 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.001736/0.2862, allocations: 0.7855 MB / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2863, allocations: 12.03 kB / 440.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004482/0.2867, allocations: 76.62 kB / 440.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000699/0.2874, allocations: 304.8 kB / 440.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.2876, allocations: 156.3 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.2877, allocations: 44.33 kB / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.2889, allocations: 0.5856 MB / 441.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.2889, allocations: 4 kB / 441.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.25e-05/0.289, allocations: 16 kB / 441.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.289, allocations: 12 kB / 441.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.2904, allocations: 0.5972 MB / 442.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/0.293, allocations: 1.064 MB / 443.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.2943, allocations: 493.6 kB / 443.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006621/0.2949, allocations: 286.3 kB / 444 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.936e-05/0.295, allocations: 12.44 kB / 444 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.295, allocations: 43 kB / 444 MB, free: 10.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.415e-06/0.295, allocations: 0 / 444 MB, free: 10.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007249/0.3023, allocations: 2.43 MB / 446.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.3e-05/0.3023, allocations: 89.7 kB / 446.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004798/0.3028, allocations: 329.8 kB / 446.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.939e-05/0.3029, allocations: 45.7 kB / 446.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.303, allocations: 173.6 kB / 447.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.3033, allocations: 242 kB / 447.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.3035, allocations: 122.3 kB / 447.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.3037, allocations: 350.8 kB / 447.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006564/0.3043, allocations: 269.2 kB / 448.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007172/0.305, allocations: 356.2 kB / 448.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.3062, allocations: 495.5 kB / 448.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3062, allocations: 0 / 448.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001944/0.3082, allocations: 0.8181 MB / 449.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3082, allocations: 7.938 kB / 449.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3082, allocations: 4.031 kB / 449.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.3094, allocations: 444.4 kB / 450.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/0.3098, allocations: 83.88 kB / 450.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.3112, allocations: 1.031 MB / 451.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004781/0.3117, allocations: 55.97 kB / 451.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.3118, allocations: 27.98 kB / 451.3 MB, free: 3.383 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.0002799/0.3121, allocations: 183.7 kB / 451.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.3122, allocations: 39.77 kB / 451.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.3123, allocations: 67.73 kB / 451.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3123, allocations: 12.06 kB / 451.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3123, allocations: 0 / 451.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3123, allocations: 3.984 kB / 451.6 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/0.3156, allocations: 1.505 MB / 453.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3156, allocations: 0 / 453.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003885/0.316, allocations: 83.88 kB / 453.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/0.317, allocations: 408.5 kB / 453.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-05/0.3171, allocations: 27.97 kB / 453.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.3184, allocations: 0.9758 MB / 454.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3184, allocations: 0 / 454.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/0.3211, allocations: 1.208 MB / 455.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002946/0.3214, allocations: 111.8 kB / 456 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3215, allocations: 20 kB / 456 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004665/0.3219, allocations: 47.94 kB / 456 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/0.3222, allocations: 104.4 kB / 456.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.808e-05/0.3222, allocations: 23.97 kB / 456.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003279/0.3225, allocations: 233.2 kB / 456.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3225, allocations: 0 / 456.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005537/0.3231, allocations: 147.9 kB / 456.5 MB, free: 14.11 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.001551/0.3246, allocations: 433 kB / 456.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.3263, allocations: 0.6312 MB / 457.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3263, allocations: 4 kB / 457.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000858/0.3272, allocations: 340.6 kB / 457.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000543/0.3277, allocations: 74.08 kB / 458 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.3306, allocations: 1.175 MB / 459.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.3308, allocations: 218 kB / 459.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.331, allocations: 55.39 kB / 459.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.331, allocations: 4 kB / 459.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of Templates: time 0.01283/0.3439, allocations: 8.182 MB / 467.6 MB, free: 3.102 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 8.569282062817365]