Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001666/0.001666, allocations: 179.8 kB / 8.479 MB, free: 1.891 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.583/1.583, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009902/0.0009902, allocations: 85.97 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.104e-06/7.134e-06, allocations: 0 / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 47.57 MB / 362.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3081/0.4144, allocations: 77.41 MB / 439.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.4148, allocations: 71.72 kB / 440 MB, free: 10.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01205/0.4269, allocations: 3.635 MB / 443.7 MB, free: 10.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.427, allocations: 7.844 kB / 443.7 MB, free: 10.55 MB / 314.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.0006314/0.4276, allocations: 488.3 kB / 444.1 MB, free: 10.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.4277, allocations: 7.688 kB / 444.1 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.937e-05/0.4277, allocations: 27.31 kB / 444.2 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.428, allocations: 217.4 kB / 444.4 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.428, allocations: 8.312 kB / 444.4 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.4281, allocations: 18.59 kB / 444.4 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002559/0.4283, allocations: 129.1 kB / 444.5 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.4286, allocations: 181.4 kB / 444.7 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.4286, allocations: 4.469 kB / 444.7 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.4287, allocations: 3.938 kB / 444.7 MB, free: 9.855 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.4287, allocations: 4.781 kB / 444.7 MB, free: 9.855 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.4298, allocations: 0.725 MB / 445.5 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.4301, allocations: 105.1 kB / 445.6 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.751e-05/0.4302, allocations: 65.69 kB / 445.6 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.4302, allocations: 4.516 kB / 445.6 MB, free: 9.398 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.4302, allocations: 42.34 kB / 445.7 MB, free: 9.355 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.462e-06/0.4302, allocations: 0 / 445.7 MB, free: 9.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.00129/0.4315, allocations: 0.766 MB / 446.4 MB, free: 8.859 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.835e-05/0.4316, allocations: 55.34 kB / 446.5 MB, free: 8.793 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.4317, allocations: 156.8 kB / 446.6 MB, free: 8.688 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4317, allocations: 26.55 kB / 446.7 MB, free: 8.656 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.349e-05/0.4318, allocations: 127.2 kB / 446.8 MB, free: 8.551 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.4318, allocations: 75.47 kB / 446.9 MB, free: 8.504 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.064e-05/0.4318, allocations: 0 / 446.9 MB, free: 8.504 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.082e-05/0.4319, allocations: 327.4 kB / 447.2 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.432, allocations: 65.16 kB / 447.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.4322, allocations: 102.6 kB / 447.3 MB, free: 8.145 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.4323, allocations: 60.19 kB / 447.4 MB, free: 8.145 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.4323, allocations: 3.844 kB / 447.4 MB, free: 8.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003663/0.4327, allocations: 241.5 kB / 447.6 MB, free: 8.086 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.4327, allocations: 11.81 kB / 447.7 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4327, allocations: 4.359 kB / 447.7 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.4329, allocations: 57.23 kB / 447.7 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.4331, allocations: 39.8 kB / 447.8 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004123/0.4335, allocations: 0.625 MB / 448.4 MB, free: 7.543 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.4337, allocations: 25.61 kB / 448.4 MB, free: 7.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.4338, allocations: 20.03 kB / 448.4 MB, free: 7.535 MB / 314.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.0001203/0.4339, allocations: 113.4 kB / 448.5 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.294e-05/0.4339, allocations: 20.22 kB / 448.6 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005033/0.4344, allocations: 238.1 kB / 448.8 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.4345, allocations: 4 kB / 448.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.4345, allocations: 0 / 448.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.4345, allocations: 1.266 kB / 448.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007119/0.4352, allocations: 0.5428 MB / 449.3 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4352, allocations: 0 / 449.3 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001811/0.4354, allocations: 43.38 kB / 449.4 MB, free: 7.027 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001607/0.4356, allocations: 58.39 kB / 449.4 MB, free: 7.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.4356, allocations: 9.266 kB / 449.4 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003679/0.436, allocations: 0.6178 MB / 450.1 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.436, allocations: 4.016 kB / 450.1 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00047/0.4365, allocations: 440 kB / 450.5 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.791e-05/0.4366, allocations: 103.5 kB / 450.6 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.4366, allocations: 4.672 kB / 450.6 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.4368, allocations: 28.38 kB / 450.6 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.45e-05/0.4369, allocations: 22.94 kB / 450.7 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.4369, allocations: 8.266 kB / 450.7 MB, free: 6.137 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.618e-05/0.437, allocations: 121.5 kB / 450.8 MB, free: 6.062 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000366/0.4374, allocations: 58.08 kB / 450.8 MB, free: 6.059 MB / 314.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.0002/0.4376, allocations: 121 kB / 451 MB, free: 5.961 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003709/0.438, allocations: 201.4 kB / 451.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.438, allocations: 0 / 451.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.4382, allocations: 95.56 kB / 451.2 MB, free: 5.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.4385, allocations: 25.66 kB / 451.3 MB, free: 5.906 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009219/0.4394, allocations: 490 kB / 451.7 MB, free: 5.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.4397, allocations: 0.7662 MB / 452.5 MB, free: 4.875 MB / 314.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4397, allocations: 3.875 kB / 452.5 MB, free: 4.875 MB / 314.7 MB Notification: Performance of Templates: time 0.005423/0.4451, allocations: 2.841 MB / 455.4 MB, free: 3.457 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches