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.00121/0.00121, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001303/0.001303, allocations: 200.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2902, allocations: 50.55 MB / 409.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004767/0.295, allocations: 2.286 MB / 411.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.2968, allocations: 0.8646 MB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002326/0.2971, allocations: 4 kB / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003283/0.2975, allocations: 51.53 kB / 412.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003541/0.2978, allocations: 107.2 kB / 412.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.2981, allocations: 91.81 kB / 412.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003905/0.2986, allocations: 287.4 kB / 412.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.2987, allocations: 64.34 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.299, allocations: 127.5 kB / 413.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.2993, allocations: 143.5 kB / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6e-05/0.2994, allocations: 20 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.2995, allocations: 83.91 kB / 413.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.898e-05/0.2996, allocations: 51.83 kB / 413.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.2998, allocations: 123.4 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004663/0.3003, allocations: 316.1 kB / 413.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3003, allocations: 0 / 413.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3003, allocations: 0 / 413.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.3003, allocations: 0 / 413.8 MB, free: 12.94 MB / 334.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.001139/0.3014, allocations: 0.5899 MB / 414.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3015, allocations: 8.031 kB / 414.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.3017, allocations: 36.64 kB / 414.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.3021, allocations: 249.5 kB / 414.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.3021, allocations: 16.38 kB / 414.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.3022, allocations: 16.38 kB / 414.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004641/0.3027, allocations: 235.3 kB / 415 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.3027, allocations: 7.891 kB / 415 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.3027, allocations: 12 kB / 415 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3027, allocations: 4 kB / 415 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004691/0.3032, allocations: 179.8 kB / 415.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009674/0.3042, allocations: 0.6447 MB / 415.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.3048, allocations: 206.3 kB / 416 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.305, allocations: 104.8 kB / 416.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.305, allocations: 4 kB / 416.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003669/0.3054, allocations: 167.2 kB / 416.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.963e-06/0.3054, allocations: 0 / 416.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002421/0.3079, allocations: 1.164 MB / 417.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.3079, allocations: 55.41 kB / 417.5 MB, free: 8.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.3081, allocations: 199.4 kB / 417.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.3082, allocations: 33.7 kB / 417.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.21e-05/0.3082, allocations: 132.3 kB / 417.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.911e-05/0.3083, allocations: 90.75 kB / 417.9 MB, free: 8.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.744e-05/0.3084, allocations: 61.69 kB / 418 MB, free: 8.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3085, allocations: 326.8 kB / 418.3 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.3088, allocations: 99.94 kB / 418.4 MB, free: 8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002816/0.3091, allocations: 144.1 kB / 418.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005097/0.3096, allocations: 250.5 kB / 418.8 MB, free: 7.586 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3096, allocations: 0 / 418.8 MB, free: 7.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007748/0.3104, allocations: 377.6 kB / 419.2 MB, free: 7.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/0.3104, allocations: 37.69 kB / 419.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3105, allocations: 0 / 419.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.3107, allocations: 60.77 kB / 419.3 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.3109, allocations: 55.89 kB / 419.3 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001809/0.3127, allocations: 1.799 MB / 421.1 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.313, allocations: 35.98 kB / 421.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.313, allocations: 12 kB / 421.2 MB, free: 5.055 MB / 334.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.0001427/0.3132, allocations: 146.1 kB / 421.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/0.3132, allocations: 27.7 kB / 421.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.269e-05/0.3133, allocations: 30.62 kB / 421.4 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3133, allocations: 4 kB / 421.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3133, allocations: 3.938 kB / 421.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3133, allocations: 3.984 kB / 421.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.3144, allocations: 0.6791 MB / 422.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.3144, allocations: 0 / 422.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.3147, allocations: 47.91 kB / 422.1 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001427/0.3148, allocations: 56.81 kB / 422.2 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.3148, allocations: 8 kB / 422.2 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.3163, allocations: 1.645 MB / 423.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3163, allocations: 0 / 423.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009722/0.3173, allocations: 0.5092 MB / 424.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.3174, allocations: 112.9 kB / 424.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.3174, allocations: 4 kB / 424.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.3177, allocations: 39.89 kB / 424.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.3179, allocations: 75.83 kB / 424.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.3179, allocations: 8 kB / 424.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.318, allocations: 143.2 kB / 424.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.318, allocations: 0 / 424.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004258/0.3185, allocations: 72 kB / 424.8 MB, free: 1.203 MB / 334.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.0009091/0.3194, allocations: 372.2 kB / 425.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008979/0.3203, allocations: 445.9 kB / 425.6 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3203, allocations: 8 kB / 425.6 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004447/0.3208, allocations: 266.5 kB / 425.8 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.3212, allocations: 48.03 kB / 425.9 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.3225, allocations: 0.6674 MB / 426.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.3228, allocations: 0.7519 MB / 427.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.3229, allocations: 17.95 kB / 427.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.168e-05/0.323, allocations: 27.42 kB / 427.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.323, allocations: 4 kB / 427.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of Templates: time 0.008661/0.3317, allocations: 4.579 MB / 431.9 MB, free: 10.09 MB / 350.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