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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 109.3 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 55.67 kB / 302 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09206, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00316/0.09526, allocations: 2.158 MB / 353.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.09641, allocations: 0.6972 MB / 354.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.6e-05/0.09652, allocations: 4 kB / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.0967, allocations: 35.67 kB / 354.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.09688, allocations: 59.47 kB / 354.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.09722, allocations: 111.7 kB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003266/0.09756, allocations: 279.4 kB / 354.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.09772, allocations: 56.36 kB / 354.9 MB, free: 304 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.09791, allocations: 135.5 kB / 355 MB, free: 168 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.0981, allocations: 123.5 kB / 355.1 MB, free: 44 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.09814, allocations: 20 kB / 355.1 MB, free: 24 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.09828, allocations: 67.95 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.131e-05/0.09837, allocations: 55.81 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.0985, allocations: 111.5 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.09881, allocations: 283 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.09883, allocations: 0 / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09884, allocations: 0 / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.09885, allocations: 0 / 355.7 MB, free: 15.52 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009534/0.0998, allocations: 0.5549 MB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.09985, allocations: 19.88 kB / 356.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.607e-05/0.09992, allocations: 24.66 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.1002, allocations: 240.4 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1003, allocations: 16.31 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.1003, allocations: 24.28 kB / 356.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.1008, allocations: 247.3 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1008, allocations: 4 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.1008, allocations: 4 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1008, allocations: 4 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004711/0.1013, allocations: 195.8 kB / 357 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009985/0.1023, allocations: 0.6642 MB / 357.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000556/0.1029, allocations: 202.4 kB / 357.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.1031, allocations: 104.8 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.1032, allocations: 0 / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.1035, allocations: 167.5 kB / 358.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1036, allocations: 0 / 358.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002346/0.1059, allocations: 1.149 MB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.106, allocations: 55.41 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.1061, allocations: 187.9 kB / 359.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.1062, allocations: 33.7 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.798e-05/0.1063, allocations: 132.3 kB / 359.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.216e-05/0.1063, allocations: 90.69 kB / 359.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.1065, allocations: 69.69 kB / 359.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1066, allocations: 334.8 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.1068, allocations: 104.3 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.1071, allocations: 148.9 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004514/0.1076, allocations: 246.7 kB / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1076, allocations: 0 / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007873/0.1084, allocations: 401.9 kB / 361 MB, free: 9.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.677e-05/0.1084, allocations: 37.69 kB / 361 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1085, allocations: 3.938 kB / 361.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002243/0.1087, allocations: 72.8 kB / 361.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.1089, allocations: 55.89 kB / 361.2 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004636/0.1094, allocations: 0.6109 MB / 361.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.1097, allocations: 32 kB / 361.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.1097, allocations: 12 kB / 361.8 MB, free: 8.91 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 (32): * Single equations (assignments): 30 * 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.0001275/0.1098, allocations: 145.7 kB / 362 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.1099, allocations: 19.75 kB / 362 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.119e-05/0.1099, allocations: 21.88 kB / 362 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1099, allocations: 8.062 kB / 362 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1099, allocations: 3.984 kB / 362 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.11, allocations: 0 / 362 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.111, allocations: 0.6909 MB / 362.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.111, allocations: 0 / 362.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.1112, allocations: 55.91 kB / 362.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001581/0.1114, allocations: 60.83 kB / 362.8 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.1114, allocations: 11.98 kB / 362.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004219/0.1118, allocations: 0.5992 MB / 363.4 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1119, allocations: 0 / 363.4 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009173/0.1128, allocations: 0.5084 MB / 364 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.811e-05/0.1129, allocations: 112.9 kB / 364.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.1129, allocations: 4 kB / 364.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.1132, allocations: 31.95 kB / 364.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.663e-05/0.1133, allocations: 36.09 kB / 364.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.1133, allocations: 4 kB / 364.1 MB, free: 6.473 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1134, allocations: 139.5 kB / 364.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1134, allocations: 0 / 364.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.1138, allocations: 72 kB / 364.3 MB, free: 6.266 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 (20): * Single equations (assignments): 17 * 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.000192/0.114, allocations: 139.1 kB / 364.5 MB, free: 6.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00074/0.1147, allocations: 320 kB / 364.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1147, allocations: 0 / 364.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003434/0.1151, allocations: 147.8 kB / 364.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003939/0.1155, allocations: 44.03 kB / 365 MB, free: 5.605 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.1167, allocations: 0.6496 MB / 365.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.117, allocations: 0.7402 MB / 366.4 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.339e-05/0.1171, allocations: 21.95 kB / 366.4 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.315e-05/0.1171, allocations: 23.38 kB / 366.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1171, allocations: 0 / 366.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of Templates: time 0.00719/0.1243, allocations: 3.798 MB / 370.2 MB, free: 356 kB / 302.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches