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.001284/0.001284, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001435/0.001435, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001583/0.001583, allocations: 47.91 kB / 378.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2496, allocations: 53.36 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.005351/0.255, allocations: 2.318 MB / 433.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.257, allocations: 0.8802 MB / 434.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2572, allocations: 7.938 kB / 434.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003072/0.2575, allocations: 55.58 kB / 434.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003855/0.2579, allocations: 111.2 kB / 435 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.2582, allocations: 83.83 kB / 435.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004987/0.2587, allocations: 287.4 kB / 435.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2589, allocations: 40.56 kB / 435.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003383/0.2592, allocations: 143.5 kB / 435.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.2595, allocations: 139.4 kB / 435.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.223e-05/0.2596, allocations: 24 kB / 435.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002176/0.2598, allocations: 75.98 kB / 435.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.2599, allocations: 55.81 kB / 435.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.2601, allocations: 123.4 kB / 435.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005685/0.2607, allocations: 312 kB / 436.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2607, allocations: 0 / 436.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.2607, allocations: 0 / 436.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2607, allocations: 0 / 436.2 MB, free: 2.285 MB / 334.1 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.001256/0.2619, allocations: 0.5258 MB / 436.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.262, allocations: 8.031 kB / 436.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.2622, allocations: 40.73 kB / 436.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.2627, allocations: 191.8 kB / 437 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.2627, allocations: 16.38 kB / 437 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.904e-05/0.2628, allocations: 16.38 kB / 437 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007155/0.2635, allocations: 239.3 kB / 437.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.2635, allocations: 3.984 kB / 437.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.2636, allocations: 4 kB / 437.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.2636, allocations: 8 kB / 437.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006014/0.2642, allocations: 179.8 kB / 437.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.2656, allocations: 0.6282 MB / 438.1 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/0.2663, allocations: 190.4 kB / 438.3 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.2665, allocations: 102.4 kB / 438.4 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.2666, allocations: 4 kB / 438.4 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004092/0.267, allocations: 163.2 kB / 438.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.267, allocations: 0 / 438.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002564/0.2695, allocations: 0.9311 MB / 439.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.2696, allocations: 55.41 kB / 439.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.2698, allocations: 203.1 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.2699, allocations: 33.7 kB / 439.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.27, allocations: 136.5 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.911e-05/0.2701, allocations: 95.2 kB / 440 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.2702, allocations: 65.69 kB / 440 MB, free: 14.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.2704, allocations: 330.8 kB / 440.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.2706, allocations: 95.94 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.2709, allocations: 140.4 kB / 440.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000527/0.2714, allocations: 249.9 kB / 440.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2715, allocations: 4 kB / 440.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008246/0.2723, allocations: 369.8 kB / 441.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.89e-05/0.2723, allocations: 41.69 kB / 441.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.2723, allocations: 0 / 441.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/0.2725, allocations: 52.78 kB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.2728, allocations: 55.89 kB / 441.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/0.2748, allocations: 1.707 MB / 443 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.2751, allocations: 31.95 kB / 443.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.2751, allocations: 8 kB / 443.1 MB, free: 11.01 MB / 350.1 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.0001665/0.2753, allocations: 142.2 kB / 443.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.2753, allocations: 23.86 kB / 443.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.539e-05/0.2754, allocations: 30.7 kB / 443.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2754, allocations: 8 kB / 443.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2754, allocations: 3.938 kB / 443.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.2754, allocations: 3.984 kB / 443.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.2766, allocations: 0.6508 MB / 443.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2766, allocations: 0 / 443.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.2768, allocations: 55.89 kB / 444 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001356/0.277, allocations: 48.98 kB / 444 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.277, allocations: 11.98 kB / 444.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.2786, allocations: 1.545 MB / 445.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2786, allocations: 0 / 445.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.2799, allocations: 0.5014 MB / 446.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.2801, allocations: 47.86 kB / 446.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/0.2801, allocations: 4 kB / 446.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003411/0.2805, allocations: 35.91 kB / 446.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/0.2807, allocations: 79.8 kB / 446.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.2807, allocations: 7.984 kB / 446.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002144/0.2809, allocations: 151.6 kB / 446.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2809, allocations: 0 / 446.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006455/0.2816, allocations: 75.94 kB / 446.5 MB, free: 7.395 MB / 350.1 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.001796/0.2834, allocations: 372.3 kB / 446.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.2846, allocations: 430.5 kB / 447.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2846, allocations: 4.125 kB / 447.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005812/0.2852, allocations: 262.4 kB / 447.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005816/0.2858, allocations: 39.97 kB / 447.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.2877, allocations: 0.6832 MB / 448.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004809/0.2882, allocations: 0.7441 MB / 449 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.2884, allocations: 29.86 kB / 449 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.648e-05/0.2885, allocations: 27.44 kB / 449.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2885, allocations: 4 kB / 449.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of Templates: time 0.01476/0.3032, allocations: 4.792 MB / 453.9 MB, free: 100 kB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.710962259909138]