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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001641/0.001641, allocations: 116.2 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 55.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2955, allocations: 50.54 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004208/0.2997, allocations: 3.167 MB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.302, allocations: 1.126 MB / 413.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.3023, allocations: 7.938 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004047/0.3027, allocations: 91.23 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004444/0.3031, allocations: 174.7 kB / 413.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004609/0.3036, allocations: 207.6 kB / 414 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006233/0.3042, allocations: 0.659 MB / 414.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.3045, allocations: 136.2 kB / 414.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.3049, allocations: 307 kB / 415.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004009/0.3053, allocations: 310.9 kB / 415.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.154e-05/0.3054, allocations: 52 kB / 415.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.3057, allocations: 108 kB / 415.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.3058, allocations: 143.5 kB / 415.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.3061, allocations: 262.7 kB / 416 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007397/0.3068, allocations: 0.6513 MB / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3068, allocations: 4 kB / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.3069, allocations: 0 / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3069, allocations: 0 / 416.6 MB, free: 10.2 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.001563/0.3084, allocations: 0.8263 MB / 417.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3085, allocations: 12.03 kB / 417.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002598/0.3088, allocations: 60.36 kB / 417.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005336/0.3093, allocations: 347.1 kB / 417.8 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.513e-05/0.3093, allocations: 33.38 kB / 417.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.049e-05/0.3094, allocations: 44.38 kB / 417.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000835/0.3103, allocations: 474.6 kB / 418.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.3103, allocations: 7.906 kB / 418.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.3104, allocations: 16 kB / 418.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.3104, allocations: 12 kB / 418.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009252/0.3113, allocations: 463.7 kB / 418.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.3133, allocations: 1.141 MB / 420 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008639/0.3142, allocations: 436.4 kB / 420.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005052/0.3147, allocations: 266.4 kB / 420.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.13e-05/0.3147, allocations: 4.562 kB / 420.7 MB, free: 5.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.3148, allocations: 39.12 kB / 420.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.164e-06/0.3148, allocations: 0 / 420.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.005159/0.32, allocations: 2.324 MB / 423.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.32, allocations: 55.97 kB / 423.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.3205, allocations: 308.5 kB / 423.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.421e-05/0.3205, allocations: 49.7 kB / 423.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.3207, allocations: 185.4 kB / 423.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000223/0.3209, allocations: 209.1 kB / 423.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.3212, allocations: 106.2 kB / 424 MB, free: 2.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3213, allocations: 350.8 kB / 424.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.3218, allocations: 229.2 kB / 424.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.3223, allocations: 284.8 kB / 424.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007409/0.323, allocations: 394.3 kB / 425.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.323, allocations: 0 / 425.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00154/0.3246, allocations: 0.7443 MB / 425.9 MB, free: 0.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3246, allocations: 10.81 kB / 425.9 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3246, allocations: 0 / 425.9 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/0.3255, allocations: 381.4 kB / 426.3 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003349/0.3258, allocations: 87.84 kB / 426.4 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.3272, allocations: 1.401 MB / 427.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005051/0.3277, allocations: 75.94 kB / 427.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.3277, allocations: 16 kB / 427.9 MB, free: 14.48 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.0002481/0.328, allocations: 177.8 kB / 428.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.3281, allocations: 43.47 kB / 428.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.3282, allocations: 64.52 kB / 428.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3283, allocations: 8 kB / 428.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.3283, allocations: 0 / 428.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3283, allocations: 3.984 kB / 428.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.3311, allocations: 1.459 MB / 429.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-06/0.3311, allocations: 4 kB / 429.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.3315, allocations: 79.89 kB / 429.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007679/0.3323, allocations: 349.5 kB / 430.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.3324, allocations: 19.98 kB / 430.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.3337, allocations: 1.374 MB / 431.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3337, allocations: 0 / 431.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.3356, allocations: 1.059 MB / 432.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.3359, allocations: 176.5 kB / 432.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.086e-05/0.336, allocations: 23.94 kB / 432.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/0.3365, allocations: 59.92 kB / 432.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002292/0.3367, allocations: 96.41 kB / 432.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.952e-05/0.3368, allocations: 27.98 kB / 432.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002609/0.337, allocations: 219.1 kB / 433.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.337, allocations: 0 / 433.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005724/0.3376, allocations: 128 kB / 433.2 MB, free: 8.938 MB / 350.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.0009529/0.3386, allocations: 386 kB / 433.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.34, allocations: 0.5742 MB / 434.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.34, allocations: 0 / 434.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007501/0.3407, allocations: 351.1 kB / 434.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006741/0.3414, allocations: 97.77 kB / 434.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.3452, allocations: 1.466 MB / 436.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.3456, allocations: 0.8284 MB / 436.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001752/0.3458, allocations: 39.39 kB / 437 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.346, allocations: 47.41 kB / 437 MB, free: 5.207 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.346, allocations: 0 / 437 MB, free: 5.207 MB / 350.1 MB Notification: Performance of Templates: time 0.01584/0.3618, allocations: 10.06 MB / 447.1 MB, free: 11.19 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile (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) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches