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.002023/0.002023, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002466/0.002466, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.519/1.519, allocations: 230.5 MB / 254.1 MB, free: 15.09 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.001557/0.001557, allocations: 51.91 kB / 373.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09787, allocations: 53.34 MB / 426.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003846/0.1017, allocations: 2.298 MB / 429.1 MB, free: 2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1032, allocations: 0.8685 MB / 430 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.1033, allocations: 11.94 kB / 430 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002434/0.1036, allocations: 43.64 kB / 430 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002779/0.1039, allocations: 107.2 kB / 430.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.1041, allocations: 87.81 kB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.1045, allocations: 291.4 kB / 430.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.1046, allocations: 40.39 kB / 430.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003313/0.105, allocations: 139.5 kB / 430.7 MB, free: 424 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002617/0.1052, allocations: 139.4 kB / 430.8 MB, free: 284 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.846e-05/0.1053, allocations: 20 kB / 430.8 MB, free: 264 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.1055, allocations: 83.97 kB / 430.9 MB, free: 180 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.752e-05/0.1056, allocations: 51.83 kB / 430.9 MB, free: 128 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.1057, allocations: 119.4 kB / 431.1 MB, free: 8 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2132/0.3189, allocations: 314.4 kB / 431.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.3189, allocations: 1.344 kB / 431.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.3189, allocations: 0 / 431.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.3189, allocations: 0 / 431.4 MB, free: 8.375 MB / 350.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.001006/0.3199, allocations: 0.5921 MB / 432 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.3199, allocations: 9.344 kB / 432 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.3201, allocations: 39.64 kB / 432 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.3204, allocations: 255.2 kB / 432.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.3205, allocations: 12.34 kB / 432.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.896e-05/0.3205, allocations: 23.22 kB / 432.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004852/0.321, allocations: 224.3 kB / 432.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.321, allocations: 7.062 kB / 432.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.3211, allocations: 10.75 kB / 432.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3211, allocations: 5.938 kB / 432.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005137/0.3216, allocations: 183 kB / 432.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008817/0.3225, allocations: 0.638 MB / 433.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005785/0.323, allocations: 195.3 kB / 433.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002413/0.3233, allocations: 97.39 kB / 433.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.3233, allocations: 6.125 kB / 433.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003529/0.3237, allocations: 158.2 kB / 433.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.013e-06/0.3237, allocations: 0.7031 kB / 433.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00246/0.3261, allocations: 1.166 MB / 435 MB, free: 6.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.3261, allocations: 55.34 kB / 435 MB, free: 6.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.3263, allocations: 197.6 kB / 435.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.3264, allocations: 33.98 kB / 435.2 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.3264, allocations: 137.7 kB / 435.4 MB, free: 6.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/0.3265, allocations: 94.86 kB / 435.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.3266, allocations: 61.94 kB / 435.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.648e-05/0.3266, allocations: 332 kB / 435.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.3269, allocations: 95.97 kB / 436 MB, free: 5.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002904/0.3272, allocations: 156.2 kB / 436.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005068/0.3277, allocations: 237.2 kB / 436.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.3277, allocations: 11.88 kB / 436.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008381/0.3286, allocations: 371 kB / 436.7 MB, free: 5.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.575e-05/0.3286, allocations: 40.3 kB / 436.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3286, allocations: 1.781 kB / 436.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000217/0.3288, allocations: 60.33 kB / 436.8 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.3291, allocations: 54.95 kB / 436.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.3306, allocations: 1.797 MB / 438.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002901/0.3309, allocations: 37.36 kB / 438.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.3309, allocations: 11.73 kB / 438.7 MB, free: 4.125 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.0001343/0.3311, allocations: 149.7 kB / 438.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.846e-05/0.3311, allocations: 22.48 kB / 438.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.43e-05/0.3312, allocations: 29.5 kB / 438.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3312, allocations: 3.094 kB / 438.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3312, allocations: 0 / 438.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.3312, allocations: 8.344 kB / 438.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.3323, allocations: 0.6845 MB / 439.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3323, allocations: 0 / 439.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.3326, allocations: 48.11 kB / 439.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001545/0.3327, allocations: 49.28 kB / 439.7 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.3328, allocations: 7.859 kB / 439.7 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/0.3341, allocations: 1.647 MB / 441.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3341, allocations: 1.641 kB / 441.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.3351, allocations: 0.5144 MB / 441.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.479e-05/0.3352, allocations: 118.9 kB / 442 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.3353, allocations: 8.016 kB / 442 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.3355, allocations: 29.67 kB / 442 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.3357, allocations: 72.77 kB / 442.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.3358, allocations: 11 kB / 442.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001399/0.3359, allocations: 145.2 kB / 442.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3359, allocations: 0 / 442.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.3364, allocations: 76.22 kB / 442.3 MB, free: 1.688 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.00139/0.3378, allocations: 371.5 kB / 442.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009819/0.3387, allocations: 439.7 kB / 443.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3387, allocations: 0 / 443.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004641/0.3392, allocations: 255.2 kB / 443.4 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/0.3397, allocations: 52.34 kB / 443.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.341, allocations: 0.6746 MB / 444.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.3412, allocations: 0.7475 MB / 444.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.3413, allocations: 28.38 kB / 444.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.881e-05/0.3414, allocations: 22.72 kB / 444.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3414, allocations: 0 / 444.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of Templates: time 0.01098/0.3524, allocations: 4.632 MB / 449.5 MB, free: 15.61 MB / 366.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.865865126252174]