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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 103.9 kB / 18.39 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 186.4 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 51.94 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005287/0.1095, allocations: 3.028 MB / 378.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.1118, allocations: 0.9785 MB / 379.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004355/0.1123, allocations: 7.938 kB / 379.8 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004059/0.1128, allocations: 63.38 kB / 379.9 MB, free: 484 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006127/0.1134, allocations: 138.8 kB / 380 MB, free: 344 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008448/0.1142, allocations: 219.6 kB / 380.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2075/0.3218, allocations: 0.6264 MB / 380.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003313/0.3221, allocations: 141.1 kB / 381 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004599/0.3226, allocations: 275.3 kB / 381.3 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.323, allocations: 298.6 kB / 381.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.46e-05/0.3231, allocations: 48.12 kB / 381.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.3233, allocations: 100.4 kB / 381.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.3235, allocations: 123.4 kB / 381.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.3237, allocations: 251.2 kB / 382.1 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007855/0.3245, allocations: 0.5939 MB / 382.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3245, allocations: 0.5625 kB / 382.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3246, allocations: 4.141 kB / 382.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.3246, allocations: 0 / 382.7 MB, free: 9.543 MB / 318.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.00155/0.3261, allocations: 0.7767 MB / 383.4 MB, free: 9.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3262, allocations: 9.188 kB / 383.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.3263, allocations: 48.97 kB / 383.5 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.3268, allocations: 330.4 kB / 383.8 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.88e-05/0.3268, allocations: 33.91 kB / 383.9 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.061e-05/0.3269, allocations: 46.16 kB / 383.9 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009049/0.3278, allocations: 471.8 kB / 384.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.3279, allocations: 10.48 kB / 384.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.3279, allocations: 13.91 kB / 384.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.3279, allocations: 10.69 kB / 384.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009428/0.3289, allocations: 481 kB / 384.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.3309, allocations: 1.119 MB / 386 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008373/0.3318, allocations: 390.5 kB / 386.4 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.3323, allocations: 273.1 kB / 386.6 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.785e-05/0.3324, allocations: 14.31 kB / 386.7 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3324, allocations: 37.38 kB / 386.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.635e-06/0.3324, allocations: 0 / 386.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005018/0.3375, allocations: 2.335 MB / 389 MB, free: 6.727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.3375, allocations: 57.88 kB / 389.1 MB, free: 6.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/0.3378, allocations: 285.8 kB / 389.4 MB, free: 6.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.3379, allocations: 39.39 kB / 389.4 MB, free: 6.473 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.3381, allocations: 190.9 kB / 389.6 MB, free: 6.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.3382, allocations: 186.6 kB / 389.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/0.3384, allocations: 117.2 kB / 389.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.537e-05/0.3385, allocations: 347.6 kB / 390.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004645/0.339, allocations: 239.1 kB / 390.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/0.3395, allocations: 290.3 kB / 390.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000743/0.3402, allocations: 415.3 kB / 391.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3402, allocations: 1.625 kB / 391.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001559/0.3418, allocations: 0.7891 MB / 391.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.3418, allocations: 8.703 kB / 391.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3418, allocations: 0 / 391.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009784/0.3428, allocations: 0.4903 MB / 392.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.3432, allocations: 88.91 kB / 392.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.3443, allocations: 1.411 MB / 393.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005335/0.3449, allocations: 76.17 kB / 394 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/0.3449, allocations: 22.45 kB / 394 MB, free: 3.773 MB / 318.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.0002458/0.3452, allocations: 179.8 kB / 394.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.935e-05/0.3453, allocations: 40.83 kB / 394.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.3454, allocations: 62.36 kB / 394.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.3454, allocations: 5.469 kB / 394.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.3454, allocations: 1.031 kB / 394.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3454, allocations: 6.672 kB / 394.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.3482, allocations: 1.451 MB / 395.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3483, allocations: 1.188 kB / 395.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/0.3487, allocations: 86.59 kB / 395.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000867/0.3495, allocations: 489.8 kB / 396.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.82e-05/0.3496, allocations: 19.56 kB / 396.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009546/0.3506, allocations: 1.366 MB / 397.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3506, allocations: 6.109 kB / 397.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.3526, allocations: 1.087 MB / 398.8 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/0.3528, allocations: 171.1 kB / 399 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.517e-05/0.3529, allocations: 16.86 kB / 399 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.3533, allocations: 66.59 kB / 399.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.3535, allocations: 95.91 kB / 399.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.548e-05/0.3536, allocations: 22.47 kB / 399.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.3538, allocations: 203.9 kB / 399.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3538, allocations: 0 / 399.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005711/0.3544, allocations: 135.2 kB / 399.5 MB, free: 0.6992 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002307/0.3546, allocations: 137.6 kB / 399.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.356, allocations: 0.5944 MB / 400.2 MB, free: 420 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.356, allocations: 4.062 kB / 400.2 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007006/0.3567, allocations: 337.2 kB / 400.6 MB, free: 320 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000616/0.3573, allocations: 78.72 kB / 400.6 MB, free: 288 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.3612, allocations: 1.469 MB / 402.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.3617, allocations: 0.8166 MB / 402.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.3619, allocations: 40.75 kB / 403 MB, free: 14.79 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3619, allocations: 0 / 403 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Templates: time 0.01658/0.3785, allocations: 8.54 MB / 411.5 MB, free: 10.46 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (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) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches