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.008326/0.008326, allocations: 110.6 kB / 21.98 MB, free: 5.18 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.002104/0.002104, allocations: 220.6 kB / 25.29 MB, free: 3.203 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.5/1.5, allocations: 230.6 MB / 259 MB, free: 8.02 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.001977/0.001977, allocations: 60.56 kB / 379.8 MB, free: 2.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2709, allocations: 53.37 MB / 433.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004075/0.275, allocations: 2.311 MB / 435.5 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.2767, allocations: 0.884 MB / 436.4 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.2768, allocations: 7.938 kB / 436.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002752/0.2771, allocations: 43.66 kB / 436.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002968/0.2774, allocations: 107.2 kB / 436.5 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.2776, allocations: 95.81 kB / 436.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003928/0.278, allocations: 287.4 kB / 436.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.2782, allocations: 40.58 kB / 436.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.2785, allocations: 143.5 kB / 437.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.2787, allocations: 135.5 kB / 437.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.279e-05/0.2787, allocations: 24 kB / 437.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.2789, allocations: 75.97 kB / 437.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.101e-05/0.279, allocations: 55.83 kB / 437.3 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.2791, allocations: 123.3 kB / 437.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.2796, allocations: 324 kB / 437.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2796, allocations: 0 / 437.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2796, allocations: 0 / 437.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2796, allocations: 0 / 437.8 MB, free: 2.34 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.001092/0.2807, allocations: 0.5142 MB / 438.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.2807, allocations: 8.031 kB / 438.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.2809, allocations: 44.73 kB / 438.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.2813, allocations: 187.8 kB / 438.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.2813, allocations: 16.38 kB / 438.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.2814, allocations: 16.38 kB / 438.6 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005181/0.2819, allocations: 243.2 kB / 438.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.2819, allocations: 0 / 438.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.2819, allocations: 12 kB / 438.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.2819, allocations: 7.984 kB / 438.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004807/0.2824, allocations: 175.9 kB / 439 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.2835, allocations: 0.6165 MB / 439.6 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/0.2841, allocations: 194.4 kB / 439.8 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.2843, allocations: 96.75 kB / 439.9 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.2844, allocations: 7.969 kB / 439.9 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000398/0.2848, allocations: 171.2 kB / 440.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.2848, allocations: 0 / 440.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002475/0.2872, allocations: 0.9272 MB / 441 MB, free: 14.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.2873, allocations: 59.41 kB / 441.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.2875, allocations: 207.1 kB / 441.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.2876, allocations: 33.7 kB / 441.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.2877, allocations: 132.5 kB / 441.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.613e-05/0.2878, allocations: 103.1 kB / 441.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.2879, allocations: 57.7 kB / 441.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.2881, allocations: 330.8 kB / 441.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.2883, allocations: 99.94 kB / 442 MB, free: 13.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/0.2887, allocations: 144.4 kB / 442.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005776/0.2893, allocations: 245.9 kB / 442.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2893, allocations: 4 kB / 442.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008168/0.2901, allocations: 377.7 kB / 442.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.091e-05/0.2901, allocations: 33.7 kB / 442.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2901, allocations: 3.984 kB / 442.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002139/0.2904, allocations: 60.84 kB / 442.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.2906, allocations: 47.91 kB / 442.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.2926, allocations: 1.699 MB / 444.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.2928, allocations: 31.95 kB / 444.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.2929, allocations: 16.06 kB / 444.6 MB, free: 11.07 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.0001684/0.293, allocations: 141.8 kB / 444.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.2931, allocations: 23.86 kB / 444.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.571e-05/0.2931, allocations: 30.64 kB / 444.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.2931, allocations: 4 kB / 444.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2931, allocations: 3.938 kB / 444.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2931, allocations: 0 / 444.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.2943, allocations: 0.6548 MB / 445.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2944, allocations: 3.938 kB / 445.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000224/0.2946, allocations: 43.91 kB / 445.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000159/0.2947, allocations: 52.89 kB / 445.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.2948, allocations: 15.98 kB / 445.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.2964, allocations: 1.549 MB / 447.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2964, allocations: 400 / 447.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.2975, allocations: 0.5013 MB / 447.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.2976, allocations: 43.86 kB / 447.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.2976, allocations: 8 kB / 447.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.2979, allocations: 27.91 kB / 447.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.2981, allocations: 75.86 kB / 447.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.2981, allocations: 8 kB / 447.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001582/0.2982, allocations: 147.6 kB / 448 MB, free: 7.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2982, allocations: 4 kB / 448 MB, free: 7.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004372/0.2987, allocations: 83.92 kB / 448.1 MB, free: 7.453 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.001363/0.3, allocations: 362.8 kB / 448.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009699/0.301, allocations: 430.3 kB / 448.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.301, allocations: 0 / 448.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000471/0.3015, allocations: 258.4 kB / 449.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.3019, allocations: 52.02 kB / 449.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.3033, allocations: 0.6971 MB / 449.8 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.3037, allocations: 0.7441 MB / 450.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.483e-05/0.3038, allocations: 31.42 kB / 450.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3038, allocations: 0 / 450.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of Templates: time 0.007651/0.3115, allocations: 4.392 MB / 455 MB, free: 0.5547 MB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/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: 7.893251948989928]