Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.001987/0.001987, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.002125/0.002125, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.494/1.494, allocations: 230.4 MB / 258.1 MB, free: 8.145 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-beta.om/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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 71.83 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2828, allocations: 53.31 MB / 432 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004387/0.2872, allocations: 2.314 MB / 434.3 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.289, allocations: 0.8801 MB / 435.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.2892, allocations: 4 kB / 435.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.2895, allocations: 51.58 kB / 435.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004263/0.2899, allocations: 107.2 kB / 435.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.2903, allocations: 91.81 kB / 435.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004749/0.2908, allocations: 283.4 kB / 435.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.2909, allocations: 44.38 kB / 435.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.2913, allocations: 139.5 kB / 435.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.2915, allocations: 135.5 kB / 436.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.304e-05/0.2916, allocations: 20 kB / 436.1 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.2918, allocations: 79.98 kB / 436.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.2919, allocations: 55.81 kB / 436.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.292, allocations: 115.4 kB / 436.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004987/0.2925, allocations: 320.7 kB / 436.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2925, allocations: 4 kB / 436.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2925, allocations: 0 / 436.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.2925, allocations: 4 kB / 436.6 MB, free: 2.766 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001227/0.2938, allocations: 0.5895 MB / 437.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2938, allocations: 12.02 kB / 437.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.294, allocations: 40.75 kB / 437.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.2944, allocations: 245.7 kB / 437.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.2945, allocations: 16.38 kB / 437.5 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.2945, allocations: 16.38 kB / 437.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/0.295, allocations: 239.2 kB / 437.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.2951, allocations: 7.922 kB / 437.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.2951, allocations: 16 kB / 437.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.2951, allocations: 4 kB / 437.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004996/0.2956, allocations: 171.9 kB / 438 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.2967, allocations: 0.6525 MB / 438.6 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006072/0.2973, allocations: 194.5 kB / 438.8 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.2975, allocations: 96.75 kB / 438.9 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.2976, allocations: 0 / 438.9 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003976/0.298, allocations: 171.2 kB / 439.1 MB, free: 136 kB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.298, allocations: 0 / 439.1 MB, free: 136 kB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002602/0.3006, allocations: 1.156 MB / 440.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.3006, allocations: 59.39 kB / 440.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.3009, allocations: 202.5 kB / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/0.3009, allocations: 37.7 kB / 440.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.301, allocations: 132.5 kB / 440.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.48e-05/0.3011, allocations: 95.12 kB / 440.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.3012, allocations: 57.69 kB / 440.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3014, allocations: 334.8 kB / 441.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.3017, allocations: 99.89 kB / 441.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/0.302, allocations: 152.3 kB / 441.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005226/0.3025, allocations: 242 kB / 441.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3025, allocations: 4 kB / 441.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008427/0.3033, allocations: 373.8 kB / 442 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.3034, allocations: 36.67 kB / 442 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3034, allocations: 7.938 kB / 442 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002199/0.3036, allocations: 60.83 kB / 442.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.3038, allocations: 43.97 kB / 442.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.3059, allocations: 1.81 MB / 444 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.3062, allocations: 31.97 kB / 444 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.3062, allocations: 12.06 kB / 444 MB, free: 10.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.3064, allocations: 141.8 kB / 444.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.3064, allocations: 23.8 kB / 444.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.974e-05/0.3065, allocations: 26.56 kB / 444.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3065, allocations: 7.938 kB / 444.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3065, allocations: 7.922 kB / 444.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3065, allocations: 0 / 444.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.3077, allocations: 0.687 MB / 444.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3077, allocations: 0 / 444.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.3079, allocations: 43.97 kB / 444.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.3081, allocations: 52.77 kB / 445 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.3081, allocations: 4 kB / 445 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.3098, allocations: 1.662 MB / 446.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3098, allocations: 0 / 446.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.3108, allocations: 0.5055 MB / 447.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.3109, allocations: 113 kB / 447.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.311, allocations: 11.98 kB / 447.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.3112, allocations: 31.91 kB / 447.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.3114, allocations: 71.89 kB / 447.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.3114, allocations: 4 kB / 447.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001535/0.3116, allocations: 155.6 kB / 447.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3116, allocations: 0 / 447.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004009/0.312, allocations: 76 kB / 447.6 MB, free: 7.016 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001325/0.3133, allocations: 379.6 kB / 448 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009508/0.3143, allocations: 429.8 kB / 448.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3143, allocations: 0 / 448.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004748/0.3147, allocations: 258.4 kB / 448.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.3152, allocations: 48.17 kB / 448.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.3165, allocations: 0.6745 MB / 449.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.3169, allocations: 0.748 MB / 450.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.317, allocations: 33.92 kB / 450.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.028e-05/0.3171, allocations: 19.44 kB / 450.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3171, allocations: 0 / 450.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of Templates: time 0.01016/0.3273, allocations: 4.73 MB / 454.9 MB, free: 15.8 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.722122495993972]