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.001577/0.001577, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002167/0.002167, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.475/1.475, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.002024/0.002024, allocations: 64.78 kB / 379 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.273, allocations: 53.38 MB / 432.4 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004054/0.277, allocations: 2.309 MB / 434.7 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.2785, allocations: 0.888 MB / 435.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.2787, allocations: 7.938 kB / 435.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000249/0.2789, allocations: 43.58 kB / 435.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002729/0.2792, allocations: 107.2 kB / 435.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.2794, allocations: 91.81 kB / 435.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003718/0.2798, allocations: 299.4 kB / 436.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.2799, allocations: 39.53 kB / 436.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.2802, allocations: 139.5 kB / 436.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.2804, allocations: 139.4 kB / 436.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.2805, allocations: 20 kB / 436.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001562/0.2806, allocations: 79.97 kB / 436.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.045e-05/0.2807, allocations: 55.83 kB / 436.6 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.2808, allocations: 115.4 kB / 436.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.2813, allocations: 318.5 kB / 437 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.2813, allocations: 4 kB / 437 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2813, allocations: 4 kB / 437 MB, free: 2.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2813, allocations: 0 / 437 MB, free: 2.32 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.001056/0.2823, allocations: 0.5141 MB / 437.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2824, allocations: 12.03 kB / 437.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.2825, allocations: 40.73 kB / 437.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/0.2829, allocations: 195.8 kB / 437.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.2829, allocations: 12.38 kB / 437.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.283, allocations: 20.38 kB / 437.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.2835, allocations: 231.3 kB / 438 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.2835, allocations: 7.938 kB / 438 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.2835, allocations: 8 kB / 438.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2835, allocations: 4 kB / 438.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005035/0.284, allocations: 183.8 kB / 438.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009979/0.285, allocations: 0.6166 MB / 438.9 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005734/0.2856, allocations: 198.4 kB / 439 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.2858, allocations: 92.75 kB / 439.1 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.2859, allocations: 4 kB / 439.1 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004002/0.2863, allocations: 163.4 kB / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.603e-06/0.2863, allocations: 0 / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002442/0.2887, allocations: 0.9388 MB / 440.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.2888, allocations: 63.34 kB / 440.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.289, allocations: 203.1 kB / 440.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.289, allocations: 33.7 kB / 440.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/0.2891, allocations: 136.5 kB / 440.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.939e-05/0.2892, allocations: 99.2 kB / 440.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.815e-05/0.2893, allocations: 53.7 kB / 440.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2895, allocations: 334.8 kB / 441.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/0.2897, allocations: 99.94 kB / 441.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003217/0.2901, allocations: 140.4 kB / 441.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005183/0.2906, allocations: 245.9 kB / 441.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.2906, allocations: 0 / 441.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008246/0.2914, allocations: 381.7 kB / 442 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.2914, allocations: 29.7 kB / 442 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2914, allocations: 4 kB / 442 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002073/0.2917, allocations: 56.77 kB / 442.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.2919, allocations: 51.97 kB / 442.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.2938, allocations: 1.699 MB / 443.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.294, allocations: 40.05 kB / 443.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.294, allocations: 12 kB / 443.9 MB, free: 11.05 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.0001544/0.2942, allocations: 141.8 kB / 444 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.339e-05/0.2942, allocations: 27.8 kB / 444 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.2943, allocations: 30.64 kB / 444.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.2943, allocations: 0 / 444.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2943, allocations: 7.938 kB / 444.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2943, allocations: 0 / 444.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.2955, allocations: 0.6587 MB / 444.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2955, allocations: 0 / 444.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.2957, allocations: 39.97 kB / 444.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001485/0.2959, allocations: 56.97 kB / 444.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.2959, allocations: 11.98 kB / 444.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.2975, allocations: 1.538 MB / 446.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2975, allocations: 4.062 kB / 446.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.2985, allocations: 0.4974 MB / 446.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.89e-05/0.2986, allocations: 43.86 kB / 446.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.2987, allocations: 15.94 kB / 446.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.2989, allocations: 31.91 kB / 447 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.2991, allocations: 71.86 kB / 447 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.2991, allocations: 8 kB / 447.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.2992, allocations: 143.6 kB / 447.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2992, allocations: 0 / 447.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003993/0.2996, allocations: 83.92 kB / 447.3 MB, free: 7.445 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.001291/0.3009, allocations: 368.8 kB / 447.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009635/0.3019, allocations: 438.5 kB / 448.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3019, allocations: 4 kB / 448.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005008/0.3024, allocations: 258.4 kB / 448.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.3028, allocations: 44.03 kB / 448.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3043, allocations: 0.6708 MB / 449 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.3047, allocations: 0.748 MB / 449.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.3048, allocations: 33.86 kB / 449.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.513e-05/0.3049, allocations: 27.42 kB / 449.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3049, allocations: 0 / 449.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of Templates: time 0.01039/0.3153, allocations: 4.792 MB / 454.6 MB, free: 148 kB / 350.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.667905293405056]