Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 114.8 kB / 17.74 MB, free: 5.355 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.001434/0.001434, allocations: 184.5 kB / 18.67 MB, free: 4.438 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.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 47.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3199, allocations: 49.44 MB / 401.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003995/0.3239, allocations: 2.212 MB / 403.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.3253, allocations: 0.6894 MB / 404.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.3255, allocations: 4 kB / 404.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002155/0.3258, allocations: 31.66 kB / 404.3 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.326, allocations: 67.47 kB / 404.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.3264, allocations: 103.8 kB / 404.5 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.3267, allocations: 263.4 kB / 404.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.3269, allocations: 64.34 kB / 404.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.3271, allocations: 107.6 kB / 404.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.3273, allocations: 119.5 kB / 405 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.3274, allocations: 20 kB / 405.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.3276, allocations: 67.95 kB / 405.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.736e-05/0.3277, allocations: 55.81 kB / 405.2 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.3278, allocations: 107.5 kB / 405.3 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003696/0.3282, allocations: 284.3 kB / 405.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3282, allocations: 0 / 405.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3282, allocations: 0 / 405.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.3282, allocations: 0 / 405.6 MB, free: 4.844 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008878/0.3291, allocations: 0.5108 MB / 406.1 MB, free: 4.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3292, allocations: 12.03 kB / 406.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.143e-05/0.3292, allocations: 24.66 kB / 406.1 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.3296, allocations: 239.9 kB / 406.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.3297, allocations: 16.81 kB / 406.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.3297, allocations: 16.38 kB / 406.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004114/0.3301, allocations: 226 kB / 406.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.3302, allocations: 3.906 kB / 406.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.3302, allocations: 11.94 kB / 406.6 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.3302, allocations: 8 kB / 406.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.3305, allocations: 161 kB / 406.8 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.3317, allocations: 0.7758 MB / 407.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003637/0.3321, allocations: 133.7 kB / 407.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3322, allocations: 72.83 kB / 407.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.3323, allocations: 0 / 407.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.3323, allocations: 34.5 kB / 407.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.3323, allocations: 4 kB / 407.8 MB, free: 2.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001912/0.3342, allocations: 0.9851 MB / 408.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.3343, allocations: 55.39 kB / 408.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.3346, allocations: 215.8 kB / 409 MB, free: 1.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3346, allocations: 29.7 kB / 409.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.311e-05/0.3347, allocations: 140.2 kB / 409.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.082e-05/0.3348, allocations: 70.98 kB / 409.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.028e-05/0.3349, allocations: 53.7 kB / 409.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.335, allocations: 334.8 kB / 409.7 MB, free: 412 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.3352, allocations: 79.95 kB / 409.7 MB, free: 332 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.3354, allocations: 120.1 kB / 409.9 MB, free: 196 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.3357, allocations: 173.4 kB / 410 MB, free: 12 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3357, allocations: 4 kB / 410 MB, free: 8 kB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005262/0.3362, allocations: 292.5 kB / 410.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.3362, allocations: 4 kB / 410.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.3362, allocations: 0 / 410.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/0.3365, allocations: 68.81 kB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.3367, allocations: 39.97 kB / 410.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005258/0.3372, allocations: 0.6265 MB / 411 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.3374, allocations: 24 kB / 411.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.3374, allocations: 11.98 kB / 411.1 MB, free: 14.91 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001488/0.3376, allocations: 137.7 kB / 411.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.327e-05/0.3377, allocations: 19.81 kB / 411.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.662e-05/0.3377, allocations: 29.86 kB / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3378, allocations: 3.938 kB / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3378, allocations: 8.062 kB / 411.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3378, allocations: 0 / 411.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008732/0.3387, allocations: 0.5934 MB / 411.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.3387, allocations: 0 / 411.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.3388, allocations: 27.98 kB / 411.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.339, allocations: 72.88 kB / 412 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.3391, allocations: 7.984 kB / 412 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004562/0.3395, allocations: 0.6147 MB / 412.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3395, allocations: 3.938 kB / 412.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006235/0.3402, allocations: 428.4 kB / 413 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.583e-05/0.3403, allocations: 105 kB / 413.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.032e-05/0.3403, allocations: 7.984 kB / 413.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.3405, allocations: 19.98 kB / 413.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.182e-05/0.3406, allocations: 23.97 kB / 413.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3406, allocations: 7.984 kB / 413.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001331/0.3407, allocations: 148.5 kB / 413.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3407, allocations: 0 / 413.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003351/0.3411, allocations: 67.94 kB / 413.4 MB, free: 12.46 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002167/0.3413, allocations: 127.2 kB / 413.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000508/0.3418, allocations: 207.6 kB / 413.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3418, allocations: 0 / 413.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.3421, allocations: 103.9 kB / 413.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.3425, allocations: 27.98 kB / 413.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.3438, allocations: 0.6823 MB / 414.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.3442, allocations: 0.7478 MB / 415.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.697e-05/0.3443, allocations: 23.44 kB / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3443, allocations: 0 / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of Templates: time 0.006303/0.3506, allocations: 3.473 MB / 418.8 MB, free: 7.012 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches