Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009407/0.0009407, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 96.5 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.573e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1125, allocations: 50.42 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3497/0.4623, allocations: 78.47 MB / 465.9 MB, free: 416 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.4625, allocations: 63.97 kB / 466 MB, free: 352 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01244/0.475, allocations: 4.121 MB / 470.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.475, allocations: 0 / 470.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.019e-05/0.4751, allocations: 4 kB / 470.1 MB, free: 12.23 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.000833/0.4759, allocations: 0.5276 MB / 470.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.476, allocations: 8.031 kB / 470.6 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/0.476, allocations: 27.66 kB / 470.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.4763, allocations: 218.8 kB / 470.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.4763, allocations: 8 kB / 470.9 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.4764, allocations: 12 kB / 470.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002678/0.4767, allocations: 135.9 kB / 471 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.477, allocations: 187.2 kB / 471.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.477, allocations: 0 / 471.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.477, allocations: 0 / 471.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.477, allocations: 4 kB / 471.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009934/0.478, allocations: 0.6217 MB / 471.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.4784, allocations: 158.5 kB / 472 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.4785, allocations: 80.84 kB / 472.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.831e-05/0.4786, allocations: 4 kB / 472.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.4788, allocations: 149 kB / 472.2 MB, free: 9.938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.557e-06/0.4788, allocations: 0 / 472.2 MB, free: 9.938 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001416/0.4803, allocations: 0.8257 MB / 473.1 MB, free: 9.016 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.4803, allocations: 59.41 kB / 473.1 MB, free: 8.945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.4804, allocations: 149.8 kB / 473.3 MB, free: 8.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.4805, allocations: 33.7 kB / 473.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.458e-05/0.4806, allocations: 128.5 kB / 473.4 MB, free: 8.621 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.4806, allocations: 90.66 kB / 473.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.508e-05/0.4807, allocations: 0 / 473.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4808, allocations: 330.8 kB / 473.8 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.4809, allocations: 68.33 kB / 473.9 MB, free: 8.133 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.4811, allocations: 121 kB / 474 MB, free: 8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.4813, allocations: 73.31 kB / 474.1 MB, free: 7.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.4813, allocations: 0 / 474.1 MB, free: 7.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005907/0.4819, allocations: 292.3 kB / 474.4 MB, free: 7.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.4819, allocations: 39.33 kB / 474.4 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.4819, allocations: 4 kB / 474.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001985/0.4822, allocations: 60.81 kB / 474.5 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.4824, allocations: 51.91 kB / 474.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005416/0.4829, allocations: 0.6147 MB / 475.1 MB, free: 6.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.4832, allocations: 35.95 kB / 475.2 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.504e-05/0.4832, allocations: 19.98 kB / 475.2 MB, free: 6.781 MB / 346.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: 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.4834, allocations: 121.8 kB / 475.3 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.4835, allocations: 23.72 kB / 475.3 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004702/0.4839, allocations: 254.9 kB / 475.6 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.4839, allocations: 7.938 kB / 475.6 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.484, allocations: 0 / 475.6 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.484, allocations: 3.984 kB / 475.6 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008666/0.4848, allocations: 0.5956 MB / 476.2 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4849, allocations: 0 / 476.2 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.4851, allocations: 39.97 kB / 476.2 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001532/0.4853, allocations: 56.83 kB / 476.3 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.4853, allocations: 7.984 kB / 476.3 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004741/0.4858, allocations: 0.6148 MB / 476.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4858, allocations: 3.938 kB / 476.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006961/0.4865, allocations: 462.7 kB / 477.4 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.4866, allocations: 108.9 kB / 477.5 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.4867, allocations: 0 / 477.5 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.4869, allocations: 35.97 kB / 477.5 MB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.4871, allocations: 39.92 kB / 477.5 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.4871, allocations: 12 kB / 477.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000114/0.4872, allocations: 119.3 kB / 477.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4872, allocations: 0 / 477.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003949/0.4876, allocations: 67.98 kB / 477.7 MB, free: 4.09 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) * 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.0002607/0.4879, allocations: 125 kB / 477.9 MB, free: 3.961 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005891/0.4885, allocations: 304.8 kB / 478.2 MB, free: 3.645 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4885, allocations: 128 / 478.2 MB, free: 3.645 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.4887, allocations: 123.8 kB / 478.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.4891, allocations: 34.53 kB / 478.3 MB, free: 3.488 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009225/0.49, allocations: 0.4998 MB / 478.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.4904, allocations: 0.7484 MB / 479.6 MB, free: 2.191 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.4905, allocations: 22.02 kB / 479.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.311e-05/0.4905, allocations: 19.44 kB / 479.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4905, allocations: 0 / 479.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of Templates: time 0.006661/0.4972, allocations: 3.132 MB / 482.7 MB, free: 15.04 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches