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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009439/0.0009441, allocations: 175.8 kB / 17.41 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.4 MB / 223.6 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007704/0.0007706, allocations: 100.9 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003224, allocations: 12 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2533, allocations: 47.57 MB / 375.7 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09011/0.3435, allocations: 78.38 MB / 454.1 MB, free: 2.246 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.3437, allocations: 75.95 kB / 454.2 MB, free: 2.172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01141/0.3551, allocations: 4.089 MB / 458.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3552, allocations: 0 / 458.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.3552, allocations: 4 kB / 458.3 MB, free: 14.08 MB / 346.7 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.0009048/0.3561, allocations: 0.5434 MB / 458.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3561, allocations: 8.031 kB / 458.8 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.166e-05/0.3562, allocations: 24.66 kB / 458.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.3565, allocations: 235.8 kB / 459.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.3565, allocations: 12.38 kB / 459.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.654e-05/0.3566, allocations: 24.38 kB / 459.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/0.357, allocations: 231.8 kB / 459.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.3571, allocations: 192 / 459.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.3571, allocations: 11.92 kB / 459.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.3571, allocations: 8 kB / 459.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00047/0.3576, allocations: 199.8 kB / 459.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.3586, allocations: 0.6525 MB / 460.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.3591, allocations: 223.2 kB / 460.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.3594, allocations: 117.4 kB / 460.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.719e-05/0.3594, allocations: 12.36 kB / 460.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003683/0.3598, allocations: 176.1 kB / 460.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 2.064e-06/0.3598, allocations: 0 / 460.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.002452/0.3623, allocations: 1.238 MB / 462 MB, free: 10.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.3623, allocations: 55.41 kB / 462 MB, free: 10.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.3625, allocations: 174.7 kB / 462.2 MB, free: 9.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.3626, allocations: 33.7 kB / 462.2 MB, free: 9.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.292e-05/0.3626, allocations: 136.3 kB / 462.3 MB, free: 9.664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.954e-05/0.3627, allocations: 86.8 kB / 462.4 MB, free: 9.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.709e-05/0.3627, allocations: 4 kB / 462.4 MB, free: 9.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3629, allocations: 338.8 kB / 462.8 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.3631, allocations: 104.3 kB / 462.9 MB, free: 9.133 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.3634, allocations: 156 kB / 463 MB, free: 8.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.364, allocations: 258.6 kB / 463.3 MB, free: 8.695 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.364, allocations: 3.938 kB / 463.3 MB, free: 8.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008137/0.3648, allocations: 397.6 kB / 463.7 MB, free: 8.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.3649, allocations: 37.7 kB / 463.7 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3649, allocations: 0 / 463.7 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002237/0.3651, allocations: 64.81 kB / 463.8 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.3653, allocations: 55.88 kB / 463.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004776/0.3658, allocations: 0.6084 MB / 464.4 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.3661, allocations: 48.02 kB / 464.5 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.3661, allocations: 12 kB / 464.5 MB, free: 7.434 MB / 346.7 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 ($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 () * Number of clocked 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.3663, allocations: 141.7 kB / 464.6 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.3663, allocations: 23.66 kB / 464.6 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006995/0.367, allocations: 329.8 kB / 465 MB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/0.367, allocations: 7.984 kB / 465 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.367, allocations: 7.922 kB / 465 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.367, allocations: 0 / 465 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.3682, allocations: 0.7104 MB / 465.7 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.3682, allocations: 4 kB / 465.7 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.3684, allocations: 51.94 kB / 465.8 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001519/0.3686, allocations: 56.83 kB / 465.8 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.3686, allocations: 11.98 kB / 465.8 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004234/0.3691, allocations: 0.5993 MB / 466.4 MB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3691, allocations: 0 / 466.4 MB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009724/0.37, allocations: 0.5336 MB / 467 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.569e-05/0.3702, allocations: 108.9 kB / 467.1 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.3702, allocations: 12 kB / 467.1 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.3704, allocations: 35.97 kB / 467.1 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.3706, allocations: 43.88 kB / 467.1 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.859e-05/0.3706, allocations: 11.92 kB / 467.2 MB, free: 4.605 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.3707, allocations: 131.5 kB / 467.3 MB, free: 4.477 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3707, allocations: 0 / 467.3 MB, free: 4.477 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003544/0.3711, allocations: 79.98 kB / 467.4 MB, free: 4.398 MB / 346.7 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) * 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 (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.0001973/0.3713, allocations: 131.2 kB / 467.5 MB, free: 4.258 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007714/0.3721, allocations: 372.9 kB / 467.9 MB, free: 3.875 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3721, allocations: 0 / 467.9 MB, free: 3.875 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.3724, allocations: 155.8 kB / 468 MB, free: 3.723 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.3728, allocations: 41.75 kB / 468.1 MB, free: 3.684 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.3742, allocations: 0.8273 MB / 468.9 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3746, allocations: 0.7402 MB / 469.6 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.5e-05/0.3746, allocations: 23.44 kB / 469.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3746, allocations: 0 / 469.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of Templates: time 0.005658/0.3803, allocations: 3.79 MB / 473.4 MB, free: 14.26 MB / 362.7 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