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.001403/0.001403, allocations: 92.67 kB / 20.69 MB, free: 1.02 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.001477/0.001477, allocations: 161.8 kB / 23.95 MB, free: 4.148 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.491/1.491, allocations: 177 MB / 204.1 MB, free: 9.148 MB / 190.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 1.624e-06/1.624e-06, allocations: 0 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.167e-05/2.33e-05, allocations: 3.562 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004677/0.004701, allocations: 2.976 MB / 328 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.007213, allocations: 1.083 MB / 329.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.007469, allocations: 9.375 kB / 329.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003821/0.007851, allocations: 83.22 kB / 329.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000531/0.008382, allocations: 201.4 kB / 329.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006568/0.009039, allocations: 208.3 kB / 329.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008372/0.009876, allocations: 0.6852 MB / 330.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.01013, allocations: 85.56 kB / 330.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006859/0.01082, allocations: 417.6 kB / 330.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004169/0.01123, allocations: 262.9 kB / 331 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.214e-05/0.01133, allocations: 50.28 kB / 331 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002304/0.01156, allocations: 115.3 kB / 331.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.01182, allocations: 137.7 kB / 331.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.01207, allocations: 188.7 kB / 331.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008786/0.01295, allocations: 0.6895 MB / 332.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.01296, allocations: 5.094 kB / 332.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01296, allocations: 0 / 332.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.01297, allocations: 0 / 332.2 MB, free: 11.94 MB / 302.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.001705/0.01467, allocations: 0.7569 MB / 332.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.01472, allocations: 13.05 kB / 332.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002824/0.01501, allocations: 67.7 kB / 333 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006033/0.01561, allocations: 289.7 kB / 333.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.782e-05/0.01566, allocations: 31.34 kB / 333.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.764e-05/0.01576, allocations: 51.11 kB / 333.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009849/0.01674, allocations: 473.9 kB / 333.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.01677, allocations: 5.531 kB / 333.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.481e-05/0.01682, allocations: 16.22 kB / 333.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.01684, allocations: 17.59 kB / 333.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.01788, allocations: 466.8 kB / 334.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.02009, allocations: 0.9137 MB / 335.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009373/0.02103, allocations: 413.6 kB / 335.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005634/0.02159, allocations: 246.2 kB / 335.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-05/0.02164, allocations: 9.188 kB / 335.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/0.02168, allocations: 38.5 kB / 335.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 1.954e-06/0.02168, allocations: 0 / 335.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.005738/0.02742, allocations: 2.014 MB / 337.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.02747, allocations: 59.91 kB / 338 MB, free: 7.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004852/0.02796, allocations: 288.2 kB / 338.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.581e-05/0.02803, allocations: 41.7 kB / 338.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.0282, allocations: 185.6 kB / 338.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.0284, allocations: 214.2 kB / 338.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002564/0.02865, allocations: 110.3 kB / 338.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.02887, allocations: 350.7 kB / 339.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.0294, allocations: 237.2 kB / 339.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/0.02995, allocations: 276.8 kB / 339.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008413/0.03079, allocations: 394.1 kB / 340.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.0308, allocations: 0 / 340.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001829/0.03263, allocations: 0.7406 MB / 340.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.03264, allocations: 4 kB / 340.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.03265, allocations: 0 / 340.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009626/0.03361, allocations: 389.4 kB / 341.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003575/0.03397, allocations: 83.89 kB / 341.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/0.03569, allocations: 1.394 MB / 342.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000576/0.03627, allocations: 80.06 kB / 342.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.03632, allocations: 19.98 kB / 342.8 MB, free: 3 MB / 302.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.0002705/0.03659, allocations: 169.5 kB / 342.9 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.0367, allocations: 43.72 kB / 343 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.03686, allocations: 59.69 kB / 343 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.03688, allocations: 7.938 kB / 343 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.03689, allocations: 8 kB / 343 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.0369, allocations: 7.922 kB / 343 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.03998, allocations: 1.267 MB / 344.3 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.03999, allocations: 3.938 kB / 344.3 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.04038, allocations: 87.83 kB / 344.4 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008436/0.04123, allocations: 349.6 kB / 344.7 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.513e-05/0.04128, allocations: 19.98 kB / 344.8 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/0.04293, allocations: 1.374 MB / 346.1 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.04293, allocations: 0 / 346.1 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.04517, allocations: 1.03 MB / 347.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.04539, allocations: 95.69 kB / 347.3 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.04553, allocations: 28.11 kB / 347.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004807/0.04601, allocations: 55.94 kB / 347.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/0.04626, allocations: 112.2 kB / 347.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/0.04631, allocations: 19.98 kB / 347.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002321/0.04654, allocations: 207.1 kB / 347.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.04654, allocations: 0 / 347.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005003/0.04704, allocations: 127.9 kB / 347.8 MB, free: 13.79 MB / 318.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.001511/0.04855, allocations: 409.7 kB / 348.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.04989, allocations: 0.5342 MB / 348.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.0499, allocations: 0 / 348.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008218/0.05072, allocations: 326.6 kB / 349 MB, free: 12.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006727/0.05139, allocations: 100.5 kB / 349.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004003/0.05539, allocations: 1.327 MB / 350.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.05566, allocations: 225.3 kB / 350.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001647/0.05583, allocations: 47.27 kB / 350.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.05596, allocations: 40.48 kB / 350.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.05596, allocations: 4 kB / 350.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of Templates: time 0.01655/0.07252, allocations: 8.635 MB / 359.4 MB, free: 2.305 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.798445135354996]