Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002471/0.002476, allocations: 179.9 kB / 8.153 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.774/1.774, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00132/0.001319, allocations: 91.06 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.077e-06/9.207e-06, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2672, allocations: 47.56 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.388, allocations: 77.42 MB / 439.2 MB, free: 8.641 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.3883, allocations: 63.97 kB / 439.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01888/0.4072, allocations: 3.645 MB / 443 MB, free: 4.984 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.4073, allocations: 12 kB / 443 MB, free: 4.973 MB / 330.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.0009893/0.4083, allocations: 485.1 kB / 443.4 MB, free: 4.453 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.4083, allocations: 8.031 kB / 443.4 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.214e-05/0.4084, allocations: 23.72 kB / 443.5 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.4088, allocations: 218.8 kB / 443.7 MB, free: 4.168 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.4089, allocations: 8 kB / 443.7 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.4089, allocations: 15.91 kB / 443.7 MB, free: 4.145 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004602/0.4094, allocations: 132.8 kB / 443.8 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000475/0.4099, allocations: 184.8 kB / 444 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.4099, allocations: 0 / 444 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.41, allocations: 0 / 444 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.41, allocations: 8 kB / 444 MB, free: 3.812 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.412, allocations: 0.7357 MB / 444.8 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004001/0.4124, allocations: 103.7 kB / 444.9 MB, free: 2.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.4126, allocations: 60.77 kB / 444.9 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.4127, allocations: 4 kB / 444.9 MB, free: 2.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.4127, allocations: 42.5 kB / 445 MB, free: 2.797 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.735e-06/0.4127, allocations: 0 / 445 MB, free: 2.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.002281/0.415, allocations: 0.7652 MB / 445.7 MB, free: 1.941 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.4151, allocations: 55.41 kB / 445.8 MB, free: 1.875 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.4154, allocations: 156.2 kB / 445.9 MB, free: 1.715 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.4154, allocations: 25.7 kB / 446 MB, free: 1.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.4155, allocations: 190.7 kB / 446.2 MB, free: 1.496 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.069e-05/0.4156, allocations: 74.91 kB / 446.2 MB, free: 1.422 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.796e-05/0.4157, allocations: 0 / 446.2 MB, free: 1.422 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4158, allocations: 322.8 kB / 446.5 MB, free: 1.098 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.416, allocations: 56.53 kB / 446.6 MB, free: 1.043 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.4162, allocations: 103.6 kB / 446.7 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/0.4165, allocations: 61.14 kB / 446.8 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.4165, allocations: 0 / 446.8 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000728/0.4173, allocations: 240.8 kB / 447 MB, free: 0.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.4173, allocations: 6.969 kB / 447 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.4174, allocations: 4.766 kB / 447 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003549/0.4177, allocations: 62.52 kB / 447.1 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.418, allocations: 47.91 kB / 447.1 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009565/0.419, allocations: 0.6337 MB / 447.7 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.4194, allocations: 28.03 kB / 447.8 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.4195, allocations: 12 kB / 447.8 MB, free: 15.81 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: inertiaIn.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" type: Real 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 {2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001747/0.4197, allocations: 35.25 kB / 447.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.147e-05/0.4198, allocations: 23.75 kB / 447.8 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009102/0.4207, allocations: 234.8 kB / 448.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.4207, allocations: 0 / 448.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.4207, allocations: 3.906 kB / 448.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4207, allocations: 0 / 448.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.4221, allocations: 0.5489 MB / 448.6 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.4221, allocations: 6.719 kB / 448.6 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000409/0.4225, allocations: 31.98 kB / 448.7 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003012/0.4229, allocations: 60.81 kB / 448.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.4229, allocations: 7.984 kB / 448.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007322/0.4237, allocations: 0.6168 MB / 449.3 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.4237, allocations: 4 kB / 449.3 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009178/0.4246, allocations: 423.6 kB / 449.8 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.4248, allocations: 108.9 kB / 449.9 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.4249, allocations: 4 kB / 449.9 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003664/0.4252, allocations: 29.38 kB / 449.9 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.4254, allocations: 27.91 kB / 449.9 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/0.4254, allocations: 7.984 kB / 449.9 MB, free: 13.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001511/0.4256, allocations: 119.8 kB / 450.1 MB, free: 13.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004643/0.426, allocations: 60 kB / 450.1 MB, free: 13.32 MB / 346.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.0002771/0.4263, allocations: 123.3 kB / 450.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007859/0.4271, allocations: 209.4 kB / 450.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4272, allocations: 0 / 450.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003422/0.4275, allocations: 87.86 kB / 450.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.428, allocations: 31.95 kB / 450.6 MB, free: 12.87 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.4297, allocations: 0.505 MB / 451.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004709/0.4302, allocations: 0.7688 MB / 451.8 MB, free: 11.55 MB / 346.7 MB Notification: Performance of SimCode: time 1.372e-06/0.4302, allocations: 0 / 451.8 MB, free: 11.55 MB / 346.7 MB Notification: Performance of Templates: time 0.008493/0.4387, allocations: 3.373 MB / 455.2 MB, free: 8.219 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches