Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001425/0.001425, allocations: 112.8 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.2 MB / 255.2 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 67.89 kB / 374.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1096, allocations: 53.31 MB / 427.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005141/0.1148, allocations: 3.185 MB / 431 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.1169, allocations: 1.142 MB / 432.2 MB, free: 136 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001687/0.117, allocations: 4 kB / 432.2 MB, free: 132 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003332/0.1174, allocations: 83.23 kB / 432.2 MB, free: 48 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.191/0.3084, allocations: 187.4 kB / 432.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.3089, allocations: 203.5 kB / 432.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007473/0.3097, allocations: 0.6685 MB / 433.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.3099, allocations: 95.56 kB / 433.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.3103, allocations: 299.4 kB / 433.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003815/0.3107, allocations: 319.2 kB / 434 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.397e-05/0.3108, allocations: 50.22 kB / 434 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.311, allocations: 112.2 kB / 434.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.3112, allocations: 139.9 kB / 434.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.3114, allocations: 262.8 kB / 434.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006998/0.3121, allocations: 0.657 MB / 435.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3121, allocations: 2.391 kB / 435.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3121, allocations: 0.5938 kB / 435.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.3121, allocations: 1.312 kB / 435.2 MB, free: 7.84 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001554/0.3136, allocations: 0.8365 MB / 436 MB, free: 7.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3137, allocations: 9.75 kB / 436 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002404/0.3139, allocations: 68.55 kB / 436.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004977/0.3144, allocations: 352.7 kB / 436.5 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.3145, allocations: 31.62 kB / 436.5 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-05/0.3145, allocations: 46.52 kB / 436.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009121/0.3155, allocations: 469 kB / 437 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.3155, allocations: 7.094 kB / 437 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.096e-05/0.3155, allocations: 17.88 kB / 437 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.3155, allocations: 10.59 kB / 437 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.3166, allocations: 475.9 kB / 437.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.3187, allocations: 1.132 MB / 438.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008807/0.3196, allocations: 397.1 kB / 439 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005236/0.3201, allocations: 248.9 kB / 439.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.3201, allocations: 10.09 kB / 439.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.3202, allocations: 39.83 kB / 439.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.204e-06/0.3202, allocations: 1.625 kB / 439.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005191/0.3253, allocations: 2.322 MB / 441.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.699e-05/0.3254, allocations: 63.06 kB / 441.7 MB, free: 4.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.3257, allocations: 308.3 kB / 442 MB, free: 4.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.01e-05/0.3257, allocations: 45.19 kB / 442 MB, free: 4.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.946e-05/0.3258, allocations: 183.1 kB / 442.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.326, allocations: 220.9 kB / 442.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.3262, allocations: 109.2 kB / 442.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.989e-05/0.3263, allocations: 353.3 kB / 442.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005028/0.3268, allocations: 225.5 kB / 443.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005061/0.3273, allocations: 281.7 kB / 443.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007621/0.3281, allocations: 396.7 kB / 443.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3281, allocations: 0 / 443.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001654/0.3297, allocations: 0.744 MB / 444.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3297, allocations: 9.516 kB / 444.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3297, allocations: 0 / 444.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008988/0.3306, allocations: 377.4 kB / 444.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003454/0.331, allocations: 83.44 kB / 445 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.3321, allocations: 1.408 MB / 446.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.3327, allocations: 72.08 kB / 446.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.674e-05/0.3328, allocations: 21.97 kB / 446.5 MB, free: 1.914 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000231/0.333, allocations: 173.7 kB / 446.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.3331, allocations: 50.08 kB / 446.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.3332, allocations: 64.02 kB / 446.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3332, allocations: 8.562 kB / 446.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.3333, allocations: 1.188 kB / 446.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.3333, allocations: 4.734 kB / 446.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002678/0.3359, allocations: 1.436 MB / 448.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3359, allocations: 2.625 kB / 448.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/0.3363, allocations: 84.27 kB / 448.3 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007218/0.337, allocations: 350.7 kB / 448.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.933e-05/0.3371, allocations: 24.7 kB / 448.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.3383, allocations: 1.363 MB / 450 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3383, allocations: 2.031 kB / 450 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.3404, allocations: 1.057 MB / 451.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.3407, allocations: 172.5 kB / 451.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.965e-05/0.3408, allocations: 20.28 kB / 451.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004683/0.3413, allocations: 61.5 kB / 451.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.3415, allocations: 96.47 kB / 451.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.309e-05/0.3416, allocations: 32.03 kB / 451.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.3419, allocations: 217.1 kB / 451.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3419, allocations: 96 / 451.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005427/0.3424, allocations: 130.6 kB / 451.8 MB, free: 14.75 MB / 366.1 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 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001372/0.3438, allocations: 388.2 kB / 452.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.3452, allocations: 0.5399 MB / 452.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3452, allocations: 4.062 kB / 452.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007837/0.346, allocations: 319.6 kB / 453 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.3467, allocations: 95.11 kB / 453.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004154/0.3509, allocations: 1.527 MB / 454.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.3514, allocations: 0.8268 MB / 455.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.3515, allocations: 43.66 kB / 455.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3515, allocations: 0 / 455.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of Templates: time 0.014/0.3655, allocations: 9.145 MB / 464.7 MB, free: 8.586 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.675575233995914]