Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00248/0.00248, allocations: 182 kB / 8.148 MB, free: 0.8594 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.825/1.825, allocations: 205.2 MB / 213.7 MB, free: 8.625 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001841/0.00184, allocations: 90.91 kB / 261.7 MB, free: 5.098 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 9.959e-06/1.01e-05, allocations: 0 / 314.3 MB, free: 2.457 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1379, allocations: 47.56 MB / 361.8 MB, free: 2.785 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2863/0.4243, allocations: 77.5 MB / 439.3 MB, free: 10.3 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.4246, allocations: 67.66 kB / 439.4 MB, free: 10.27 MB / 322.8 MB Notification: Performance of FrontEnd: time 0.01885/0.4434, allocations: 3.768 MB / 443.2 MB, free: 7.207 MB / 322.8 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.4435, allocations: 11.92 kB / 443.2 MB, free: 7.195 MB / 322.8 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.001105/0.4446, allocations: 0.5257 MB / 443.7 MB, free: 6.637 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4447, allocations: 8.031 kB / 443.7 MB, free: 6.629 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.663e-05/0.4448, allocations: 23.72 kB / 443.7 MB, free: 6.605 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.4451, allocations: 225.4 kB / 444 MB, free: 6.359 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.4451, allocations: 11.39 kB / 444 MB, free: 6.352 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.4452, allocations: 12 kB / 444 MB, free: 6.34 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004253/0.4456, allocations: 132.3 kB / 444.1 MB, free: 6.254 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.4461, allocations: 179.6 kB / 444.3 MB, free: 6.105 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.4461, allocations: 4 kB / 444.3 MB, free: 6.102 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.4461, allocations: 1.219 kB / 444.3 MB, free: 6.102 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.4462, allocations: 7.906 kB / 444.3 MB, free: 6.094 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.4476, allocations: 0.6224 MB / 444.9 MB, free: 5.523 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000369/0.448, allocations: 117 kB / 445 MB, free: 5.438 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.4482, allocations: 82.28 kB / 445.1 MB, free: 5.383 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.4483, allocations: 8.656 kB / 445.1 MB, free: 5.375 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002901/0.4486, allocations: 129.2 kB / 445.3 MB, free: 5.27 MB / 322.8 MB Notification: Performance of pre-optimization done (n=26): time 3.226e-06/0.4486, allocations: 4 kB / 445.3 MB, free: 5.266 MB / 322.8 MB Notification: Performance of matching and sorting (n=28): time 0.002026/0.4506, allocations: 0.8081 MB / 446.1 MB, free: 4.477 MB / 322.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.4507, allocations: 55.41 kB / 446.1 MB, free: 4.41 MB / 322.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.4509, allocations: 149.2 kB / 446.3 MB, free: 4.27 MB / 322.8 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.4509, allocations: 29.27 kB / 446.3 MB, free: 4.238 MB / 322.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.183e-05/0.451, allocations: 178.8 kB / 446.5 MB, free: 4.062 MB / 322.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.983e-05/0.4511, allocations: 97.58 kB / 446.6 MB, free: 3.98 MB / 322.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/0.4511, allocations: 0 / 446.6 MB, free: 3.98 MB / 322.8 MB Notification: Performance of setup shared object (initialization): time 6.487e-05/0.4512, allocations: 322.8 kB / 446.9 MB, free: 3.66 MB / 322.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.4514, allocations: 74.83 kB / 446.9 MB, free: 3.617 MB / 322.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.4517, allocations: 121.9 kB / 447.1 MB, free: 3.52 MB / 322.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.4519, allocations: 68.06 kB / 447.1 MB, free: 3.477 MB / 322.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.452, allocations: 0 / 447.1 MB, free: 3.477 MB / 322.8 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008611/0.4528, allocations: 286.5 kB / 447.4 MB, free: 3.25 MB / 322.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.4529, allocations: 5.406 kB / 447.4 MB, free: 3.246 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.4529, allocations: 0 / 447.4 MB, free: 3.246 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.4532, allocations: 63.7 kB / 447.5 MB, free: 3.199 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000405/0.4536, allocations: 51.91 kB / 447.5 MB, free: 3.148 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006788/0.4543, allocations: 0.6349 MB / 448.2 MB, free: 2.531 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004952/0.4548, allocations: 43.94 kB / 448.2 MB, free: 2.488 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.4549, allocations: 8 kB / 448.2 MB, free: 2.48 MB / 322.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: inertiaOut.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" type: Real 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: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 5} Notification: Performance of prepare postOptimizeDAE: time 0.000172/0.4551, allocations: 51.75 kB / 448.3 MB, free: 2.43 MB / 322.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.278e-05/0.4551, allocations: 19.8 kB / 448.3 MB, free: 2.41 MB / 322.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007025/0.4559, allocations: 260.8 kB / 448.5 MB, free: 2.203 MB / 322.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.4559, allocations: 0.8906 kB / 448.5 MB, free: 2.203 MB / 322.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4559, allocations: 0 / 448.5 MB, free: 2.203 MB / 322.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.4559, allocations: 4 kB / 448.5 MB, free: 2.199 MB / 322.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.4572, allocations: 0.5858 MB / 449.1 MB, free: 1.664 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.4572, allocations: 0 / 449.1 MB, free: 1.664 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004531/0.4576, allocations: 43.97 kB / 449.2 MB, free: 1.621 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002477/0.4579, allocations: 71.23 kB / 449.2 MB, free: 1.566 MB / 322.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-05/0.458, allocations: 4 kB / 449.2 MB, free: 1.562 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005788/0.4585, allocations: 0.6104 MB / 449.9 MB, free: 0.9648 MB / 322.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.4586, allocations: 0 / 449.9 MB, free: 0.9648 MB / 322.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009738/0.4596, allocations: 451.9 kB / 450.3 MB, free: 0.5938 MB / 322.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.4597, allocations: 108.8 kB / 450.4 MB, free: 484 kB / 322.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.839e-05/0.4598, allocations: 7.719 kB / 450.4 MB, free: 480 kB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004829/0.4603, allocations: 43.95 kB / 450.5 MB, free: 436 kB / 322.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.4604, allocations: 35.88 kB / 450.5 MB, free: 404 kB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.4605, allocations: 11.69 kB / 450.5 MB, free: 396 kB / 322.8 MB Notification: Performance of sort global known variables: time 0.0001232/0.4606, allocations: 118.5 kB / 450.6 MB, free: 288 kB / 322.8 MB Notification: Performance of remove unused functions: time 0.0004737/0.4611, allocations: 67.75 kB / 450.7 MB, free: 224 kB / 322.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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 (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.0002469/0.4614, allocations: 134 kB / 450.8 MB, free: 80 kB / 322.8 MB Notification: Performance of simCode: created initialization part: time 0.0008233/0.4622, allocations: 267.5 kB / 451.1 MB, free: 15.86 MB / 338.8 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4622, allocations: 4 kB / 451.1 MB, free: 15.86 MB / 338.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004177/0.4626, allocations: 115.2 kB / 451.2 MB, free: 15.78 MB / 338.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.4632, allocations: 33.27 kB / 451.2 MB, free: 15.75 MB / 338.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.4647, allocations: 0.5283 MB / 451.8 MB, free: 15.25 MB / 338.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/0.4653, allocations: 0.767 MB / 452.5 MB, free: 14.45 MB / 338.8 MB Notification: Performance of SimCode: time 1.152e-06/0.4653, allocations: 0 / 452.5 MB, free: 14.45 MB / 338.8 MB Notification: Performance of Templates: time 0.009283/0.4746, allocations: 3.736 MB / 456.3 MB, free: 10.8 MB / 338.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches