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.002041/0.002041, allocations: 185.9 kB / 16.4 MB, free: 5.75 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.902/1.902, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001097/0.001097, allocations: 85.31 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003718, allocations: 11.98 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3324, allocations: 47.57 MB / 374.5 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.4556, allocations: 78.33 MB / 452.9 MB, free: 2.449 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.456, allocations: 75.95 kB / 452.9 MB, free: 2.375 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01955/0.4755, allocations: 4.085 MB / 457 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4756, allocations: 0 / 457 MB, free: 14.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.4756, allocations: 4 kB / 457 MB, free: 14.29 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.001418/0.4771, allocations: 0.547 MB / 457.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.4771, allocations: 8.031 kB / 457.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.764e-05/0.4772, allocations: 23.72 kB / 457.6 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003917/0.4776, allocations: 222.7 kB / 457.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.09e-05/0.4777, allocations: 15.95 kB / 457.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.751e-05/0.4778, allocations: 27.91 kB / 457.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008216/0.4786, allocations: 235.1 kB / 458.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.4787, allocations: 0 / 458.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.4787, allocations: 4 kB / 458.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.4787, allocations: 4 kB / 458.1 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008497/0.4796, allocations: 199.8 kB / 458.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.4812, allocations: 0.6564 MB / 459 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009597/0.4822, allocations: 231.2 kB / 459.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.605e-05/0.4823, allocations: 4 kB / 459.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006307/0.483, allocations: 177.2 kB / 459.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.516e-06/0.483, allocations: 0 / 459.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.004264/0.4872, allocations: 1.234 MB / 460.6 MB, free: 10.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.4874, allocations: 55.41 kB / 460.6 MB, free: 10.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.4876, allocations: 161.8 kB / 460.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.4877, allocations: 33.69 kB / 460.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.4878, allocations: 194.8 kB / 461 MB, free: 9.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.4879, allocations: 90.7 kB / 461.1 MB, free: 9.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.488, allocations: 8 kB / 461.1 MB, free: 9.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4881, allocations: 322.8 kB / 461.4 MB, free: 9.539 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.4886, allocations: 108.3 kB / 461.5 MB, free: 9.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004975/0.4891, allocations: 152 kB / 461.7 MB, free: 9.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004846/0.4896, allocations: 131.1 kB / 461.8 MB, free: 9.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.4896, allocations: 4 kB / 461.8 MB, free: 9.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001467/0.4911, allocations: 397.9 kB / 462.2 MB, free: 8.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.777e-05/0.4912, allocations: 34.8 kB / 462.2 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/0.4912, allocations: 0 / 462.2 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003661/0.4916, allocations: 64.81 kB / 462.3 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004095/0.492, allocations: 55.94 kB / 462.4 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007281/0.4928, allocations: 0.6109 MB / 463 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.4934, allocations: 48.02 kB / 463 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.357e-05/0.4934, allocations: 8 kB / 463 MB, free: 7.879 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.0002641/0.4937, allocations: 141.7 kB / 463.2 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-05/0.4938, allocations: 19.72 kB / 463.2 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.4951, allocations: 345.7 kB / 463.5 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.4952, allocations: 4 kB / 463.5 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.4952, allocations: 4 kB / 463.5 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.4952, allocations: 3.938 kB / 463.5 MB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.4972, allocations: 0.6951 MB / 464.2 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.4973, allocations: 4.031 kB / 464.2 MB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004515/0.4977, allocations: 47.97 kB / 464.3 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003124/0.4981, allocations: 60.81 kB / 464.3 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.4981, allocations: 11.98 kB / 464.4 MB, free: 6.465 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006938/0.4988, allocations: 0.6084 MB / 465 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4989, allocations: 0 / 465 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.5006, allocations: 0.5426 MB / 465.5 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.5009, allocations: 108.9 kB / 465.6 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.65e-05/0.501, allocations: 8 kB / 465.6 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.5014, allocations: 39.97 kB / 465.7 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.5016, allocations: 47.88 kB / 465.7 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/0.5017, allocations: 8 kB / 465.7 MB, free: 5.035 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001818/0.5019, allocations: 131.5 kB / 465.8 MB, free: 4.906 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5019, allocations: 4 kB / 465.8 MB, free: 4.902 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005579/0.5024, allocations: 76 kB / 465.9 MB, free: 4.828 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.0002874/0.5027, allocations: 132 kB / 466 MB, free: 4.691 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.5041, allocations: 365.6 kB / 466.4 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5041, allocations: 3.938 kB / 466.4 MB, free: 4.312 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006441/0.5048, allocations: 159.7 kB / 466.6 MB, free: 4.156 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005296/0.5053, allocations: 44.22 kB / 466.6 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.5077, allocations: 0.8234 MB / 467.4 MB, free: 3.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.5081, allocations: 0.7481 MB / 468.2 MB, free: 2.477 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.5083, allocations: 23.42 kB / 468.2 MB, free: 2.453 MB / 346.7 MB Notification: Performance of SimCode: time 1.603e-06/0.5083, allocations: 0 / 468.2 MB, free: 2.453 MB / 346.7 MB Notification: Performance of Templates: time 0.01026/0.5185, allocations: 3.694 MB / 471.9 MB, free: 14.77 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