Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008769/0.0008768, allocations: 78.72 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.49e-05/1.492e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 47.58 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3959/0.5068, allocations: 77.72 MB / 440.8 MB, free: 1.973 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.5071, allocations: 71.14 kB / 440.9 MB, free: 1.938 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01129/0.5184, allocations: 3.924 MB / 444.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.358e-06/0.5184, allocations: 0 / 444.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.5184, allocations: 10.19 kB / 444.8 MB, free: 14.65 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0006213/0.519, allocations: 479.4 kB / 445.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.5191, allocations: 8.031 kB / 445.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.017e-05/0.5192, allocations: 31.03 kB / 445.3 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.5194, allocations: 221.7 kB / 445.5 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.5195, allocations: 12.7 kB / 445.5 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.341e-05/0.5195, allocations: 8 kB / 445.5 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002554/0.5198, allocations: 132 kB / 445.7 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.5201, allocations: 180.5 kB / 445.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.5201, allocations: 8 kB / 445.8 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.5201, allocations: 0 / 445.8 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.5201, allocations: 4 kB / 445.8 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.5213, allocations: 0.7335 MB / 446.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002709/0.5216, allocations: 136.8 kB / 446.7 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.5217, allocations: 61.84 kB / 446.8 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.5217, allocations: 4 kB / 446.8 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.5218, allocations: 34.55 kB / 446.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.313e-06/0.5218, allocations: 0 / 446.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001372/0.5232, allocations: 0.7705 MB / 447.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.5232, allocations: 55.41 kB / 447.6 MB, free: 11.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.5234, allocations: 155.1 kB / 447.8 MB, free: 11.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.5234, allocations: 29.7 kB / 447.8 MB, free: 11.71 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.721e-05/0.5235, allocations: 130.2 kB / 447.9 MB, free: 11.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.636e-05/0.5235, allocations: 76.28 kB / 448 MB, free: 11.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.5236, allocations: 0 / 448 MB, free: 11.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.5237, allocations: 329.7 kB / 448.3 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.5238, allocations: 62.78 kB / 448.4 MB, free: 11.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.5239, allocations: 99.45 kB / 448.5 MB, free: 11.08 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.5241, allocations: 62.02 kB / 448.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5241, allocations: 4 kB / 448.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003748/0.5245, allocations: 242.2 kB / 448.8 MB, free: 10.85 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.5245, allocations: 8 kB / 448.8 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.5245, allocations: 0 / 448.8 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/0.5247, allocations: 70.17 kB / 448.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.5249, allocations: 43.8 kB / 448.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005259/0.5254, allocations: 0.6097 MB / 449.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.5256, allocations: 28 kB / 449.6 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.5256, allocations: 8.062 kB / 449.6 MB, free: 10.12 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.5258, allocations: 120.4 kB / 449.7 MB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.5258, allocations: 15.81 kB / 449.7 MB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004769/0.5263, allocations: 235.2 kB / 449.9 MB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.5263, allocations: 4 kB / 449.9 MB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5263, allocations: 7.984 kB / 449.9 MB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.5263, allocations: 0 / 449.9 MB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000703/0.5271, allocations: 0.5437 MB / 450.5 MB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5271, allocations: 0 / 450.5 MB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.5273, allocations: 43.58 kB / 450.5 MB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001387/0.5274, allocations: 67.16 kB / 450.6 MB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.5274, allocations: 4 kB / 450.6 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004093/0.5278, allocations: 0.6135 MB / 451.2 MB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5279, allocations: 4 kB / 451.2 MB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005025/0.5284, allocations: 429.2 kB / 451.6 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.191e-05/0.5285, allocations: 108.1 kB / 451.7 MB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.5285, allocations: 11.89 kB / 451.7 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.5287, allocations: 25.38 kB / 451.8 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.583e-05/0.5288, allocations: 31.08 kB / 451.8 MB, free: 8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.5288, allocations: 4 kB / 451.8 MB, free: 7.996 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.258e-05/0.5289, allocations: 121 kB / 451.9 MB, free: 7.891 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5289, allocations: 0 / 451.9 MB, free: 7.891 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003519/0.5293, allocations: 63.98 kB / 452 MB, free: 7.828 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002063/0.5295, allocations: 114.7 kB / 452.1 MB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.5299, allocations: 198.7 kB / 452.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5299, allocations: 0 / 452.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.5301, allocations: 96.53 kB / 452.4 MB, free: 7.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.5304, allocations: 22.98 kB / 452.4 MB, free: 7.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.5315, allocations: 0.5469 MB / 453 MB, free: 6.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.5318, allocations: 0.7438 MB / 453.7 MB, free: 6.145 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.422e-05/0.5318, allocations: 18.08 kB / 453.7 MB, free: 6.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.5319, allocations: 15.44 kB / 453.7 MB, free: 6.113 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5319, allocations: 0 / 453.7 MB, free: 6.113 MB / 330.7 MB Notification: Performance of Templates: time 0.005528/0.5374, allocations: 2.609 MB / 456.3 MB, free: 3.52 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches