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.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.001502/0.001502, allocations: 106 kB / 21.18 MB, free: 0.6992 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.001997/0.001997, allocations: 179.9 kB / 24.46 MB, free: 4.062 MB / 14.72 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 1.542/1.542, allocations: 207.6 MB / 235.2 MB, free: 10.03 MB / 190.1 MB
"
[Timeout remaining time 178]
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.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_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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 59.91 kB / 347.6 MB, free: 9.66 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3329, allocations: 49.16 MB / 396.8 MB, free: 9.5 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003285/0.3362, allocations: 2.173 MB / 399 MB, free: 7.996 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001225/0.3374, allocations: 0.7563 MB / 399.7 MB, free: 7.461 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.3375, allocations: 6.375 kB / 399.7 MB, free: 7.457 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.3377, allocations: 27.41 kB / 399.8 MB, free: 7.441 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001842/0.3379, allocations: 78.67 kB / 399.8 MB, free: 7.387 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.3383, allocations: 111.6 kB / 400 MB, free: 7.332 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003496/0.3386, allocations: 274.8 kB / 400.2 MB, free: 7.203 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.3388, allocations: 39.86 kB / 400.3 MB, free: 7.184 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.339, allocations: 131.5 kB / 400.4 MB, free: 7.121 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.3392, allocations: 128.9 kB / 400.5 MB, free: 7.062 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.134e-05/0.3392, allocations: 21.16 kB / 400.5 MB, free: 7.062 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.3394, allocations: 72.23 kB / 400.6 MB, free: 7.047 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.693e-05/0.3394, allocations: 50 kB / 400.7 MB, free: 7.016 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.3396, allocations: 114.7 kB / 400.8 MB, free: 6.945 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.34, allocations: 289.8 kB / 401 MB, free: 6.836 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.34, allocations: 4.453 kB / 401.1 MB, free: 6.832 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.923e-06/0.34, allocations: 1.344 kB / 401.1 MB, free: 6.832 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 6.242e-06/0.34, allocations: 0 / 401.1 MB, free: 6.832 MB / 318.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.0009121/0.3409, allocations: 499.8 kB / 401.5 MB, free: 6.434 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3409, allocations: 13.03 kB / 401.6 MB, free: 6.43 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.985e-05/0.341, allocations: 29.05 kB / 401.6 MB, free: 6.414 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.3412, allocations: 185.2 kB / 401.8 MB, free: 6.242 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.3413, allocations: 12.44 kB / 401.8 MB, free: 6.238 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.3413, allocations: 23.05 kB / 401.8 MB, free: 6.23 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004881/0.3418, allocations: 237.5 kB / 402 MB, free: 6.117 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.3418, allocations: 6.219 kB / 402 MB, free: 6.113 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.3418, allocations: 5.969 kB / 402 MB, free: 6.109 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.3418, allocations: 3.906 kB / 402 MB, free: 6.109 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.3423, allocations: 192.6 kB / 402.2 MB, free: 6.059 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009501/0.3433, allocations: 0.6319 MB / 402.9 MB, free: 5.605 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005956/0.3439, allocations: 191.7 kB / 403.1 MB, free: 5.531 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.3441, allocations: 94.52 kB / 403.1 MB, free: 5.496 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3441, allocations: 7.359 kB / 403.2 MB, free: 5.492 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.3445, allocations: 165.4 kB / 403.3 MB, free: 5.406 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.3445, allocations: 0 / 403.3 MB, free: 5.406 MB / 318.1 MB
Notification: Performance of matching and sorting (n=26): time 0.002352/0.3468, allocations: 0.9245 MB / 404.2 MB, free: 4.91 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.3468, allocations: 60.94 kB / 404.3 MB, free: 4.844 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.347, allocations: 195.6 kB / 404.5 MB, free: 4.707 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.3471, allocations: 31.95 kB / 404.5 MB, free: 4.672 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.3471, allocations: 136.1 kB / 404.7 MB, free: 4.551 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.994e-05/0.3472, allocations: 90.31 kB / 404.7 MB, free: 4.48 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.523e-05/0.3473, allocations: 63.17 kB / 404.8 MB, free: 4.441 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 7.52e-05/0.3474, allocations: 335 kB / 405.1 MB, free: 4.117 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.3476, allocations: 109.3 kB / 405.2 MB, free: 4.078 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.3479, allocations: 147.6 kB / 405.4 MB, free: 4.008 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000502/0.3484, allocations: 247.7 kB / 405.6 MB, free: 3.875 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3484, allocations: 0 / 405.6 MB, free: 3.875 MB / 318.1 MB
Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008246/0.3493, allocations: 397.9 kB / 406 MB, free: 3.691 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.3493, allocations: 33.94 kB / 406 MB, free: 3.66 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3493, allocations: 9.531 kB / 406.1 MB, free: 3.652 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.3496, allocations: 79.2 kB / 406.1 MB, free: 3.617 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.3498, allocations: 44.38 kB / 406.2 MB, free: 3.617 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003947/0.3502, allocations: 0.6088 MB / 406.8 MB, free: 3.059 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.3504, allocations: 35.5 kB / 406.8 MB, free: 3.051 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.3504, allocations: 12.86 kB / 406.8 MB, free: 3.047 MB / 318.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.0001116/0.3506, allocations: 143.7 kB / 407 MB, free: 2.91 MB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.425e-05/0.3506, allocations: 21.48 kB / 407 MB, free: 2.898 MB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.074e-05/0.3506, allocations: 28.25 kB / 407 MB, free: 2.875 MB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3507, allocations: 3.312 kB / 407 MB, free: 2.875 MB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3507, allocations: 0 / 407 MB, free: 2.875 MB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3507, allocations: 6.531 kB / 407 MB, free: 2.871 MB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.3518, allocations: 0.6483 MB / 407.7 MB, free: 2.457 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3518, allocations: 0 / 407.7 MB, free: 2.457 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.352, allocations: 45.14 kB / 407.7 MB, free: 2.449 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001636/0.3521, allocations: 69.31 kB / 407.8 MB, free: 2.422 MB / 318.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.3522, allocations: 8.703 kB / 407.8 MB, free: 2.418 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003464/0.3525, allocations: 0.6028 MB / 408.4 MB, free: 1.863 MB / 318.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3525, allocations: 7.938 kB / 408.4 MB, free: 1.855 MB / 318.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.3537, allocations: 0.5079 MB / 408.9 MB, free: 1.582 MB / 318.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.3538, allocations: 36.62 kB / 409 MB, free: 1.562 MB / 318.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.544e-05/0.3538, allocations: 5.375 kB / 409 MB, free: 1.559 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.3541, allocations: 35.41 kB / 409 MB, free: 1.551 MB / 318.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.3542, allocations: 34.19 kB / 409 MB, free: 1.543 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.3543, allocations: 10.56 kB / 409 MB, free: 1.539 MB / 318.1 MB
Notification: Performance of sorting global known variables: time 0.0001731/0.3544, allocations: 140.5 kB / 409.2 MB, free: 1.445 MB / 318.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3544, allocations: 0 / 409.2 MB, free: 1.445 MB / 318.1 MB
Notification: Performance of remove unused functions: time 0.0004226/0.3549, allocations: 73.06 kB / 409.2 MB, free: 1.434 MB / 318.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.0002543/0.3551, allocations: 116.5 kB / 409.4 MB, free: 1.336 MB / 318.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008657/0.356, allocations: 317.7 kB / 409.7 MB, free: 1.199 MB / 318.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.356, allocations: 0 / 409.7 MB, free: 1.199 MB / 318.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.3564, allocations: 128.9 kB / 409.8 MB, free: 1.168 MB / 318.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.3568, allocations: 38.69 kB / 409.8 MB, free: 1.152 MB / 318.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.3581, allocations: 0.6622 MB / 410.5 MB, free: 0.6992 MB / 318.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.3584, allocations: 0.7449 MB / 411.2 MB, free: 16 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001014/0.3585, allocations: 17.73 kB / 411.3 MB, free: 16 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.702e-05/0.3585, allocations: 19.88 kB / 411.3 MB, free: 15.99 MB / 334.1 MB
Notification: Performance of SimCode: time 3.4e-07/0.3585, allocations: 4 kB / 411.3 MB, free: 15.98 MB / 334.1 MB
Notification: Performance of Templates: time 0.009822/0.3684, allocations: 4.048 MB / 415.3 MB, free: 14.09 MB / 334.1 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=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.8498585764318705]