Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001571/0.001571, allocations: 117.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001775/0.001775, allocations: 211.7 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 230.4 MB / 250 MB, free: 9.047 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 71.83 kB / 367.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2834, allocations: 53.31 MB / 420.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005287/0.2887, allocations: 3.19 MB / 423.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.2911, allocations: 1.118 MB / 425 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.2913, allocations: 8 kB / 425 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.2917, allocations: 91.16 kB / 425.1 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004314/0.2921, allocations: 182.7 kB / 425.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004564/0.2926, allocations: 211.6 kB / 425.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007394/0.2933, allocations: 0.6629 MB / 426.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.2935, allocations: 96.28 kB / 426.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000446/0.294, allocations: 307 kB / 426.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004198/0.2944, allocations: 314.8 kB / 426.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.355e-05/0.2945, allocations: 52 kB / 426.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002311/0.2947, allocations: 115.9 kB / 427 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.2949, allocations: 131.6 kB / 427.1 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002661/0.2952, allocations: 270.6 kB / 427.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007989/0.296, allocations: 0.6458 MB / 428 MB, free: 1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.296, allocations: 0 / 428 MB, free: 1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.296, allocations: 4 kB / 428 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.296, allocations: 0 / 428 MB, free: 0.9961 MB / 334.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.001623/0.2976, allocations: 0.849 MB / 428.9 MB, free: 100 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2976, allocations: 8.031 kB / 428.9 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.2979, allocations: 64.56 kB / 428.9 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006054/0.2985, allocations: 347.5 kB / 429.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.2985, allocations: 33.38 kB / 429.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-05/0.2986, allocations: 52.27 kB / 429.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009483/0.2996, allocations: 474.6 kB / 429.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.2996, allocations: 11.89 kB / 429.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.2996, allocations: 16 kB / 429.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.108e-05/0.2997, allocations: 8 kB / 429.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.3007, allocations: 467.7 kB / 430.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.3029, allocations: 1.137 MB / 431.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009083/0.3038, allocations: 400.8 kB / 431.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000596/0.3044, allocations: 250.4 kB / 432.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-05/0.3045, allocations: 4.562 kB / 432.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.3045, allocations: 39.12 kB / 432.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.605e-06/0.3045, allocations: 0 / 432.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005549/0.3101, allocations: 2.325 MB / 434.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.3101, allocations: 63.91 kB / 434.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.3105, allocations: 304.6 kB / 434.8 MB, free: 9.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.054e-05/0.3106, allocations: 45.69 kB / 434.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.3107, allocations: 189.6 kB / 435 MB, free: 9.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.3109, allocations: 214.2 kB / 435.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.3111, allocations: 110.3 kB / 435.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3113, allocations: 350.8 kB / 435.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005149/0.3118, allocations: 229.2 kB / 435.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005377/0.3124, allocations: 272.8 kB / 436.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007904/0.3132, allocations: 394.4 kB / 436.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3132, allocations: 3.938 kB / 436.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001698/0.3149, allocations: 0.7444 MB / 437.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3149, allocations: 8 kB / 437.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3149, allocations: 0 / 437.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009746/0.3159, allocations: 385.3 kB / 437.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003499/0.3162, allocations: 87.89 kB / 437.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.3177, allocations: 1.394 MB / 439.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004859/0.3182, allocations: 80.05 kB / 439.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.901e-05/0.3182, allocations: 16 kB / 439.3 MB, free: 5.297 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.0002761/0.3185, allocations: 177.7 kB / 439.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3186, allocations: 51.66 kB / 439.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.3188, allocations: 64.52 kB / 439.6 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3188, allocations: 4 kB / 439.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.3188, allocations: 0 / 439.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3188, allocations: 0 / 439.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.3217, allocations: 1.444 MB / 441 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.3218, allocations: 8.156 kB / 441 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003838/0.3221, allocations: 87.89 kB / 441.1 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008229/0.323, allocations: 337.5 kB / 441.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.323, allocations: 27.91 kB / 441.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.3245, allocations: 1.362 MB / 442.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3245, allocations: 4.031 kB / 442.8 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.3266, allocations: 1.055 MB / 443.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.3269, allocations: 168.8 kB / 444.1 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.327, allocations: 27.94 kB / 444.1 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.3274, allocations: 59.94 kB / 444.1 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.3277, allocations: 92.41 kB / 444.2 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.519e-05/0.3277, allocations: 31.97 kB / 444.3 MB, free: 116 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002757/0.328, allocations: 219.1 kB / 444.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.328, allocations: 0 / 444.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005251/0.3285, allocations: 128.1 kB / 444.6 MB, free: 15.77 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.001393/0.3299, allocations: 396.2 kB / 445 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.3313, allocations: 0.539 MB / 445.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3313, allocations: 4 kB / 445.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008009/0.3321, allocations: 323.4 kB / 445.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.3327, allocations: 96.89 kB / 445.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/0.3367, allocations: 1.483 MB / 447.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.3371, allocations: 0.8361 MB / 448.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000194/0.3373, allocations: 51.38 kB / 448.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.3375, allocations: 39.42 kB / 448.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3375, allocations: 0 / 448.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of Templates: time 0.01819/0.3556, allocations: 10.14 MB / 458.5 MB, free: 1.992 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches