Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [: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.0009602/0.0009602, allocations: 187.4 kB / 8.138 MB, free: 2.188 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.252/1.252, allocations: 221.4 MB / 229.9 MB, free: 3.125 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.0009788/0.0009788, allocations: 96.88 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.283e-06/7.323e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2058, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08751/0.2933, allocations: 80.62 MB / 467.5 MB, free: 6.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.2935, allocations: 71.89 kB / 467.6 MB, free: 6.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02215/0.3157, allocations: 7.599 MB / 475.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.3158, allocations: 8 kB / 475.2 MB, free: 14.52 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001243/0.317, allocations: 0.7013 MB / 475.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3171, allocations: 8.031 kB / 475.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.3172, allocations: 51.34 kB / 476 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003924/0.3176, allocations: 309.8 kB / 476.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.3176, allocations: 15.94 kB / 476.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.829e-05/0.3177, allocations: 27.91 kB / 476.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006679/0.3184, allocations: 381.4 kB / 476.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006371/0.319, allocations: 375.2 kB / 477 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.319, allocations: 9.406 kB / 477.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.3191, allocations: 0 / 477.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.3191, allocations: 11.98 kB / 477.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.3213, allocations: 1.08 MB / 478.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004987/0.3218, allocations: 262.9 kB / 478.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003786/0.3222, allocations: 222.1 kB / 478.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.943e-05/0.3223, allocations: 8.422 kB / 478.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.3223, allocations: 43 kB / 478.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 1.964e-06/0.3223, allocations: 3.938 kB / 478.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.003399/0.3257, allocations: 1.545 MB / 480.2 MB, free: 9.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.3258, allocations: 60.16 kB / 480.3 MB, free: 9.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.326, allocations: 205 kB / 480.5 MB, free: 8.977 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.827e-05/0.326, allocations: 30.55 kB / 480.5 MB, free: 8.941 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.049e-05/0.3261, allocations: 157.3 kB / 480.7 MB, free: 8.785 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.3263, allocations: 193.3 kB / 480.9 MB, free: 8.594 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.3263, allocations: 7.938 kB / 480.9 MB, free: 8.586 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3265, allocations: 346.7 kB / 481.2 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000311/0.3268, allocations: 189.3 kB / 481.4 MB, free: 8.055 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003508/0.3271, allocations: 227.6 kB / 481.6 MB, free: 7.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004042/0.3276, allocations: 167.1 kB / 481.8 MB, free: 7.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3276, allocations: 0 / 481.8 MB, free: 7.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001503/0.3291, allocations: 0.6472 MB / 482.4 MB, free: 7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3291, allocations: 4 kB / 482.4 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.3291, allocations: 4.625 kB / 482.4 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007119/0.3298, allocations: 377.5 kB / 482.8 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.3302, allocations: 99.83 kB / 482.9 MB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.3316, allocations: 1.376 MB / 484.3 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005204/0.3321, allocations: 99.97 kB / 484.4 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.586e-05/0.3322, allocations: 24.67 kB / 484.4 MB, free: 4.973 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.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: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001927/0.3324, allocations: 126.5 kB / 484.5 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3325, allocations: 39.53 kB / 484.5 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.3339, allocations: 0.6592 MB / 485.2 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.3339, allocations: 4 kB / 485.2 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3339, allocations: 0 / 485.2 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3339, allocations: 0 / 485.2 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00252/0.3365, allocations: 1.279 MB / 486.5 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3365, allocations: 0 / 486.5 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003915/0.3369, allocations: 87.89 kB / 486.6 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006138/0.3375, allocations: 353.5 kB / 486.9 MB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/0.3376, allocations: 19.97 kB / 486.9 MB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.3388, allocations: 1.353 MB / 488.3 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3388, allocations: 0.8125 kB / 488.3 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001587/0.3404, allocations: 0.9691 MB / 489.3 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.3406, allocations: 168.5 kB / 489.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.442e-05/0.3407, allocations: 8 kB / 489.4 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004688/0.3412, allocations: 83.92 kB / 489.5 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.3414, allocations: 108.1 kB / 489.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.147e-05/0.3415, allocations: 32.11 kB / 489.7 MB, free: 15.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001337/0.3416, allocations: 169.2 kB / 489.8 MB, free: 15.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004721/0.3421, allocations: 112 kB / 489.9 MB, free: 15.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002412/0.3424, allocations: 138 kB / 490.1 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009474/0.3433, allocations: 0.539 MB / 490.6 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3433, allocations: 64 / 490.6 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005377/0.3439, allocations: 285.4 kB / 490.9 MB, free: 14.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004449/0.3443, allocations: 59.55 kB / 490.9 MB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.3462, allocations: 0.9044 MB / 491.8 MB, free: 13.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004448/0.3466, allocations: 0.8581 MB / 492.7 MB, free: 12.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3466, allocations: 7.938 kB / 492.7 MB, free: 12.34 MB / 378.7 MB Notification: Performance of Templates: time 0.01283/0.3595, allocations: 8.535 MB / 0.4895 GB, free: 3.848 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches