Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001557/0.001556, allocations: 183.7 kB / 8.133 MB, free: 2.227 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.217/1.217, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0008883/0.0008883, allocations: 91.81 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.903e-06/7.244e-06, allocations: 4 kB / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1942, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09093/0.2852, allocations: 78.95 MB / 465.9 MB, free: 7.879 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.2854, allocations: 71.95 kB / 465.9 MB, free: 7.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02719/0.3126, allocations: 9.091 MB / 475 MB, free: 14.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.052e-05/0.3127, allocations: 8 kB / 475 MB, free: 14.73 MB / 362.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.001523/0.3142, allocations: 0.7986 MB / 475.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.3143, allocations: 8.031 kB / 475.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.3144, allocations: 60.47 kB / 475.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.3149, allocations: 322.8 kB / 476.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.3149, allocations: 16 kB / 476.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.315, allocations: 40.33 kB / 476.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008338/0.3159, allocations: 481.8 kB / 476.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008159/0.3167, allocations: 0.4999 MB / 477.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.3167, allocations: 7.891 kB / 477.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.126e-05/0.3168, allocations: 0 / 477.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.3168, allocations: 12 kB / 477.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.3193, allocations: 1.281 MB / 478.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006815/0.32, allocations: 354.9 kB / 478.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004201/0.3205, allocations: 257 kB / 479.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.031e-05/0.3205, allocations: 12.48 kB / 479.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.3206, allocations: 37.12 kB / 479.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 2.104e-06/0.3206, allocations: 0 / 479.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.004225/0.3248, allocations: 1.836 MB / 481 MB, free: 8.492 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.3249, allocations: 64.05 kB / 481.1 MB, free: 8.418 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.3251, allocations: 231.5 kB / 481.3 MB, free: 8.191 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.559e-05/0.3252, allocations: 41.69 kB / 481.3 MB, free: 8.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.3253, allocations: 157.4 kB / 481.5 MB, free: 7.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.3255, allocations: 228.8 kB / 481.7 MB, free: 7.758 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.275e-05/0.3256, allocations: 0 / 481.7 MB, free: 7.758 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3257, allocations: 354.8 kB / 482.1 MB, free: 7.402 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004284/0.3262, allocations: 245.5 kB / 482.3 MB, free: 7.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.3266, allocations: 305.4 kB / 482.6 MB, free: 6.855 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005318/0.3271, allocations: 199 kB / 482.8 MB, free: 6.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3272, allocations: 0 / 482.8 MB, free: 6.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001506/0.3287, allocations: 0.7547 MB / 483.6 MB, free: 5.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3287, allocations: 4 kB / 483.6 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/0.3287, allocations: 4 kB / 483.6 MB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.3299, allocations: 0.5376 MB / 484.1 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004162/0.3303, allocations: 103.9 kB / 484.2 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.3319, allocations: 1.085 MB / 485.3 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008016/0.3327, allocations: 155.9 kB / 485.4 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-05/0.3328, allocations: 27.98 kB / 485.5 MB, free: 3.957 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002363/0.333, allocations: 128.8 kB / 485.6 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3331, allocations: 43.44 kB / 485.6 MB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.3349, allocations: 0.8402 MB / 486.5 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.3349, allocations: 8 kB / 486.5 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3349, allocations: 0 / 486.5 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.3349, allocations: 3.984 kB / 486.5 MB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.3373, allocations: 1.334 MB / 487.8 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3374, allocations: 0 / 487.8 MB, free: 1.531 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.3378, allocations: 99.88 kB / 487.9 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009198/0.3388, allocations: 0.5091 MB / 488.4 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-05/0.3389, allocations: 19.95 kB / 488.4 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/0.3402, allocations: 1.046 MB / 489.5 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3402, allocations: 0 / 489.5 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00193/0.3422, allocations: 1.091 MB / 490.6 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002485/0.3424, allocations: 184.5 kB / 490.8 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.3426, allocations: 23.98 kB / 490.8 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006965/0.3433, allocations: 147.8 kB / 490.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.3435, allocations: 153 kB / 491.1 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.207e-05/0.3436, allocations: 27.97 kB / 491.1 MB, free: 14.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001717/0.3438, allocations: 195.1 kB / 491.3 MB, free: 13.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005073/0.3443, allocations: 136 kB / 491.4 MB, free: 13.86 MB / 378.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.0003013/0.3446, allocations: 148.5 kB / 491.6 MB, free: 13.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.3458, allocations: 0.7172 MB / 492.3 MB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3458, allocations: 0 / 492.3 MB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006164/0.3465, allocations: 360.7 kB / 492.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000526/0.347, allocations: 60.09 kB / 492.7 MB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.3496, allocations: 1.15 MB / 493.9 MB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006441/0.3503, allocations: 0.894 MB / 494.7 MB, free: 10.47 MB / 378.7 MB Notification: Performance of SimCode: time 5.92e-07/0.3503, allocations: 0 / 494.7 MB, free: 10.47 MB / 378.7 MB Notification: Performance of Templates: time 0.2084/0.5587, allocations: 11.62 MB / 0.4945 GB, free: 81.6 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches