Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.002221/0.002221, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.00264/0.00264, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.612/1.612, allocations: 230.5 MB / 258.1 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 67.89 kB / 379 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3122, allocations: 53.41 MB / 432.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00421/0.3164, allocations: 2.305 MB / 434.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.3181, allocations: 0.884 MB / 435.6 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.3183, allocations: 7.938 kB / 435.6 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002924/0.3185, allocations: 51.58 kB / 435.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003062/0.3189, allocations: 107.2 kB / 435.8 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.3191, allocations: 91.81 kB / 435.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.3195, allocations: 283.4 kB / 436.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.3197, allocations: 44.56 kB / 436.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000296/0.32, allocations: 143.5 kB / 436.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.3202, allocations: 139.5 kB / 436.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.245e-05/0.3203, allocations: 20 kB / 436.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.3205, allocations: 79.92 kB / 436.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.376e-05/0.3206, allocations: 59.81 kB / 436.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.3207, allocations: 111.4 kB / 436.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005144/0.3212, allocations: 320 kB / 437 MB, free: 2.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3212, allocations: 4 kB / 437 MB, free: 2.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3212, allocations: 0 / 437 MB, free: 2.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.3212, allocations: 0 / 437 MB, free: 2.141 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.001123/0.3223, allocations: 0.5219 MB / 437.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3224, allocations: 12.03 kB / 437.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.3226, allocations: 36.73 kB / 437.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.323, allocations: 188.1 kB / 437.8 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/0.323, allocations: 16.38 kB / 437.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.813e-05/0.3231, allocations: 16.38 kB / 437.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/0.3236, allocations: 235.3 kB / 438.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.3236, allocations: 4 kB / 438.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.3236, allocations: 8 kB / 438.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.3236, allocations: 4 kB / 438.1 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004893/0.3241, allocations: 179.8 kB / 438.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.3252, allocations: 0.6244 MB / 438.9 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005949/0.3258, allocations: 190.4 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/0.326, allocations: 107.7 kB / 439.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.3261, allocations: 3.938 kB / 439.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003897/0.3264, allocations: 163.9 kB / 439.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.3264, allocations: 0 / 439.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002494/0.3289, allocations: 0.9381 MB / 440.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.329, allocations: 59.41 kB / 440.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.3292, allocations: 203.1 kB / 440.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.3293, allocations: 33.7 kB / 440.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3294, allocations: 132.5 kB / 440.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.663e-05/0.3295, allocations: 99.2 kB / 440.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.3296, allocations: 57.7 kB / 440.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3298, allocations: 334.8 kB / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.33, allocations: 95.94 kB / 441.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.3304, allocations: 140.4 kB / 441.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005156/0.3309, allocations: 249.9 kB / 441.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.3309, allocations: 0 / 441.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008411/0.3317, allocations: 381.8 kB / 442 MB, free: 12.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.003e-05/0.3318, allocations: 29.7 kB / 442 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3318, allocations: 7.984 kB / 442.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002294/0.332, allocations: 56.77 kB / 442.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.3322, allocations: 47.91 kB / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/0.3343, allocations: 1.705 MB / 443.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002701/0.3345, allocations: 35.98 kB / 443.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.3346, allocations: 12 kB / 443.9 MB, free: 10.87 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.000181/0.3348, allocations: 141.7 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.759e-05/0.3348, allocations: 23.86 kB / 444.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.592e-05/0.3349, allocations: 34.7 kB / 444.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3349, allocations: 0 / 444.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.3349, allocations: 7.938 kB / 444.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3349, allocations: 0 / 444.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.3361, allocations: 0.647 MB / 444.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3361, allocations: 3.938 kB / 444.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.3363, allocations: 51.97 kB / 444.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001671/0.3364, allocations: 52.83 kB / 444.9 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.3365, allocations: 8 kB / 444.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.3382, allocations: 1.554 MB / 446.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3382, allocations: 0 / 446.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.3392, allocations: 0.5013 MB / 446.9 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.3393, allocations: 39.88 kB / 447 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.3394, allocations: 11.98 kB / 447 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.3396, allocations: 31.91 kB / 447 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.3398, allocations: 75.86 kB / 447.1 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.3398, allocations: 8 kB / 447.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001527/0.34, allocations: 151.5 kB / 447.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.34, allocations: 0 / 447.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000447/0.3404, allocations: 83.92 kB / 447.3 MB, free: 7.25 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.001395/0.3418, allocations: 359 kB / 447.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009815/0.3428, allocations: 429.9 kB / 448.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3428, allocations: 4 kB / 448.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004765/0.3433, allocations: 258.4 kB / 448.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.3437, allocations: 59.91 kB / 448.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.3452, allocations: 0.697 MB / 449.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3456, allocations: 0.748 MB / 449.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.403e-05/0.3457, allocations: 31.42 kB / 449.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3457, allocations: 0 / 449.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of Templates: time 0.007895/0.3536, allocations: 4.38 MB / 454.3 MB, free: 344 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 8.411692487075925]