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.001232/0.001232, allocations: 107.1 kB / 17.74 MB, free: 5.32 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.001074/0.001074, allocations: 188.2 kB / 18.67 MB, free: 4.398 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.361/1.361, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009969/0.000997, allocations: 43.94 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3206, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003554/0.3242, allocations: 2.158 MB / 403.6 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.3255, allocations: 0.7012 MB / 404.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.3256, allocations: 0 / 404.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.3258, allocations: 31.66 kB / 404.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.326, allocations: 67.47 kB / 404.4 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003829/0.3264, allocations: 115.7 kB / 404.5 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003916/0.3268, allocations: 279.4 kB / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.327, allocations: 56.36 kB / 404.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.3272, allocations: 123.5 kB / 404.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.3274, allocations: 115.5 kB / 405 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.3275, allocations: 20 kB / 405.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.3276, allocations: 79.92 kB / 405.1 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.147e-05/0.3277, allocations: 51.77 kB / 405.2 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.3278, allocations: 115.5 kB / 405.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003604/0.3282, allocations: 284.2 kB / 405.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.3282, allocations: 0 / 405.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3282, allocations: 0 / 405.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.3282, allocations: 0 / 405.6 MB, free: 4.703 MB / 318.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.001039/0.3293, allocations: 0.551 MB / 406.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3293, allocations: 15.89 kB / 406.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.088e-05/0.3294, allocations: 32.69 kB / 406.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.3297, allocations: 243.8 kB / 406.4 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.3298, allocations: 16.38 kB / 406.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.3298, allocations: 16.38 kB / 406.4 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.3303, allocations: 243.4 kB / 406.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.3303, allocations: 8 kB / 406.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.3304, allocations: 8 kB / 406.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.3304, allocations: 4 kB / 406.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004684/0.3308, allocations: 191.9 kB / 406.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.3319, allocations: 0.6641 MB / 407.5 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005707/0.3325, allocations: 210.4 kB / 407.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.3327, allocations: 96.81 kB / 407.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.3327, allocations: 0 / 407.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003688/0.3331, allocations: 175.5 kB / 408 MB, free: 2.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/0.3331, allocations: 0 / 408 MB, free: 2.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002409/0.3355, allocations: 1.136 MB / 409.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.3356, allocations: 59.39 kB / 409.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.3358, allocations: 199.8 kB / 409.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.3358, allocations: 33.7 kB / 409.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.928e-05/0.3359, allocations: 136.3 kB / 409.6 MB, free: 376 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.402e-05/0.336, allocations: 90.73 kB / 409.7 MB, free: 284 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.316e-05/0.3361, allocations: 61.69 kB / 409.7 MB, free: 216 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3362, allocations: 330.8 kB / 410 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.3365, allocations: 108 kB / 410.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.3368, allocations: 156.8 kB / 410.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/0.3373, allocations: 242.7 kB / 410.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3373, allocations: 4 kB / 410.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008013/0.3381, allocations: 393.8 kB / 410.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/0.3382, allocations: 37.7 kB / 411 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3382, allocations: 3.938 kB / 411 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000251/0.3384, allocations: 72.88 kB / 411 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.3387, allocations: 51.84 kB / 411.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005031/0.3392, allocations: 0.6148 MB / 411.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.3395, allocations: 36 kB / 411.7 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.3395, allocations: 16 kB / 411.8 MB, free: 14.09 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 (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.0001453/0.3397, allocations: 141.7 kB / 411.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.3397, allocations: 27.73 kB / 411.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.195e-05/0.3398, allocations: 25.88 kB / 411.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3398, allocations: 4 kB / 412 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3398, allocations: 0 / 412 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3398, allocations: 3.984 kB / 412 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.3409, allocations: 0.6751 MB / 412.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3409, allocations: 0 / 412.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.3411, allocations: 39.97 kB / 412.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.3413, allocations: 64.81 kB / 412.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.3413, allocations: 12 kB / 412.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004269/0.3418, allocations: 0.6147 MB / 413.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3418, allocations: 0 / 413.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009638/0.3427, allocations: 0.5123 MB / 413.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.188e-05/0.3428, allocations: 112.9 kB / 414 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.3429, allocations: 4 kB / 414 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3431, allocations: 27.97 kB / 414 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.673e-05/0.3432, allocations: 31.95 kB / 414 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.3433, allocations: 11.98 kB / 414.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.3434, allocations: 143.5 kB / 414.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3434, allocations: 0 / 414.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003545/0.3438, allocations: 72 kB / 414.3 MB, free: 11.43 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 (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.000205/0.344, allocations: 119.2 kB / 414.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007624/0.3447, allocations: 328.8 kB / 414.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3448, allocations: 4 kB / 414.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003299/0.3451, allocations: 139.7 kB / 414.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.3455, allocations: 43.84 kB / 414.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.3469, allocations: 0.692 MB / 415.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.3472, allocations: 0.744 MB / 416.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.509e-05/0.3473, allocations: 19.44 kB / 416.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3473, allocations: 0 / 416.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of Templates: time 0.006631/0.3539, allocations: 3.829 MB / 420.2 MB, free: 5.457 MB / 334.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 -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