Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 84.77 kB / 21.43 MB, free: 296 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 164 kB / 24.7 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.258e-05/4.412e-05, allocations: 2.281 kB / 298.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004437/0.004481, allocations: 2.81 MB / 301.8 MB, free: 5.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.006431, allocations: 0.9589 MB / 302.7 MB, free: 4.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.006622, allocations: 7.938 kB / 302.7 MB, free: 4.926 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003162/0.006938, allocations: 71.25 kB / 302.8 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002941/0.007232, allocations: 138.8 kB / 302.9 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006417/0.007874, allocations: 235.4 kB / 303.2 MB, free: 4.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007694/0.008643, allocations: 0.6431 MB / 303.8 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.008867, allocations: 100.4 kB / 303.9 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005405/0.009408, allocations: 391.1 kB / 304.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.009779, allocations: 239.4 kB / 304.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.024e-05/0.00987, allocations: 52 kB / 304.6 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.01007, allocations: 95.89 kB / 304.7 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.01023, allocations: 123.6 kB / 304.8 MB, free: 2.859 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.01046, allocations: 187.5 kB / 305 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008471/0.01131, allocations: 0.6387 MB / 305.6 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.01132, allocations: 0 / 305.6 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.01132, allocations: 0 / 305.6 MB, free: 2.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.01133, allocations: 3.938 kB / 305.6 MB, free: 2.031 MB / 286.1 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.001598/0.01293, allocations: 0.7271 MB / 306.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.01297, allocations: 11.98 kB / 306.3 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.0131, allocations: 48.66 kB / 306.4 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005793/0.01368, allocations: 280.3 kB / 306.7 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.01372, allocations: 29.38 kB / 306.7 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-05/0.01382, allocations: 40.38 kB / 306.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009543/0.01477, allocations: 474.9 kB / 307.2 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.662e-05/0.0148, allocations: 8.125 kB / 307.2 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.01485, allocations: 16.38 kB / 307.2 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.01487, allocations: 11.94 kB / 307.2 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.01588, allocations: 479.7 kB / 307.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.01795, allocations: 0.916 MB / 308.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000864/0.01881, allocations: 372.5 kB / 309 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/0.01935, allocations: 246.2 kB / 309.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.01939, allocations: 8.484 kB / 309.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.01944, allocations: 43.06 kB / 309.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.074e-06/0.01944, allocations: 0 / 309.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005324/0.02476, allocations: 2.029 MB / 311.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.02483, allocations: 59.91 kB / 311.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.02514, allocations: 273.8 kB / 311.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.373e-05/0.02521, allocations: 37.7 kB / 311.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.02538, allocations: 193.5 kB / 311.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.02556, allocations: 206.3 kB / 312.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.02575, allocations: 110.3 kB / 312.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.02592, allocations: 342.8 kB / 312.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005531/0.02648, allocations: 245.2 kB / 312.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005491/0.02703, allocations: 288.8 kB / 313 MB, free: 10.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008692/0.0279, allocations: 414 kB / 313.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.0279, allocations: 7.984 kB / 313.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001833/0.02973, allocations: 0.7758 MB / 314.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.02976, allocations: 4 kB / 314.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.02976, allocations: 0 / 314.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.03076, allocations: 0.5013 MB / 314.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003612/0.03113, allocations: 87.89 kB / 314.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.03262, allocations: 1.409 MB / 316.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005434/0.03317, allocations: 80.06 kB / 316.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.304e-05/0.03322, allocations: 19.98 kB / 316.3 MB, free: 7.035 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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002823/0.0335, allocations: 169.7 kB / 316.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.0336, allocations: 43.7 kB / 316.5 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.03374, allocations: 59.61 kB / 316.6 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.03375, allocations: 8 kB / 316.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.03375, allocations: 0 / 316.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.03376, allocations: 0 / 316.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.03673, allocations: 1.282 MB / 317.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.03673, allocations: 4 kB / 317.9 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003933/0.03713, allocations: 80.05 kB / 317.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008326/0.03796, allocations: 489.4 kB / 318.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.365e-05/0.03801, allocations: 19.98 kB / 318.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.03938, allocations: 1.374 MB / 319.8 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.03938, allocations: 0 / 319.8 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.0416, allocations: 1.095 MB / 320.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.04181, allocations: 87.73 kB / 321 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.797e-05/0.0419, allocations: 16.12 kB / 321 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/0.04235, allocations: 67.92 kB / 321.1 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.04258, allocations: 96.27 kB / 321.2 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.147e-05/0.04263, allocations: 23.97 kB / 321.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002008/0.04283, allocations: 189.2 kB / 321.4 MB, free: 1.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.04283, allocations: 0 / 321.4 MB, free: 1.801 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005054/0.04334, allocations: 135.9 kB / 321.5 MB, free: 1.668 MB / 302.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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000293/0.04363, allocations: 147 kB / 321.7 MB, free: 1.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.04498, allocations: 0.5537 MB / 322.2 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.04498, allocations: 0 / 322.2 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007491/0.04573, allocations: 322.7 kB / 322.5 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006219/0.04635, allocations: 83.83 kB / 322.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.15/0.1964, allocations: 1.285 MB / 323.9 MB, free: 34.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.1966, allocations: 222.4 kB / 324.1 MB, free: 34.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002165/0.1968, allocations: 40.97 kB / 324.1 MB, free: 34.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.197, allocations: 37.92 kB / 324.2 MB, free: 34.4 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.197, allocations: 0.9375 kB / 324.2 MB, free: 34.4 MB / 302.1 MB Notification: Performance of Templates: time 0.01537/0.2123, allocations: 8.431 MB / 332.6 MB, free: 32.36 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.768348924815655]