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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00176/0.00176, allocations: 196.7 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007211/0.0007211, allocations: 102.2 kB / 297.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002217, allocations: 12 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2053, allocations: 51.29 MB / 409.4 MB, free: 27.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09699/0.3024, allocations: 80.85 MB / 490.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.3026, allocations: 71.97 kB / 490.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01534/0.318, allocations: 5.78 MB / 496.1 MB, free: 4.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.318, allocations: 0 / 496.1 MB, free: 4.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.3181, allocations: 4 kB / 496.1 MB, free: 4.766 MB / 362.7 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.0008964/0.319, allocations: 0.5627 MB / 496.6 MB, free: 4.145 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.319, allocations: 8.031 kB / 496.6 MB, free: 4.137 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.3192, allocations: 36.64 kB / 496.7 MB, free: 4.102 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.3195, allocations: 247.9 kB / 496.9 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.3195, allocations: 16.38 kB / 496.9 MB, free: 3.805 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.568e-05/0.3196, allocations: 24.27 kB / 497 MB, free: 3.781 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004512/0.3201, allocations: 231.7 kB / 497.2 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.3201, allocations: 192 / 497.2 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.3201, allocations: 15.94 kB / 497.2 MB, free: 3.527 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3201, allocations: 4 kB / 497.2 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004603/0.3206, allocations: 191.7 kB / 497.4 MB, free: 3.336 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009909/0.3216, allocations: 0.6564 MB / 498 MB, free: 2.625 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005406/0.3222, allocations: 206.5 kB / 498.2 MB, free: 2.414 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.3224, allocations: 114.4 kB / 498.4 MB, free: 2.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.3224, allocations: 4 kB / 498.4 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003796/0.3228, allocations: 179.1 kB / 498.5 MB, free: 2.109 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 2.325e-06/0.3228, allocations: 7.938 kB / 498.5 MB, free: 2.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002425/0.3253, allocations: 1.219 MB / 499.8 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.3253, allocations: 55.41 kB / 499.8 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.3256, allocations: 191.3 kB / 0.4883 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.3256, allocations: 33.69 kB / 0.4883 GB, free: 476 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.3257, allocations: 132.3 kB / 0.4884 GB, free: 340 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.202e-05/0.3258, allocations: 102.6 kB / 0.4885 GB, free: 236 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.632e-05/0.3258, allocations: 8 kB / 0.4886 GB, free: 228 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.326, allocations: 330.8 kB / 0.4889 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.3263, allocations: 103.9 kB / 0.489 GB, free: 15.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.3266, allocations: 151.7 kB / 0.4891 GB, free: 15.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005399/0.3271, allocations: 255.4 kB / 0.4894 GB, free: 15.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3271, allocations: 0 / 0.4894 GB, free: 15.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008448/0.328, allocations: 398.4 kB / 0.4897 GB, free: 14.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/0.328, allocations: 34.48 kB / 0.4898 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.3281, allocations: 3.984 kB / 0.4898 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000211/0.3283, allocations: 60.83 kB / 0.4898 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.3285, allocations: 55.91 kB / 0.4899 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.3302, allocations: 1.631 MB / 0.4915 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.3305, allocations: 44.03 kB / 0.4915 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3306, allocations: 11.98 kB / 0.4915 GB, free: 12.98 MB / 378.7 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 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.3308, allocations: 145.9 kB / 0.4917 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.3309, allocations: 19.72 kB / 0.4917 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.39e-05/0.3309, allocations: 34.59 kB / 0.4917 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3309, allocations: 7.984 kB / 0.4917 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3309, allocations: 0 / 0.4917 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.331, allocations: 0 / 0.4917 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.3321, allocations: 0.7021 MB / 0.4924 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3321, allocations: 4 kB / 0.4924 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.3323, allocations: 47.91 kB / 0.4925 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.3325, allocations: 52.83 kB / 0.4925 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.3325, allocations: 8 kB / 0.4925 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001365/0.3339, allocations: 1.543 MB / 0.494 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3339, allocations: 7.938 kB / 0.494 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009797/0.3349, allocations: 0.5199 MB / 0.4945 GB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.335, allocations: 120.8 kB / 0.4947 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.3351, allocations: 8 kB / 0.4947 GB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.3353, allocations: 39.95 kB / 0.4947 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.3355, allocations: 75.8 kB / 0.4948 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.3355, allocations: 16 kB / 0.4948 GB, free: 9.395 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001369/0.3356, allocations: 140.3 kB / 0.4949 GB, free: 9.258 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3357, allocations: 0 / 0.4949 GB, free: 9.258 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004345/0.3361, allocations: 91.88 kB / 0.495 GB, free: 9.168 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008291/0.3369, allocations: 381.2 kB / 0.4954 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008495/0.3378, allocations: 470.7 kB / 0.4958 GB, free: 8.434 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3378, allocations: 0 / 0.4958 GB, free: 8.434 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.3382, allocations: 266.5 kB / 0.4961 GB, free: 8.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.3387, allocations: 43.98 kB / 0.4961 GB, free: 8.117 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.34, allocations: 0.8058 MB / 0.4969 GB, free: 7.285 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.3403, allocations: 0.7518 MB / 0.4976 GB, free: 6.508 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.3404, allocations: 33.81 kB / 0.4977 GB, free: 6.469 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.46e-05/0.3405, allocations: 23.42 kB / 0.4977 GB, free: 6.445 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3405, allocations: 4 kB / 0.4977 GB, free: 6.441 MB / 378.7 MB Notification: Performance of Templates: time 0.007667/0.3482, allocations: 3.973 MB / 0.5016 GB, free: 2.496 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches