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/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.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") [: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.0009475/0.0009503, allocations: 188.1 kB / 8.141 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 221.4 MB / 229.9 MB, free: 3.094 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009745/0.0009744, allocations: 111.1 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.731e-06/5.761e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2058, allocations: 50.41 MB / 386.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08836/0.2942, allocations: 78.29 MB / 465.2 MB, free: 8.586 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.2945, allocations: 67.97 kB / 465.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01167/0.3062, allocations: 3.73 MB / 469 MB, free: 4.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.3063, allocations: 4 kB / 469 MB, free: 4.812 MB / 346.7 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.0006775/0.307, allocations: 482.2 kB / 469.5 MB, free: 4.297 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.307, allocations: 8.031 kB / 469.5 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.3071, allocations: 23.72 kB / 469.5 MB, free: 4.266 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.3074, allocations: 222.8 kB / 469.7 MB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.3074, allocations: 9.156 kB / 469.7 MB, free: 4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.3075, allocations: 23.84 kB / 469.8 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002724/0.3077, allocations: 124.8 kB / 469.9 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.3081, allocations: 180.9 kB / 470.1 MB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.3081, allocations: 4 kB / 470.1 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.3081, allocations: 1.188 kB / 470.1 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.3081, allocations: 4 kB / 470.1 MB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.3094, allocations: 0.729 MB / 470.8 MB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.3096, allocations: 101.7 kB / 470.9 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.3098, allocations: 64.83 kB / 471 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.3098, allocations: 15.83 kB / 471 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.3098, allocations: 35.31 kB / 471 MB, free: 2.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 2.074e-06/0.3098, allocations: 4 kB / 471 MB, free: 2.633 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001404/0.3112, allocations: 0.7568 MB / 471.8 MB, free: 1.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.578e-05/0.3113, allocations: 55.41 kB / 471.8 MB, free: 1.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.3114, allocations: 145.9 kB / 472 MB, free: 1.574 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.3115, allocations: 29.7 kB / 472 MB, free: 1.539 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.15e-05/0.3115, allocations: 128.3 kB / 472.1 MB, free: 1.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.322e-05/0.3116, allocations: 78.91 kB / 472.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.3116, allocations: 1.031 kB / 472.2 MB, free: 1.332 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.3117, allocations: 330.8 kB / 472.5 MB, free: 1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.3118, allocations: 60 kB / 472.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.312, allocations: 95.64 kB / 472.7 MB, free: 0.832 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.3121, allocations: 65.08 kB / 472.7 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-06/0.3121, allocations: 4 kB / 472.7 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004134/0.3125, allocations: 242 kB / 473 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.3126, allocations: 4 kB / 473 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.3126, allocations: 7.906 kB / 473 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002105/0.3128, allocations: 56.83 kB / 473 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.313, allocations: 39.91 kB / 473.1 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005077/0.3135, allocations: 0.6297 MB / 473.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.3137, allocations: 33.16 kB / 473.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.3137, allocations: 8 kB / 473.7 MB, free: 15.72 MB / 362.7 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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001261/0.3139, allocations: 116.1 kB / 473.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.848e-05/0.3139, allocations: 23.66 kB / 473.9 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005252/0.3144, allocations: 231.6 kB / 474.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.3145, allocations: 8.406 kB / 474.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3145, allocations: 1.219 kB / 474.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3145, allocations: 3.984 kB / 474.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007391/0.3152, allocations: 0.5482 MB / 474.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.3152, allocations: 8.547 kB / 474.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.3154, allocations: 27.98 kB / 474.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001583/0.3156, allocations: 60.81 kB / 474.8 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.3156, allocations: 4.688 kB / 474.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004554/0.3161, allocations: 0.6225 MB / 475.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3161, allocations: 4 kB / 475.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005197/0.3166, allocations: 423.6 kB / 475.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.142e-05/0.3167, allocations: 104.9 kB / 475.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.3168, allocations: 9.438 kB / 475.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.317, allocations: 27.97 kB / 476 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.98e-05/0.3171, allocations: 31.89 kB / 476 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.3171, allocations: 4 kB / 476 MB, free: 13.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.476e-05/0.3172, allocations: 123.3 kB / 476.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003301/0.3176, allocations: 56 kB / 476.2 MB, free: 13.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001816/0.3177, allocations: 131.5 kB / 476.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.3181, allocations: 201.4 kB / 476.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3182, allocations: 0 / 476.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001978/0.3184, allocations: 100.1 kB / 476.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.3187, allocations: 23.98 kB / 476.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008916/0.3196, allocations: 488.2 kB / 477.1 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000326/0.3199, allocations: 0.7649 MB / 477.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.3199, allocations: 0 / 477.9 MB, free: 11.4 MB / 362.7 MB Notification: Performance of Templates: time 0.005844/0.3257, allocations: 2.84 MB / 480.7 MB, free: 8.594 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches