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.001537/0.001537, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 221.4 MB / 235.5 MB, free: 2.875 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.001009/0.001009, allocations: 102.8 kB / 286.5 MB, free: 156 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.477e-05/2.481e-05, allocations: 0 / 343.8 MB, free: 4.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 50.42 MB / 394.2 MB, free: 1.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4614, allocations: 79.11 MB / 473.4 MB, free: 8.395 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4616, allocations: 75.78 kB / 473.4 MB, free: 8.324 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0124/0.4741, allocations: 4.154 MB / 477.6 MB, free: 4.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4741, allocations: 0 / 477.6 MB, free: 4.176 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.4741, allocations: 4 kB / 477.6 MB, free: 4.172 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.0008154/0.4749, allocations: 0.5158 MB / 478.1 MB, free: 3.605 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.475, allocations: 8.031 kB / 478.1 MB, free: 3.598 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.496e-05/0.4751, allocations: 23.72 kB / 478.1 MB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.4754, allocations: 230.9 kB / 478.4 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.4754, allocations: 16 kB / 478.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.053e-05/0.4755, allocations: 19.94 kB / 478.4 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.4759, allocations: 207.2 kB / 478.6 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.4759, allocations: 0 / 478.6 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.4759, allocations: 11.95 kB / 478.6 MB, free: 3.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.476, allocations: 11.98 kB / 478.6 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002683/0.4762, allocations: 139.9 kB / 478.8 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.4773, allocations: 0.6563 MB / 479.4 MB, free: 2.188 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.4777, allocations: 178.4 kB / 479.6 MB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.4778, allocations: 84.84 kB / 479.7 MB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.4779, allocations: 4 kB / 479.7 MB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002778/0.4781, allocations: 151.6 kB / 479.8 MB, free: 1.754 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.015e-06/0.4782, allocations: 0 / 479.8 MB, free: 1.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001501/0.4797, allocations: 0.8816 MB / 480.7 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.4797, allocations: 55.41 kB / 480.8 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.4799, allocations: 157.8 kB / 480.9 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.4799, allocations: 33.7 kB / 480.9 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.508e-05/0.48, allocations: 128.5 kB / 481.1 MB, free: 388 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.835e-05/0.4801, allocations: 94.64 kB / 481.2 MB, free: 292 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.884e-05/0.4802, allocations: 8 kB / 481.2 MB, free: 284 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.4803, allocations: 330.8 kB / 481.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.4805, allocations: 84.31 kB / 481.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.4808, allocations: 124.3 kB / 481.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.481, allocations: 103 kB / 481.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.481, allocations: 4 kB / 481.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007723/0.4818, allocations: 346 kB / 482.1 MB, free: 15.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/0.4818, allocations: 33.69 kB / 482.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.4819, allocations: 4 kB / 482.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.4821, allocations: 60.83 kB / 482.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.4824, allocations: 55.97 kB / 482.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006415/0.4831, allocations: 0.6108 MB / 482.9 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003336/0.4834, allocations: 44.06 kB / 482.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.4835, allocations: 12 kB / 483 MB, free: 14.41 MB / 362.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 () * 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.0001376/0.4836, allocations: 121 kB / 483.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.4837, allocations: 19.75 kB / 483.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006111/0.4843, allocations: 282.2 kB / 483.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.4843, allocations: 4 kB / 483.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.4843, allocations: 4 kB / 483.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.4843, allocations: 7.953 kB / 483.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.4854, allocations: 0.6406 MB / 484 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.4855, allocations: 0 / 484 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.4858, allocations: 47.97 kB / 484.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.486, allocations: 64.8 kB / 484.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.486, allocations: 7.984 kB / 484.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005156/0.4865, allocations: 0.603 MB / 484.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.4865, allocations: 7.969 kB / 484.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008416/0.4874, allocations: 462.7 kB / 485.2 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.4875, allocations: 116.8 kB / 485.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.4876, allocations: 4 kB / 485.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.4879, allocations: 51.89 kB / 485.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.4881, allocations: 32.08 kB / 485.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.4881, allocations: 15.98 kB / 485.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000101/0.4882, allocations: 127.5 kB / 485.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4882, allocations: 0 / 485.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003729/0.4886, allocations: 76 kB / 485.6 MB, free: 11.59 MB / 362.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.0002144/0.4888, allocations: 139.1 kB / 485.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005713/0.4894, allocations: 316.8 kB / 486.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4894, allocations: 0 / 486.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002537/0.4897, allocations: 119.9 kB / 486.2 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.49, allocations: 30.19 kB / 486.2 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009372/0.4909, allocations: 0.5134 MB / 486.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.4913, allocations: 0.7518 MB / 487.5 MB, free: 9.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.4914, allocations: 14.08 kB / 487.5 MB, free: 9.637 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.4915, allocations: 23.42 kB / 487.5 MB, free: 9.613 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4915, allocations: 4 kB / 487.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of Templates: time 0.0068/0.4983, allocations: 3.278 MB / 490.8 MB, free: 6.367 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