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.001355/0.001355, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001122/0.001122, allocations: 165.5 kB / 25.61 MB, free: 8.582 MB / 18.57 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 1.03/1.03, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.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.442e-06/1.442e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.574e-05/1.718e-05, allocations: 6.25 kB / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002796/0.002813, allocations: 2.287 MB / 276.5 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.003941, allocations: 0.8462 MB / 277.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.004054, allocations: 4.562 kB / 277.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.004285, allocations: 51.56 kB / 277.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002573/0.004542, allocations: 117.2 kB / 277.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.00474, allocations: 90.23 kB / 277.6 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002722/0.005012, allocations: 303.3 kB / 277.9 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.005126, allocations: 40.52 kB / 277.9 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.005383, allocations: 175.6 kB / 278.1 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.005544, allocations: 115.7 kB / 278.2 MB, free: 420 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.873e-05/0.005583, allocations: 20 kB / 278.2 MB, free: 400 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.005696, allocations: 81.78 kB / 278.3 MB, free: 320 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.822e-05/0.005754, allocations: 59.81 kB / 278.3 MB, free: 260 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.005818, allocations: 79.81 kB / 278.4 MB, free: 180 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.006111, allocations: 247.3 kB / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.006113, allocations: 0 / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.006114, allocations: 4.438 kB / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.00612, allocations: 0.6562 kB / 278.7 MB, free: 15.93 MB / 266.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.0009107/0.007031, allocations: 0.6024 MB / 279.3 MB, free: 15.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.007061, allocations: 8.031 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.007192, allocations: 56.73 kB / 279.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.007408, allocations: 201.7 kB / 279.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.007431, allocations: 16.38 kB / 279.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.007463, allocations: 20.36 kB / 279.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.007743, allocations: 177.3 kB / 279.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.007754, allocations: 4.188 kB / 279.7 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.007771, allocations: 16.31 kB / 279.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.007778, allocations: 7.938 kB / 279.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.007883, allocations: 63.92 kB / 279.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005544/0.008437, allocations: 0.5885 MB / 280.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.008641, allocations: 125.3 kB / 280.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.543e-05/0.008696, allocations: 47.66 kB / 280.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.008713, allocations: 4 kB / 280.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001385/0.008852, allocations: 120.9 kB / 280.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.008853, allocations: 0 / 280.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009221/0.009775, allocations: 0.66 MB / 281.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.009804, allocations: 55.41 kB / 281.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.01006, allocations: 246.1 kB / 281.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.01008, allocations: 33.7 kB / 281.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.078e-05/0.01015, allocations: 179.2 kB / 281.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.01021, allocations: 103.2 kB / 282 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.972e-05/0.01028, allocations: 67.31 kB / 282 MB, free: 12.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.0104, allocations: 0.504 MB / 282.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.381e-05/0.01047, allocations: 69.36 kB / 282.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.007e-05/0.01056, allocations: 116.4 kB / 282.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.0107, allocations: 154.2 kB / 282.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.0107, allocations: 0 / 282.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003233/0.01102, allocations: 306.8 kB / 283.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.01105, allocations: 37.7 kB / 283.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.01105, allocations: 3.984 kB / 283.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001175/0.01117, allocations: 35.67 kB / 283.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.01129, allocations: 55.91 kB / 283.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.01269, allocations: 2.11 MB / 285.4 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.01281, allocations: 23.97 kB / 285.4 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.01282, allocations: 12 kB / 285.4 MB, free: 8.684 MB / 266.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 0.0001006/0.01292, allocations: 172.5 kB / 285.6 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.01296, allocations: 35.8 kB / 285.6 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.013, allocations: 34.58 kB / 285.7 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.013, allocations: 4 kB / 285.7 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.013, allocations: 4.031 kB / 285.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.01301, allocations: 0 / 285.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004954/0.0135, allocations: 0.5149 MB / 286.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.0135, allocations: 0 / 286.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.01362, allocations: 43.91 kB / 286.2 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-05/0.0137, allocations: 47.64 kB / 286.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.01371, allocations: 4 kB / 286.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008639/0.01458, allocations: 1.89 MB / 288.2 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01458, allocations: 0 / 288.2 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003488/0.01493, allocations: 404.7 kB / 288.6 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.487e-05/0.01498, allocations: 35.83 kB / 288.6 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/0.015, allocations: 8 kB / 288.6 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.01511, allocations: 31.94 kB / 288.7 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.01521, allocations: 71.86 kB / 288.7 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.01522, allocations: 4 kB / 288.7 MB, free: 5.199 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.134e-05/0.0153, allocations: 176.7 kB / 288.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0153, allocations: 0 / 288.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002571/0.01555, allocations: 72 kB / 289 MB, free: 4.957 MB / 266.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.0008313/0.01638, allocations: 356.5 kB / 289.3 MB, free: 4.719 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.01679, allocations: 414.3 kB / 289.7 MB, free: 4.273 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01679, allocations: 0 / 289.7 MB, free: 4.273 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.01698, allocations: 285.3 kB / 290 MB, free: 3.973 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.01725, allocations: 62.67 kB / 290.1 MB, free: 3.918 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008367/0.01809, allocations: 0.5643 MB / 290.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.52e-05/0.01814, allocations: 88.31 kB / 290.7 MB, free: 3.219 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.595e-05/0.01822, allocations: 25.95 kB / 290.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.01834, allocations: 122.2 kB / 290.9 MB, free: 3.074 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01834, allocations: 0 / 290.9 MB, free: 3.074 MB / 266.7 MB Notification: Performance of Templates: time 0.007052/0.02539, allocations: 5.066 MB / 295.9 MB, free: 14.07 MB / 282.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 -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: 3.0240766280330718]