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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009461/0.0009462, allocations: 182.8 kB / 8.138 MB, free: 2.688 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 221.4 MB / 229.9 MB, free: 7.656 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009363/0.0009363, allocations: 99.75 kB / 280.8 MB, free: 5.148 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 1.056e-05/1.059e-05, allocations: 4 kB / 336.5 MB, free: 13.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2118, allocations: 50.4 MB / 386.9 MB, free: 40.39 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08565/0.2975, allocations: 78.38 MB / 465.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.2977, allocations: 71.91 kB / 465.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.01248/0.3102, allocations: 3.865 MB / 469.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.3103, allocations: 7.938 kB / 469.2 MB, free: 8.266 MB / 350.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.0008218/0.3111, allocations: 0.5268 MB / 469.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.3112, allocations: 8.031 kB / 469.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.613e-05/0.3112, allocations: 23.72 kB / 469.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.3115, allocations: 218.9 kB / 470 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.3115, allocations: 15.91 kB / 470 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.3116, allocations: 12 kB / 470 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002666/0.3118, allocations: 135.9 kB / 470.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.3121, allocations: 182.9 kB / 470.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.3122, allocations: 0 / 470.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.3122, allocations: 4 kB / 470.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.3122, allocations: 4 kB / 470.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009789/0.3132, allocations: 0.6237 MB / 471 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.3134, allocations: 115.6 kB / 471.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.3136, allocations: 80.84 kB / 471.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.3136, allocations: 8 kB / 471.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.3138, allocations: 129.2 kB / 471.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.683e-06/0.3138, allocations: 0 / 471.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001489/0.3153, allocations: 0.8158 MB / 472.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.3154, allocations: 55.41 kB / 472.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.3155, allocations: 165.7 kB / 472.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.3156, allocations: 25.7 kB / 472.4 MB, free: 4.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.121e-05/0.3156, allocations: 120.4 kB / 472.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.184e-05/0.3157, allocations: 86.75 kB / 472.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.3157, allocations: 0 / 472.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3159, allocations: 330.7 kB / 472.9 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.316, allocations: 80.31 kB / 473 MB, free: 4.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.3162, allocations: 113 kB / 473.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.3164, allocations: 69.38 kB / 473.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.3164, allocations: 0 / 473.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005909/0.317, allocations: 288.3 kB / 473.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.317, allocations: 15.16 kB / 473.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.317, allocations: 3.984 kB / 473.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002056/0.3173, allocations: 60.83 kB / 473.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.3175, allocations: 51.91 kB / 473.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004951/0.318, allocations: 0.6225 MB / 474.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.3183, allocations: 44.02 kB / 474.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.329e-05/0.3184, allocations: 12 kB / 474.2 MB, free: 2.93 MB / 350.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0001595/0.3185, allocations: 117.6 kB / 474.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/0.3186, allocations: 23.72 kB / 474.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005343/0.3191, allocations: 254.4 kB / 474.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3191, allocations: 0 / 474.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3191, allocations: 4.875 kB / 474.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3192, allocations: 3.984 kB / 474.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008757/0.32, allocations: 0.58 MB / 475.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.32, allocations: 0 / 475.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/0.3203, allocations: 51.91 kB / 475.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001509/0.3205, allocations: 60.89 kB / 475.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.3205, allocations: 13.61 kB / 475.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004807/0.321, allocations: 0.6109 MB / 475.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.321, allocations: 0 / 475.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006423/0.3217, allocations: 450.5 kB / 476.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.3218, allocations: 116.7 kB / 476.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.593e-05/0.3218, allocations: 4 kB / 476.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.3221, allocations: 39.97 kB / 476.5 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.855e-05/0.3222, allocations: 35.92 kB / 476.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.3222, allocations: 8 kB / 476.6 MB, free: 444 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.99e-05/0.3223, allocations: 123.3 kB / 476.7 MB, free: 320 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.3227, allocations: 67.98 kB / 476.8 MB, free: 252 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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.0002059/0.3229, allocations: 130.4 kB / 476.9 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004854/0.3234, allocations: 263.5 kB / 477.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3234, allocations: 0 / 477.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002548/0.3237, allocations: 120.2 kB / 477.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.324, allocations: 38.72 kB / 477.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000916/0.3249, allocations: 486.3 kB / 477.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/0.3254, allocations: 0.7709 MB / 478.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3254, allocations: 0 / 478.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of Templates: time 0.006898/0.3323, allocations: 3.528 MB / 482.1 MB, free: 10.94 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches