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.001345/0.001345, allocations: 107.8 kB / 19.76 MB, free: 2.551 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.00148/0.00148, allocations: 189.4 kB / 22.92 MB, free: 5.582 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.515/1.515, allocations: 207.6 MB / 233.5 MB, free: 10.99 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.001707/0.001707, allocations: 55.91 kB / 345.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.312, allocations: 49.12 MB / 394.5 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003755/0.3158, allocations: 2.182 MB / 396.7 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.3172, allocations: 0.7539 MB / 397.4 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.3173, allocations: 2.625 kB / 397.4 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.3175, allocations: 30.83 kB / 397.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001807/0.3177, allocations: 68.05 kB / 397.5 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.318, allocations: 115.1 kB / 397.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003472/0.3184, allocations: 276.1 kB / 397.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.3185, allocations: 40.08 kB / 398 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.3188, allocations: 129 kB / 398.1 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.319, allocations: 125.7 kB / 398.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.7e-05/0.319, allocations: 20.88 kB / 398.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.3192, allocations: 69.69 kB / 398.3 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.681e-05/0.3192, allocations: 54.25 kB / 398.4 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.3194, allocations: 118.8 kB / 398.5 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004376/0.3198, allocations: 287.2 kB / 398.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3198, allocations: 0 / 398.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3198, allocations: 0 / 398.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3198, allocations: 1.25 kB / 398.8 MB, free: 6.77 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.0009874/0.3208, allocations: 0.5601 MB / 399.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3209, allocations: 12.08 kB / 399.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.769e-05/0.3209, allocations: 26.2 kB / 399.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.3212, allocations: 248.5 kB / 399.6 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.3212, allocations: 16.41 kB / 399.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/0.3213, allocations: 22.25 kB / 399.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004777/0.3218, allocations: 234.1 kB / 399.9 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3218, allocations: 0.7031 kB / 399.9 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.3218, allocations: 6.625 kB / 399.9 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.3218, allocations: 3.656 kB / 399.9 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004907/0.3223, allocations: 202.4 kB / 400.1 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3233, allocations: 0.6613 MB / 400.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005656/0.3239, allocations: 194.8 kB / 400.9 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.3241, allocations: 94.11 kB / 401 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3242, allocations: 6 kB / 401 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00036/0.3245, allocations: 170.6 kB / 401.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.844e-06/0.3245, allocations: 0 / 401.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002263/0.3268, allocations: 1.16 MB / 402.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.3268, allocations: 54.56 kB / 402.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.327, allocations: 187.7 kB / 402.6 MB, free: 4.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.327, allocations: 36.92 kB / 402.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.993e-05/0.3271, allocations: 137.1 kB / 402.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.328e-05/0.3272, allocations: 92.77 kB / 402.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.3273, allocations: 66.77 kB / 402.9 MB, free: 3.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.806e-05/0.3273, allocations: 333.5 kB / 403.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.3276, allocations: 106.8 kB / 403.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/0.3279, allocations: 145 kB / 403.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004899/0.3284, allocations: 241.8 kB / 403.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.3284, allocations: 0 / 403.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008183/0.3292, allocations: 407.7 kB / 404.1 MB, free: 3.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/0.3292, allocations: 33.2 kB / 404.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3293, allocations: 5.766 kB / 404.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002567/0.3295, allocations: 66.77 kB / 404.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.3297, allocations: 56.81 kB / 404.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003997/0.3301, allocations: 0.6089 MB / 404.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.3304, allocations: 30.92 kB / 404.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/0.3304, allocations: 13.02 kB / 404.9 MB, free: 2.504 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.0001207/0.3305, allocations: 143.2 kB / 405.1 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-05/0.3306, allocations: 22.38 kB / 405.1 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.115e-05/0.3306, allocations: 27.97 kB / 405.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/0.3306, allocations: 3.672 kB / 405.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.3306, allocations: 5.031 kB / 405.1 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3307, allocations: 5.297 kB / 405.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.3317, allocations: 0.6804 MB / 405.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3317, allocations: 0 / 405.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.3319, allocations: 38.39 kB / 405.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001635/0.3321, allocations: 65.02 kB / 405.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.3321, allocations: 11.47 kB / 405.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003471/0.3325, allocations: 0.6149 MB / 406.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3325, allocations: 0 / 406.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008642/0.3333, allocations: 0.5069 MB / 407 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.158e-05/0.3334, allocations: 114.8 kB / 407.2 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.03e-05/0.3334, allocations: 7.406 kB / 407.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.3337, allocations: 29.2 kB / 407.2 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.523e-05/0.3338, allocations: 30.03 kB / 407.2 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.3338, allocations: 11.05 kB / 407.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001035/0.3339, allocations: 135.7 kB / 407.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3339, allocations: 4 kB / 407.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.3343, allocations: 73.64 kB / 407.4 MB, free: 0.7695 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.0001694/0.3344, allocations: 129.9 kB / 407.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007556/0.3352, allocations: 310 kB / 407.9 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3352, allocations: 128 / 407.9 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.3355, allocations: 133.1 kB / 408 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.3359, allocations: 42.92 kB / 408 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.3371, allocations: 0.6652 MB / 408.7 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.3375, allocations: 0.7372 MB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.808e-05/0.3376, allocations: 21.62 kB / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.702e-05/0.3376, allocations: 22.59 kB / 409.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3376, allocations: 5.375 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of Templates: time 0.00895/0.3466, allocations: 3.965 MB / 413.5 MB, free: 13.58 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.817292460240424]