Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [: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.00266/0.00266, allocations: 183.7 kB / 8.154 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.876/1.876, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.0013/0.001299, allocations: 93.25 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.275e-06/8.516e-06, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.261, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.3872, allocations: 78.03 MB / 439.9 MB, free: 8.039 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.3876, allocations: 79.88 kB / 439.9 MB, free: 7.961 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04605/0.4336, allocations: 8.947 MB / 448.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.028e-05/0.4338, allocations: 8 kB / 448.9 MB, free: 15.06 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.003171/0.437, allocations: 0.8013 MB / 449.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.437, allocations: 16.03 kB / 449.7 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002682/0.4373, allocations: 59.25 kB / 449.8 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007365/0.438, allocations: 326.8 kB / 450.1 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.4381, allocations: 16 kB / 450.1 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.4383, allocations: 35.89 kB / 450.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001566/0.4399, allocations: 485.7 kB / 450.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.4414, allocations: 0.4961 MB / 451.1 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.206e-05/0.4415, allocations: 7.906 kB / 451.1 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/0.4416, allocations: 0.5625 kB / 451.1 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.4416, allocations: 16 kB / 451.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.4467, allocations: 1.28 MB / 452.4 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.4481, allocations: 350.6 kB / 452.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008733/0.449, allocations: 246.3 kB / 453 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001559/0.4492, allocations: 12.5 kB / 453 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.4493, allocations: 36.19 kB / 453 MB, free: 10.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 6.092e-06/0.4493, allocations: 0 / 453 MB, free: 10.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.01397/0.4633, allocations: 1.846 MB / 454.9 MB, free: 8.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.4634, allocations: 60 kB / 454.9 MB, free: 8.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006742/0.4641, allocations: 235.5 kB / 455.2 MB, free: 8.508 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003075/0.4645, allocations: 37.69 kB / 455.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.4647, allocations: 215.8 kB / 455.4 MB, free: 8.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005296/0.4652, allocations: 216.9 kB / 455.6 MB, free: 8.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.4654, allocations: 7.984 kB / 455.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.4657, allocations: 338.7 kB / 456 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.467, allocations: 245.5 kB / 456.2 MB, free: 7.449 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.4681, allocations: 305.4 kB / 456.5 MB, free: 7.141 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.4692, allocations: 200.1 kB / 456.7 MB, free: 6.945 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.4692, allocations: 4 kB / 456.7 MB, free: 6.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002763/0.472, allocations: 0.7314 MB / 457.4 MB, free: 6.203 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.4721, allocations: 10.97 kB / 457.4 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.552e-05/0.4721, allocations: 3.984 kB / 457.5 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0019/0.474, allocations: 0.5338 MB / 458 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008839/0.4749, allocations: 103.8 kB / 458.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002932/0.4779, allocations: 1.091 MB / 459.2 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.4795, allocations: 151.9 kB / 459.3 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.4797, allocations: 27.98 kB / 459.4 MB, free: 4.266 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: J3.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" type: Real clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {4 18} Notification: Performance of prepare postOptimizeDAE: time 0.0003401/0.4801, allocations: 57.5 kB / 459.4 MB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.4803, allocations: 53.78 kB / 459.5 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003239/0.4836, allocations: 0.8285 MB / 460.3 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.4836, allocations: 8 kB / 460.3 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.4837, allocations: 3.906 kB / 460.3 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/0.4837, allocations: 3.984 kB / 460.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004554/0.4883, allocations: 1.334 MB / 461.6 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.4883, allocations: 0 / 461.6 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.4894, allocations: 91.98 kB / 461.7 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/0.4913, allocations: 0.5199 MB / 462.3 MB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001686/0.4915, allocations: 19.88 kB / 462.3 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002548/0.494, allocations: 1.034 MB / 463.3 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.4941, allocations: 0 / 463.3 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003808/0.4979, allocations: 1.092 MB / 464.4 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005094/0.4985, allocations: 188.4 kB / 464.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.4987, allocations: 16 kB / 464.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.5002, allocations: 151.9 kB / 464.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005017/0.5008, allocations: 144.3 kB / 464.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.5009, allocations: 31.95 kB / 464.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003222/0.5013, allocations: 195 kB / 465.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008522/0.5021, allocations: 136 kB / 465.2 MB, free: 14.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003869/0.5025, allocations: 135.2 kB / 465.4 MB, free: 14.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.5049, allocations: 0.7207 MB / 466.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.5049, allocations: 4.062 kB / 466.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.5062, allocations: 352.8 kB / 466.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.5072, allocations: 74.7 kB / 466.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.5116, allocations: 1.174 MB / 467.7 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008131/0.5125, allocations: 0.894 MB / 468.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.362e-06/0.5125, allocations: 0 / 468.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of Templates: time 0.0197/0.5322, allocations: 8.513 MB / 477.1 MB, free: 2.34 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches