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.00124/0.00124, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001932/0.001932, allocations: 182.7 kB / 23.71 MB, free: 4.695 MB / 14.72 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 1.506/1.506, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 178]
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 0.001528/0.001528, allocations: 47.92 kB / 370.9 MB, free: 9.348 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2501, allocations: 52.18 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003673/0.2538, allocations: 2.207 MB / 425.3 MB, free: 12.45 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001351/0.2552, allocations: 0.7012 MB / 426 MB, free: 11.75 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2553, allocations: 7.938 kB / 426 MB, free: 11.74 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.2554, allocations: 27.72 kB / 426 MB, free: 11.71 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.2556, allocations: 71.41 kB / 426.1 MB, free: 11.64 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.256, allocations: 107.8 kB / 426.2 MB, free: 11.54 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003469/0.2563, allocations: 283.4 kB / 426.5 MB, free: 11.26 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.2565, allocations: 40.52 kB / 426.5 MB, free: 11.21 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.2567, allocations: 127.5 kB / 426.7 MB, free: 11.09 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.2569, allocations: 131.4 kB / 426.8 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.241e-05/0.2569, allocations: 20 kB / 426.8 MB, free: 10.94 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.2571, allocations: 71.95 kB / 426.9 MB, free: 10.87 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.921e-05/0.2572, allocations: 51.83 kB / 426.9 MB, free: 10.82 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.2573, allocations: 111.5 kB / 427 MB, free: 10.71 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.2577, allocations: 284.2 kB / 427.3 MB, free: 10.44 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2577, allocations: 0 / 427.3 MB, free: 10.44 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.382e-06/0.2577, allocations: 4 kB / 427.3 MB, free: 10.43 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.911e-06/0.2577, allocations: 0 / 427.3 MB, free: 10.43 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: 44
 * Number of variables: 44
Notification: Performance of Generate backend data structure: time 0.001076/0.2588, allocations: 0.491 MB / 427.8 MB, free: 9.906 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2588, allocations: 8.031 kB / 427.8 MB, free: 9.898 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.973e-05/0.2589, allocations: 28.75 kB / 427.8 MB, free: 9.871 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.2592, allocations: 178.1 kB / 428 MB, free: 9.672 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.2592, allocations: 24.36 kB / 428 MB, free: 9.648 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.2593, allocations: 16.38 kB / 428.1 MB, free: 9.633 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005345/0.2598, allocations: 243.5 kB / 428.3 MB, free: 9.383 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.2599, allocations: 11.88 kB / 428.3 MB, free: 9.371 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.2599, allocations: 8 kB / 428.3 MB, free: 9.363 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2599, allocations: 4 kB / 428.3 MB, free: 9.359 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005263/0.2604, allocations: 191.9 kB / 428.5 MB, free: 9.172 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.2615, allocations: 0.6321 MB / 429.1 MB, free: 8.492 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006148/0.2621, allocations: 198.3 kB / 429.3 MB, free: 8.289 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.2624, allocations: 92.81 kB / 429.4 MB, free: 8.195 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.2624, allocations: 4 kB / 429.4 MB, free: 8.191 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003938/0.2628, allocations: 170.2 kB / 429.6 MB, free: 8.02 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2628, allocations: 0 / 429.6 MB, free: 8.02 MB / 334.1 MB
Notification: Performance of matching and sorting (n=26): time 0.002602/0.2654, allocations: 0.9207 MB / 430.5 MB, free: 7.039 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.2655, allocations: 55.41 kB / 430.6 MB, free: 6.973 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.2657, allocations: 196 kB / 430.8 MB, free: 6.77 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.2657, allocations: 29.7 kB / 430.8 MB, free: 6.734 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.2658, allocations: 140.5 kB / 430.9 MB, free: 6.594 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.685e-05/0.2659, allocations: 95.2 kB / 431 MB, free: 6.5 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.266, allocations: 61.69 kB / 431.1 MB, free: 6.434 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001657/0.2662, allocations: 334.8 kB / 431.4 MB, free: 6.098 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.2665, allocations: 108 kB / 431.5 MB, free: 5.988 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003534/0.2669, allocations: 152.2 kB / 431.7 MB, free: 5.828 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005458/0.2674, allocations: 239.9 kB / 431.9 MB, free: 5.578 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2674, allocations: 0 / 431.9 MB, free: 5.578 MB / 334.1 MB
Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009072/0.2683, allocations: 396.8 kB / 432.3 MB, free: 5.176 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.186e-05/0.2684, allocations: 37.7 kB / 432.3 MB, free: 5.133 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.2684, allocations: 7.922 kB / 432.3 MB, free: 5.125 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.2686, allocations: 76.8 kB / 432.4 MB, free: 5.047 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.2689, allocations: 43.97 kB / 432.4 MB, free: 5.004 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005771/0.2694, allocations: 0.6149 MB / 433.1 MB, free: 4.363 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.2697, allocations: 32 kB / 433.1 MB, free: 4.332 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.2698, allocations: 8 kB / 433.1 MB, free: 4.324 MB / 334.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 (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 0.0001714/0.2699, allocations: 153.7 kB / 433.3 MB, free: 4.164 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.27, allocations: 23.86 kB / 433.3 MB, free: 4.141 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.102e-05/0.27, allocations: 25.97 kB / 433.3 MB, free: 4.117 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.27, allocations: 4 kB / 433.3 MB, free: 4.113 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.27, allocations: 0 / 433.3 MB, free: 4.113 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.2701, allocations: 7.922 kB / 433.3 MB, free: 4.105 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.2713, allocations: 0.6512 MB / 434 MB, free: 3.402 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2713, allocations: 0 / 434 MB, free: 3.402 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002312/0.2716, allocations: 39.91 kB / 434 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.2718, allocations: 68.81 kB / 434.1 MB, free: 3.293 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.2718, allocations: 4 kB / 434.1 MB, free: 3.289 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005627/0.2724, allocations: 0.6071 MB / 434.7 MB, free: 2.656 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2724, allocations: 0 / 434.7 MB, free: 2.656 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.2735, allocations: 0.5163 MB / 435.2 MB, free: 2.117 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.003e-05/0.2736, allocations: 39.94 kB / 435.2 MB, free: 2.078 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.2736, allocations: 7.984 kB / 435.2 MB, free: 2.07 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.2739, allocations: 23.97 kB / 435.3 MB, free: 2.047 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.962e-05/0.274, allocations: 35.94 kB / 435.3 MB, free: 2.012 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.274, allocations: 7.984 kB / 435.3 MB, free: 2.004 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001437/0.2741, allocations: 147.4 kB / 435.5 MB, free: 1.859 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2741, allocations: 0 / 435.5 MB, free: 1.859 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003701/0.2745, allocations: 75.92 kB / 435.5 MB, free: 1.785 MB / 334.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 (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.0002126/0.2747, allocations: 118.7 kB / 435.6 MB, free: 1.66 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008244/0.2755, allocations: 307.1 kB / 435.9 MB, free: 1.348 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2755, allocations: 0 / 435.9 MB, free: 1.348 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003722/0.2759, allocations: 140 kB / 436.1 MB, free: 1.211 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.2763, allocations: 40.09 kB / 436.1 MB, free: 1.172 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.2777, allocations: 0.6673 MB / 436.8 MB, free: 484 kB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.2781, allocations: 0.7402 MB / 437.5 MB, free: 15.71 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 9.747e-05/0.2782, allocations: 21.95 kB / 437.5 MB, free: 15.69 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.843e-05/0.2783, allocations: 23.42 kB / 437.6 MB, free: 15.67 MB / 350.1 MB
Notification: Performance of SimCode: time 5.31e-07/0.2783, allocations: 0 / 437.6 MB, free: 15.67 MB / 350.1 MB
Notification: Performance of Templates: time 0.009026/0.2873, allocations: 4.026 MB / 441.6 MB, free: 11.67 MB / 350.1 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=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.52097050100565]