Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007469/0.0007469, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001056/0.001803, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006376/0.0006376, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000933/0.001571, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8535/0.8535, allocations: 173.4 MB / 186 MB, free: 7.543 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1622/1.016, allocations: 52.49 MB / 238.5 MB, free: 7.625 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.099e-05/1.22e-05, allocations: 2.312 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002009/0.002021, allocations: 2.231 MB / 242 MB, free: 4.148 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007091/0.00273, allocations: 0.7042 MB / 242.7 MB, free: 3.441 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.645e-05/0.002807, allocations: 3.938 kB / 242.7 MB, free: 3.438 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.332e-05/0.0029, allocations: 30.84 kB / 242.7 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.003002, allocations: 75.34 kB / 242.8 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.003216, allocations: 103.7 kB / 242.9 MB, free: 3.234 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.003428, allocations: 283.4 kB / 243.1 MB, free: 2.957 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.165e-05/0.00352, allocations: 43.75 kB / 243.2 MB, free: 2.914 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.003705, allocations: 187.5 kB / 243.4 MB, free: 2.73 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.003834, allocations: 95.77 kB / 243.5 MB, free: 2.637 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.003861, allocations: 21.06 kB / 243.5 MB, free: 2.617 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.003972, allocations: 83.86 kB / 243.6 MB, free: 2.535 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.182e-05/0.004024, allocations: 42.88 kB / 243.6 MB, free: 2.496 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.513e-05/0.004079, allocations: 63.88 kB / 243.7 MB, free: 2.434 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.00429, allocations: 195.3 kB / 243.9 MB, free: 2.242 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.906e-06/0.004299, allocations: 0 / 243.9 MB, free: 2.242 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.0043, allocations: 0 / 243.9 MB, free: 2.242 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.004307, allocations: 0 / 243.9 MB, free: 2.242 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005891/0.004896, allocations: 0.4972 MB / 244.4 MB, free: 1.715 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.598e-05/0.004922, allocations: 9 kB / 244.4 MB, free: 1.707 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/0.004973, allocations: 32.91 kB / 244.4 MB, free: 1.676 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.00514, allocations: 166.9 kB / 244.6 MB, free: 1.488 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.005159, allocations: 20.27 kB / 244.6 MB, free: 1.469 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.296e-05/0.005192, allocations: 30.09 kB / 244.6 MB, free: 1.441 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.005403, allocations: 188.4 kB / 244.8 MB, free: 1.242 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.005414, allocations: 192 / 244.8 MB, free: 1.242 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.005428, allocations: 8.375 kB / 244.8 MB, free: 1.234 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.005436, allocations: 12.59 kB / 244.8 MB, free: 1.223 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.216e-05/0.005528, allocations: 71.89 kB / 244.9 MB, free: 1.152 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004652/0.005993, allocations: 438.5 kB / 245.3 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.006189, allocations: 110.4 kB / 245.4 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.456e-05/0.006233, allocations: 40.84 kB / 245.5 MB, free: 0.543 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.006248, allocations: 4 kB / 245.5 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001271/0.006376, allocations: 111.2 kB / 245.6 MB, free: 428 kB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.006377, allocations: 1.469 kB / 245.6 MB, free: 428 kB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008949/0.007272, allocations: 0.7079 MB / 246.3 MB, free: 15.64 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.46e-05/0.007296, allocations: 51.41 kB / 246.3 MB, free: 15.58 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.007397, allocations: 187.4 kB / 246.5 MB, free: 15.38 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.007417, allocations: 37.69 kB / 246.6 MB, free: 15.34 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.007469, allocations: 125.6 kB / 246.7 MB, free: 15.21 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.007517, allocations: 95.19 kB / 246.8 MB, free: 15.12 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/0.007577, allocations: 57.66 kB / 246.8 MB, free: 15.05 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.642e-05/0.007663, allocations: 339.8 kB / 247.2 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.459e-05/0.007728, allocations: 62 kB / 247.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.874e-05/0.007806, allocations: 109.7 kB / 247.3 MB, free: 14.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.007966, allocations: 159.1 kB / 247.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.007968, allocations: 0.5 kB / 247.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003371/0.008305, allocations: 265.1 kB / 247.7 MB, free: 14.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/0.008341, allocations: 37.69 kB / 247.8 MB, free: 14.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.008346, allocations: 4 kB / 247.8 MB, free: 14.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001431/0.008489, allocations: 44.89 kB / 247.8 MB, free: 13.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.008638, allocations: 59.91 kB / 247.9 MB, free: 13.92 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002999/0.008938, allocations: 0.5679 MB / 248.5 MB, free: 13.33 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.009067, allocations: 19.98 kB / 248.5 MB, free: 13.31 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.009084, allocations: 8 kB / 248.5 MB, free: 13.3 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 (32): * Single equations (assignments): 30 * 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 9.393e-05/0.009178, allocations: 136.6 kB / 248.6 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.14e-05/0.009209, allocations: 23.97 kB / 248.6 MB, free: 13.13 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.178e-05/0.009251, allocations: 30 kB / 248.7 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.009256, allocations: 11.88 kB / 248.7 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.009258, allocations: 0 / 248.7 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.009264, allocations: 3.984 kB / 248.7 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004687/0.009732, allocations: 379.8 kB / 249.1 MB, free: 12.69 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.009734, allocations: 0 / 249.1 MB, free: 12.69 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.009876, allocations: 43.92 kB / 249.1 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.009926, allocations: 19.89 kB / 249.1 MB, free: 12.62 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001067/0.01003, allocations: 48.83 kB / 249.2 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.01005, allocations: 11.98 kB / 249.2 MB, free: 12.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002666/0.01032, allocations: 0.5601 MB / 249.7 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.01032, allocations: 4 kB / 249.7 MB, free: 11.97 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003285/0.01065, allocations: 314.8 kB / 250 MB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.01067, allocations: 4 kB / 250.1 MB, free: 11.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.0108, allocations: 28 kB / 250.1 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.01086, allocations: 31.94 kB / 250.1 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.01088, allocations: 11.88 kB / 250.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.464e-05/0.01093, allocations: 57.02 kB / 250.2 MB, free: 11.52 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01093, allocations: 0 / 250.2 MB, free: 11.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002584/0.01119, allocations: 71.98 kB / 250.2 MB, free: 11.45 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 (20): * Single equations (assignments): 17 * 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.0001455/0.01134, allocations: 111.2 kB / 250.4 MB, free: 11.33 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003013/0.01164, allocations: 238.6 kB / 250.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.01164, allocations: 4.188 kB / 250.6 MB, free: 11.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.01179, allocations: 102.2 kB / 250.7 MB, free: 10.97 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.01215, allocations: 358.8 kB / 251 MB, free: 10.55 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002756/0.01491, allocations: 479.5 kB / 251.5 MB, free: 10.06 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.467e-05/0.01496, allocations: 80.33 kB / 251.6 MB, free: 9.961 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.914e-05/0.01504, allocations: 21.95 kB / 251.6 MB, free: 9.934 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.01517, allocations: 99.27 kB / 251.7 MB, free: 9.836 MB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01517, allocations: 0 / 251.7 MB, free: 9.836 MB / 250.7 MB Notification: Performance of Templates: time 0.006679/0.02184, allocations: 3.998 MB / 255.7 MB, free: 5.902 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4978871131315827]