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.0007319/0.0007319, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009807/0.001713, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006999/0.0006999, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009395/0.001639, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 0.9871/0.9871, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09523/1.082, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.453e-05/2.601e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003084/0.003111, allocations: 2.344 MB / 247.5 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.004583, allocations: 0.8758 MB / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.004714, allocations: 7.938 kB / 248.4 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.004913, allocations: 43.59 kB / 248.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.005195, allocations: 119.1 kB / 248.6 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002494/0.005444, allocations: 95.73 kB / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.005831, allocations: 291.3 kB / 249 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.00596, allocations: 42.52 kB / 249 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003576/0.006318, allocations: 215.5 kB / 249.2 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.006517, allocations: 103.8 kB / 249.3 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.037e-05/0.006558, allocations: 20 kB / 249.3 MB, free: 9.383 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.006731, allocations: 87.83 kB / 249.4 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/0.006807, allocations: 35.88 kB / 249.5 MB, free: 9.262 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.122e-05/0.006889, allocations: 67.88 kB / 249.5 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003429/0.007232, allocations: 223.2 kB / 249.7 MB, free: 8.977 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.3e-05/0.007245, allocations: 3.984 kB / 249.7 MB, free: 8.973 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.007246, allocations: 0 / 249.7 MB, free: 8.973 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.007257, allocations: 0 / 249.7 MB, free: 8.973 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.0008099/0.008067, allocations: 0.528 MB / 250.3 MB, free: 8.414 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.0081, allocations: 12.03 kB / 250.3 MB, free: 8.402 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.00828, allocations: 114 kB / 250.4 MB, free: 8.273 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.008552, allocations: 195.4 kB / 250.6 MB, free: 8.051 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.008577, allocations: 16.36 kB / 250.6 MB, free: 8.035 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/0.008619, allocations: 24.36 kB / 250.6 MB, free: 8.012 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.008887, allocations: 171.5 kB / 250.8 MB, free: 7.832 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.008902, allocations: 4.188 kB / 250.8 MB, free: 7.828 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.008919, allocations: 4.375 kB / 250.8 MB, free: 7.824 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.008929, allocations: 7.938 kB / 250.8 MB, free: 7.816 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.009058, allocations: 59.95 kB / 250.9 MB, free: 7.758 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006191/0.009677, allocations: 431.8 kB / 251.3 MB, free: 7.316 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.009927, allocations: 102.5 kB / 251.4 MB, free: 7.207 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.31e-05/0.01, allocations: 44.84 kB / 251.4 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.01002, allocations: 4 kB / 251.4 MB, free: 7.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.01022, allocations: 107.9 kB / 251.5 MB, free: 7.039 MB / 250.7 MB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/0.01023, allocations: 7.938 kB / 251.6 MB, free: 7.031 MB / 250.7 MB Notification: Performance of matching and sorting (n=27): time 0.001222/0.01145, allocations: 0.6378 MB / 252.2 MB, free: 6.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.01148, allocations: 59.34 kB / 252.3 MB, free: 6.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.01165, allocations: 188.6 kB / 252.4 MB, free: 6.07 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.01167, allocations: 33.7 kB / 252.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/0.01174, allocations: 128.4 kB / 252.6 MB, free: 5.902 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.01181, allocations: 95.19 kB / 252.7 MB, free: 5.809 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.171e-05/0.0119, allocations: 69.66 kB / 252.8 MB, free: 5.734 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.01201, allocations: 330.8 kB / 253.1 MB, free: 5.402 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.67e-05/0.01209, allocations: 65.42 kB / 253.1 MB, free: 5.332 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.01219, allocations: 97.09 kB / 253.2 MB, free: 5.219 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.01237, allocations: 150.1 kB / 253.4 MB, free: 5.055 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.01237, allocations: 0 / 253.4 MB, free: 5.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003407/0.01271, allocations: 255.4 kB / 253.6 MB, free: 4.785 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.482e-05/0.01276, allocations: 41.75 kB / 253.7 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01276, allocations: 0 / 253.7 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001467/0.01291, allocations: 36.83 kB / 253.7 MB, free: 4.699 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.01308, allocations: 59.91 kB / 253.8 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.01434, allocations: 1.485 MB / 255.3 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.0145, allocations: 23.98 kB / 255.3 MB, free: 3.051 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.01452, allocations: 4.156 kB / 255.3 MB, free: 3.047 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 0.0001156/0.01463, allocations: 136.6 kB / 255.4 MB, free: 2.902 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.846e-05/0.01467, allocations: 19.92 kB / 255.4 MB, free: 2.883 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.895e-05/0.01472, allocations: 34.64 kB / 255.5 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.01472, allocations: 4 kB / 255.5 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.01472, allocations: 0 / 255.5 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.01473, allocations: 4 kB / 255.5 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004551/0.01519, allocations: 379.9 kB / 255.8 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01519, allocations: 0 / 255.8 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.01531, allocations: 51.89 kB / 255.9 MB, free: 2.391 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.01535, allocations: 23.86 kB / 255.9 MB, free: 2.367 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.091e-05/0.01543, allocations: 44.75 kB / 256 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.01544, allocations: 4 kB / 256 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006969/0.01614, allocations: 1.315 MB / 257.3 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01614, allocations: 0 / 257.3 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002702/0.01641, allocations: 313.6 kB / 257.6 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.01644, allocations: 12 kB / 257.6 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-05/0.01653, allocations: 27.94 kB / 257.6 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.01665, allocations: 75.8 kB / 257.7 MB, free: 484 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.01665, allocations: 4 kB / 257.7 MB, free: 480 kB / 250.7 MB Notification: Performance of sorting global known variables: time 6.627e-05/0.01672, allocations: 61.48 kB / 257.8 MB, free: 416 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01672, allocations: 0 / 257.8 MB, free: 416 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002423/0.01696, allocations: 76 kB / 257.8 MB, free: 340 kB / 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.001114/0.01808, allocations: 469 kB / 258.3 MB, free: 64 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004035/0.01848, allocations: 357.2 kB / 258.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/0.01849, allocations: 4 kB / 258.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.01869, allocations: 223.5 kB / 258.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.01906, allocations: 413.2 kB / 259.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.02124, allocations: 496.1 kB / 259.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.554e-05/0.02129, allocations: 88.31 kB / 259.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.203e-05/0.02137, allocations: 26.08 kB / 259.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.02149, allocations: 95.34 kB / 260 MB, free: 14.23 MB / 266.7 MB Notification: Performance of SimCode: time 9.21e-07/0.02149, allocations: 0 / 260 MB, free: 14.23 MB / 266.7 MB Notification: Performance of Templates: time 0.007282/0.02878, allocations: 4.972 MB / 264.9 MB, free: 9.316 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5749213052913547]