Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.001081/0.001081, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001364/0.002445, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007116/0.0007116, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.007639/0.008351, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9628/0.9628, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08233/1.045, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.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_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_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.82e-05/1.999e-05, allocations: 5.266 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002511/0.002531, allocations: 2.347 MB / 246.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.003575, allocations: 0.8758 MB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.385e-05/0.003668, allocations: 7.938 kB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.003825, allocations: 39.64 kB / 247.8 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.003999, allocations: 119.1 kB / 247.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.004148, allocations: 95.73 kB / 248 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.004398, allocations: 291.3 kB / 248.3 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.826e-05/0.004497, allocations: 42.53 kB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.00475, allocations: 207.5 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.004899, allocations: 115.7 kB / 248.6 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.004928, allocations: 24 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.005056, allocations: 83.84 kB / 248.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/0.005115, allocations: 35.88 kB / 248.8 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.46e-05/0.005179, allocations: 63.88 kB / 248.8 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.005449, allocations: 223.2 kB / 249.1 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-05/0.005465, allocations: 0 / 249.1 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.005466, allocations: 0 / 249.1 MB, free: 9.758 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.005483, allocations: 0 / 249.1 MB, free: 9.758 MB / 250.7 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.0007318/0.006215, allocations: 0.5281 MB / 249.6 MB, free: 9.199 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.006245, allocations: 12.03 kB / 249.6 MB, free: 9.188 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.006391, allocations: 114 kB / 249.7 MB, free: 9.059 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.006601, allocations: 192.8 kB / 249.9 MB, free: 8.84 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.006625, allocations: 20.36 kB / 249.9 MB, free: 8.82 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/0.006653, allocations: 20.36 kB / 249.9 MB, free: 8.801 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.006843, allocations: 167.5 kB / 250.1 MB, free: 8.625 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.006855, allocations: 4.125 kB / 250.1 MB, free: 8.621 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.006869, allocations: 12.38 kB / 250.1 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.006876, allocations: 15.88 kB / 250.1 MB, free: 8.594 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.256e-05/0.006969, allocations: 59.94 kB / 250.2 MB, free: 8.535 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000808/0.007777, allocations: 411.9 kB / 250.6 MB, free: 8.113 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.007973, allocations: 114.4 kB / 250.7 MB, free: 7.992 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.861e-05/0.008032, allocations: 44.84 kB / 250.7 MB, free: 7.945 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.008049, allocations: 4 kB / 250.8 MB, free: 7.941 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/0.008202, allocations: 107.9 kB / 250.9 MB, free: 7.824 MB / 250.7 MB Notification: Performance of pre-optimization done (n=25): time 1.522e-06/0.008204, allocations: 4 kB / 250.9 MB, free: 7.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008542/0.009058, allocations: 0.621 MB / 251.5 MB, free: 7.148 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.00909, allocations: 55.41 kB / 251.5 MB, free: 7.082 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.009206, allocations: 192 kB / 251.7 MB, free: 6.879 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.009224, allocations: 37.7 kB / 251.8 MB, free: 6.836 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.009269, allocations: 120.5 kB / 251.9 MB, free: 6.715 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.009318, allocations: 99.19 kB / 252 MB, free: 6.617 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.009376, allocations: 61.66 kB / 252 MB, free: 6.551 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.775e-05/0.009454, allocations: 334.8 kB / 252.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.692e-05/0.009521, allocations: 69.38 kB / 252.4 MB, free: 6.141 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.159e-05/0.009593, allocations: 101.1 kB / 252.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.009706, allocations: 146 kB / 252.7 MB, free: 5.863 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.009708, allocations: 3.984 kB / 252.7 MB, free: 5.859 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002263/0.009935, allocations: 251.6 kB / 252.9 MB, free: 5.594 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.00997, allocations: 37.69 kB / 253 MB, free: 5.551 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.009975, allocations: 4 kB / 253 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001112/0.01009, allocations: 36.83 kB / 253 MB, free: 5.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.0102, allocations: 55.91 kB / 253.1 MB, free: 5.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008692/0.01107, allocations: 1.473 MB / 254.5 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.644e-05/0.01116, allocations: 28 kB / 254.6 MB, free: 3.871 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.01118, allocations: 12 kB / 254.6 MB, free: 3.859 MB / 250.7 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 7.9e-05/0.01126, allocations: 132.5 kB / 254.7 MB, free: 3.719 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.01128, allocations: 31.95 kB / 254.7 MB, free: 3.688 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.01131, allocations: 30.64 kB / 254.8 MB, free: 3.656 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.01131, allocations: 4 kB / 254.8 MB, free: 3.652 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.01132, allocations: 0 / 254.8 MB, free: 3.652 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.01132, allocations: 3.938 kB / 254.8 MB, free: 3.648 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003735/0.01169, allocations: 376.1 kB / 255.1 MB, free: 3.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.0117, allocations: 4 kB / 255.1 MB, free: 3.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.01181, allocations: 47.89 kB / 255.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.01185, allocations: 23.86 kB / 255.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.517e-05/0.01193, allocations: 48.75 kB / 255.3 MB, free: 3.129 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.01194, allocations: 8 kB / 255.3 MB, free: 3.121 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006701/0.01261, allocations: 1.312 MB / 256.6 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01261, allocations: 0 / 256.6 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.01286, allocations: 305.2 kB / 256.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.01288, allocations: 8 kB / 256.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-05/0.01298, allocations: 27.91 kB / 256.9 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.21e-05/0.01307, allocations: 71.86 kB / 257 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.01308, allocations: 4 kB / 257 MB, free: 1.297 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.056e-05/0.01313, allocations: 61.48 kB / 257 MB, free: 1.234 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01313, allocations: 0 / 257 MB, free: 1.234 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000213/0.01334, allocations: 72 kB / 257.1 MB, free: 1.164 MB / 250.7 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.0009802/0.01432, allocations: 490.2 kB / 257.6 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006266/0.01495, allocations: 353.3 kB / 257.9 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.01496, allocations: 7.984 kB / 257.9 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.01512, allocations: 219.7 kB / 258.2 MB, free: 300 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.01534, allocations: 85.84 kB / 258.2 MB, free: 220 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.01751, allocations: 0.4951 MB / 258.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.877e-05/0.01756, allocations: 88.31 kB / 258.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.375e-05/0.01763, allocations: 26.03 kB / 258.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.01775, allocations: 95.34 kB / 258.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01775, allocations: 0 / 258.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of Templates: time 0.006771/0.02452, allocations: 4.945 MB / 263.9 MB, free: 10.57 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6725968131795526]