Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001284/0.001284, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001066/0.001066, allocations: 166.9 kB / 25.7 MB, free: 8.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8251/0.8251, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 251.5 MB, free: 7.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.599e-05/1.724e-05, allocations: 6.25 kB / 251.5 MB, free: 7.293 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002265/0.002282, allocations: 2.179 MB / 253.7 MB, free: 5.098 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000945/0.003227, allocations: 0.7447 MB / 254.4 MB, free: 4.344 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.595e-05/0.003323, allocations: 4 kB / 254.4 MB, free: 4.34 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.003485, allocations: 31.66 kB / 254.5 MB, free: 4.309 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.003618, allocations: 75.41 kB / 254.5 MB, free: 4.234 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.003917, allocations: 115.7 kB / 254.7 MB, free: 4.121 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000233/0.00415, allocations: 283.4 kB / 254.9 MB, free: 3.844 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.004252, allocations: 46.44 kB / 255 MB, free: 3.801 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.004436, allocations: 163.6 kB / 255.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.004579, allocations: 103.7 kB / 255.2 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.004609, allocations: 20 kB / 255.3 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.00471, allocations: 71.89 kB / 255.3 MB, free: 3.449 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.418e-05/0.004775, allocations: 51.81 kB / 255.4 MB, free: 3.398 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.671e-05/0.004841, allocations: 79.81 kB / 255.5 MB, free: 3.32 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.005077, allocations: 223.2 kB / 255.7 MB, free: 3.102 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.005079, allocations: 4 kB / 255.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.00508, allocations: 0 / 255.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.005084, allocations: 0 / 255.7 MB, free: 3.098 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.0005713/0.005655, allocations: 461.4 kB / 256.1 MB, free: 2.617 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.005686, allocations: 11.98 kB / 256.1 MB, free: 2.605 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.803e-05/0.005744, allocations: 36.91 kB / 256.2 MB, free: 2.57 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.00592, allocations: 165.3 kB / 256.3 MB, free: 2.383 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.00594, allocations: 20.38 kB / 256.4 MB, free: 2.363 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.005973, allocations: 24.3 kB / 256.4 MB, free: 2.34 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002193/0.006192, allocations: 184.5 kB / 256.6 MB, free: 2.145 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.006202, allocations: 192 / 256.6 MB, free: 2.145 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.00622, allocations: 16.36 kB / 256.6 MB, free: 2.129 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.006227, allocations: 7.938 kB / 256.6 MB, free: 2.121 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003936/0.00662, allocations: 63.88 kB / 256.6 MB, free: 2.059 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004948/0.007115, allocations: 427.9 kB / 257.1 MB, free: 1.621 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.007317, allocations: 114 kB / 257.2 MB, free: 1.5 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.74e-05/0.007364, allocations: 40.84 kB / 257.2 MB, free: 1.457 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.007383, allocations: 4 kB / 257.2 MB, free: 1.453 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001263/0.007509, allocations: 111.6 kB / 257.3 MB, free: 1.332 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.00751, allocations: 0 / 257.3 MB, free: 1.332 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008593/0.00837, allocations: 0.6255 MB / 258 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.008397, allocations: 55.41 kB / 258 MB, free: 0.582 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.283e-05/0.00849, allocations: 187.2 kB / 258.2 MB, free: 396 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.008508, allocations: 33.7 kB / 258.2 MB, free: 356 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.269e-05/0.008561, allocations: 124.5 kB / 258.3 MB, free: 228 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.561e-05/0.008606, allocations: 95.19 kB / 258.4 MB, free: 132 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.008669, allocations: 65.66 kB / 258.5 MB, free: 60 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.236e-05/0.008752, allocations: 330.8 kB / 258.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.497e-05/0.008817, allocations: 66 kB / 258.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.35e-05/0.00889, allocations: 102 kB / 259 MB, free: 15.54 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.009009, allocations: 159.7 kB / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.00901, allocations: 0 / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002509/0.009261, allocations: 257.8 kB / 259.4 MB, free: 15.09 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.009286, allocations: 33.7 kB / 259.4 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.009292, allocations: 4 kB / 259.4 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001233/0.009416, allocations: 48.8 kB / 259.5 MB, free: 15 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.00953, allocations: 55.98 kB / 259.5 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002598/0.00979, allocations: 0.5678 MB / 260.1 MB, free: 14.35 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.761e-05/0.009888, allocations: 19.98 kB / 260.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.009903, allocations: 12 kB / 260.1 MB, free: 14.32 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 8.83e-05/0.009991, allocations: 128.6 kB / 260.3 MB, free: 14.18 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.535e-05/0.01002, allocations: 23.98 kB / 260.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.988e-05/0.01006, allocations: 29.95 kB / 260.3 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01006, allocations: 7.969 kB / 260.3 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.01006, allocations: 3.938 kB / 260.3 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.01007, allocations: 0 / 260.3 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004224/0.01049, allocations: 371.9 kB / 260.7 MB, free: 13.72 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.01049, allocations: 0 / 260.7 MB, free: 13.72 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.0106, allocations: 39.92 kB / 260.7 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.471e-05/0.01069, allocations: 52.83 kB / 260.8 MB, free: 13.62 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.01071, allocations: 16 kB / 260.8 MB, free: 13.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002376/0.01094, allocations: 0.5601 MB / 261.4 MB, free: 13.02 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.01095, allocations: 0 / 261.4 MB, free: 13.02 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002692/0.01121, allocations: 321.5 kB / 261.7 MB, free: 12.69 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.57e-05/0.01126, allocations: 23.89 kB / 261.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.01128, allocations: 4 kB / 261.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.779e-05/0.01137, allocations: 23.97 kB / 261.7 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/0.01143, allocations: 35.97 kB / 261.8 MB, free: 12.6 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.01144, allocations: 7.938 kB / 261.8 MB, free: 12.59 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.041e-05/0.01149, allocations: 49.03 kB / 261.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01149, allocations: 0 / 261.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001914/0.01168, allocations: 79.92 kB / 261.9 MB, free: 12.46 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.0001254/0.0118, allocations: 100.3 kB / 262 MB, free: 12.36 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.01206, allocations: 237.6 kB / 262.2 MB, free: 12.1 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.01207, allocations: 0 / 262.2 MB, free: 12.1 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.01217, allocations: 96.86 kB / 262.3 MB, free: 12 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.01237, allocations: 47.86 kB / 262.4 MB, free: 11.96 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008254/0.01319, allocations: 495.6 kB / 262.8 MB, free: 11.45 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.058e-05/0.01325, allocations: 80.33 kB / 262.9 MB, free: 11.35 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.498e-05/0.01332, allocations: 21.94 kB / 262.9 MB, free: 11.33 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.01343, allocations: 91.3 kB / 263 MB, free: 11.24 MB / 250.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01343, allocations: 0 / 263 MB, free: 11.24 MB / 250.7 MB Notification: Performance of Templates: time 0.005616/0.01905, allocations: 3.88 MB / 266.9 MB, free: 7.391 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.5936899636872113]