Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001096, allocations: 94.08 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 202.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002364/0.0002366, allocations: 8 kB / 307.7 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08938/0.08963, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002591/0.09226, allocations: 1.971 MB / 361.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.09377, allocations: 0.8531 MB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.09395, allocations: 0 / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002658/0.09422, allocations: 43.75 kB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003297/0.09457, allocations: 99.45 kB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.09482, allocations: 67.92 kB / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003374/0.09517, allocations: 279.4 kB / 362.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.09534, allocations: 52.25 kB / 362.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.0956, allocations: 119.5 kB / 362.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.09583, allocations: 123.5 kB / 362.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.09588, allocations: 16 kB / 362.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.09604, allocations: 63.97 kB / 362.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.848e-05/0.09613, allocations: 43.83 kB / 363 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.09627, allocations: 133.1 kB / 363.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.09667, allocations: 295.3 kB / 363.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.09668, allocations: 7.875 kB / 363.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.09669, allocations: 0 / 363.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.09671, allocations: 4 kB / 363.4 MB, free: 9.121 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001026/0.09774, allocations: 0.5511 MB / 363.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.09779, allocations: 8.031 kB / 364 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.09798, allocations: 40.64 kB / 364 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.0983, allocations: 253.5 kB / 364.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.09834, allocations: 16.38 kB / 364.3 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.888e-05/0.0984, allocations: 16.38 kB / 364.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.09889, allocations: 239.5 kB / 364.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.09892, allocations: 7.906 kB / 364.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.09895, allocations: 4 kB / 364.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.09897, allocations: 8 kB / 364.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004984/0.09947, allocations: 199.6 kB / 364.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009926/0.1005, allocations: 0.6565 MB / 365.4 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006083/0.1011, allocations: 218.3 kB / 365.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002684/0.1014, allocations: 112.8 kB / 365.7 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.1014, allocations: 3.938 kB / 365.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004178/0.1018, allocations: 176.3 kB / 365.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.763e-06/0.1018, allocations: 0 / 365.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002616/0.1045, allocations: 1.227 MB / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.1045, allocations: 55.41 kB / 367.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.1047, allocations: 203.1 kB / 367.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.1048, allocations: 41.7 kB / 367.4 MB, free: 4.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.231e-05/0.1049, allocations: 132.3 kB / 367.5 MB, free: 4.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.931e-05/0.1049, allocations: 90.73 kB / 367.6 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.105, allocations: 33.7 kB / 367.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.1051, allocations: 330.8 kB / 368 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.1054, allocations: 107.9 kB / 368.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.1057, allocations: 152.3 kB / 368.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005134/0.1062, allocations: 254.1 kB / 368.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1062, allocations: 0 / 368.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008463/0.1071, allocations: 397.6 kB / 368.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.1071, allocations: 29.7 kB / 368.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1072, allocations: 0 / 368.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002103/0.1074, allocations: 72.8 kB / 369 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.1076, allocations: 51.97 kB / 369 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001794/0.1094, allocations: 1.631 MB / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.1097, allocations: 48.05 kB / 370.7 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/0.1098, allocations: 12 kB / 370.7 MB, free: 1.277 MB / 302.1 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 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001694/0.1099, allocations: 155 kB / 370.9 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.92e-05/0.11, allocations: 23.7 kB / 370.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.498e-05/0.11, allocations: 26.56 kB / 370.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1101, allocations: 4 kB / 370.9 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1101, allocations: 0 / 370.9 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.1101, allocations: 3.984 kB / 370.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.1113, allocations: 0.7078 MB / 371.6 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1113, allocations: 0 / 371.6 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/0.1115, allocations: 47.97 kB / 371.7 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.1116, allocations: 52.83 kB / 371.7 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.1117, allocations: 8 kB / 371.7 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1789/0.2906, allocations: 1.532 MB / 373.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2906, allocations: 0 / 373.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.2918, allocations: 0.5337 MB / 373.8 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.292, allocations: 124.1 kB / 373.9 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.597e-05/0.292, allocations: 6.547 kB / 373.9 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002822/0.2923, allocations: 43.03 kB / 374 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002012/0.2925, allocations: 69.91 kB / 374 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.2925, allocations: 10.33 kB / 374 MB, free: 17.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.2927, allocations: 147.5 kB / 374.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2927, allocations: 0 / 374.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000474/0.2932, allocations: 77.11 kB / 374.3 MB, free: 17.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008327/0.294, allocations: 370.7 kB / 374.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009605/0.295, allocations: 463.6 kB / 375.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.295, allocations: 0 / 375.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.2955, allocations: 275.2 kB / 375.3 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004434/0.2959, allocations: 43.8 kB / 375.4 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.2975, allocations: 0.8182 MB / 376.2 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.2978, allocations: 0.7486 MB / 377 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001597/0.2979, allocations: 31.5 kB / 377 MB, free: 16.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.408e-05/0.298, allocations: 23.67 kB / 377 MB, free: 16.02 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.298, allocations: 0 / 377 MB, free: 16.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01009/0.3081, allocations: 4.061 MB / 381.1 MB, free: 15.74 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches