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.002461/0.002466, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001168/0.001168, allocations: 97.02 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.785e-05/1.792e-05, allocations: 0 / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3422, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1306/0.4729, allocations: 77.59 MB / 439.9 MB, free: 8.723 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.4732, allocations: 67.97 kB / 440 MB, free: 8.656 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0205/0.4938, allocations: 4.035 MB / 444 MB, free: 4.664 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4938, allocations: 4 kB / 444 MB, free: 4.66 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.4939, allocations: 4 kB / 444 MB, free: 4.656 MB / 331.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.001364/0.4952, allocations: 0.5209 MB / 444.5 MB, free: 4.09 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.4953, allocations: 8.031 kB / 444.6 MB, free: 4.082 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.4954, allocations: 23.72 kB / 444.6 MB, free: 4.059 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.4959, allocations: 226.7 kB / 444.8 MB, free: 3.797 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.4959, allocations: 13.64 kB / 444.8 MB, free: 3.785 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.284e-05/0.496, allocations: 15.98 kB / 444.8 MB, free: 3.77 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004628/0.4965, allocations: 128 kB / 445 MB, free: 3.645 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000501/0.497, allocations: 180.3 kB / 445.1 MB, free: 3.457 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.4971, allocations: 0 / 445.1 MB, free: 3.457 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.4971, allocations: 4 kB / 445.1 MB, free: 3.453 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.4971, allocations: 7.984 kB / 445.1 MB, free: 3.445 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.4987, allocations: 0.6139 MB / 445.8 MB, free: 2.789 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005384/0.4993, allocations: 154.5 kB / 445.9 MB, free: 2.629 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.4995, allocations: 73.52 kB / 446 MB, free: 2.555 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.263e-05/0.4996, allocations: 15.88 kB / 446 MB, free: 2.539 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004163/0.5, allocations: 139.7 kB / 446.1 MB, free: 2.391 MB / 331.1 MB Notification: Performance of pre-optimization done (n=26): time 3.427e-06/0.5001, allocations: 4 kB / 446.1 MB, free: 2.387 MB / 331.1 MB Notification: Performance of matching and sorting (n=28): time 0.002365/0.5024, allocations: 0.827 MB / 447 MB, free: 1.469 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.5025, allocations: 55.41 kB / 447 MB, free: 1.402 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.5028, allocations: 145.9 kB / 447.2 MB, free: 1.25 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 5.355e-05/0.5028, allocations: 30.73 kB / 447.2 MB, free: 1.215 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.503, allocations: 194.9 kB / 447.4 MB, free: 1.023 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.5031, allocations: 90.66 kB / 447.5 MB, free: 0.9336 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.167e-05/0.5032, allocations: 0 / 447.5 MB, free: 0.9336 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5033, allocations: 326.8 kB / 447.8 MB, free: 0.6055 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.5036, allocations: 72.27 kB / 447.9 MB, free: 0.5352 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.5038, allocations: 116.3 kB / 448 MB, free: 416 kB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.5042, allocations: 77.31 kB / 448 MB, free: 340 kB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5042, allocations: 0 / 448 MB, free: 340 kB / 331.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001004/0.5052, allocations: 288.3 kB / 448.3 MB, free: 44 kB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.341e-05/0.5053, allocations: 37.69 kB / 448.4 MB, free: 0 / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.5053, allocations: 1.312 kB / 448.4 MB, free: 0 / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003485/0.5057, allocations: 64.89 kB / 448.4 MB, free: 15.93 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004057/0.5061, allocations: 51.91 kB / 448.5 MB, free: 15.88 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007788/0.5069, allocations: 0.6156 MB / 449.1 MB, free: 15.24 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005214/0.5074, allocations: 40.05 kB / 449.1 MB, free: 15.2 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.237e-05/0.5075, allocations: 16 kB / 449.1 MB, free: 15.19 MB / 347.1 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.0002297/0.5078, allocations: 112.7 kB / 449.3 MB, free: 15.07 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.508e-05/0.5078, allocations: 19.72 kB / 449.3 MB, free: 15.05 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008401/0.5087, allocations: 258.5 kB / 449.5 MB, free: 14.79 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.5087, allocations: 7.953 kB / 449.5 MB, free: 14.79 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.5088, allocations: 3.984 kB / 449.5 MB, free: 14.78 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.5088, allocations: 0 / 449.5 MB, free: 14.78 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.5102, allocations: 0.5908 MB / 450.1 MB, free: 14.14 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.5103, allocations: 0 / 450.1 MB, free: 14.14 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.5108, allocations: 55.84 kB / 450.2 MB, free: 14.09 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002624/0.511, allocations: 61.44 kB / 450.2 MB, free: 14.03 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.5111, allocations: 0 / 450.2 MB, free: 14.03 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007259/0.5118, allocations: 0.6118 MB / 450.9 MB, free: 13.39 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/0.5119, allocations: 4.094 kB / 450.9 MB, free: 13.39 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.513, allocations: 451.1 kB / 451.3 MB, free: 12.92 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.5133, allocations: 108.9 kB / 451.4 MB, free: 12.79 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.5133, allocations: 4 kB / 451.4 MB, free: 12.79 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/0.5138, allocations: 39.95 kB / 451.5 MB, free: 12.75 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.514, allocations: 31.94 kB / 451.5 MB, free: 12.72 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.514, allocations: 12 kB / 451.5 MB, free: 12.71 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001595/0.5142, allocations: 123.2 kB / 451.6 MB, free: 12.59 MB / 347.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5142, allocations: 0 / 451.6 MB, free: 12.59 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005573/0.5148, allocations: 71.94 kB / 451.7 MB, free: 12.52 MB / 347.1 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.000291/0.5151, allocations: 131.1 kB / 451.8 MB, free: 12.38 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0008981/0.516, allocations: 302.6 kB / 452.1 MB, free: 12.06 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/0.516, allocations: 0 / 452.1 MB, free: 12.06 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.5165, allocations: 121.9 kB / 452.2 MB, free: 11.95 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005404/0.517, allocations: 36.16 kB / 452.3 MB, free: 11.91 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.5185, allocations: 0.5142 MB / 452.8 MB, free: 11.38 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.519, allocations: 0.7479 MB / 453.5 MB, free: 10.6 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.5191, allocations: 19.42 kB / 453.5 MB, free: 10.58 MB / 347.1 MB Notification: Performance of SimCode: time 9.51e-07/0.5191, allocations: 4 kB / 453.5 MB, free: 10.58 MB / 347.1 MB Notification: Performance of Templates: time 0.01009/0.5292, allocations: 3.679 MB / 457.2 MB, free: 6.941 MB / 347.1 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