Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 175.1 kB / 16.72 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 222.9 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007755/0.0007753, allocations: 92.78 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003976/0.0003981, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2814, allocations: 47.57 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002748/0.2842, allocations: 2.532 MB / 377.6 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.286, allocations: 1.159 MB / 378.8 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.2862, allocations: 8.531 kB / 378.8 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003457/0.2865, allocations: 57.98 kB / 378.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.2867, allocations: 102.1 kB / 378.9 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007024/0.2874, allocations: 337.8 kB / 379.3 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005896/0.288, allocations: 0.6829 MB / 379.9 MB, free: 41.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2882, allocations: 78.95 kB / 380 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000402/0.2886, allocations: 323.5 kB / 380.3 MB, free: 41.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002078/0.2907, allocations: 1.434 MB / 381.8 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.2909, allocations: 33.81 kB / 381.8 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003545/0.2913, allocations: 80.95 kB / 381.9 MB, free: 40.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.2916, allocations: 197 kB / 382.1 MB, free: 40.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004022/0.292, allocations: 325 kB / 382.4 MB, free: 40.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008729/0.2929, allocations: 0.6075 MB / 383 MB, free: 40.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.3e-05/0.2929, allocations: 0 / 383 MB, free: 40.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.2929, allocations: 0 / 383 MB, free: 40.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.2929, allocations: 4 kB / 383 MB, free: 40.04 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003787/0.2967, allocations: 1.298 MB / 384.3 MB, free: 39.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.2968, allocations: 13.52 kB / 384.3 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.297, allocations: 78.19 kB / 384.4 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005417/0.2975, allocations: 425.9 kB / 384.8 MB, free: 38.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.069e-05/0.2976, allocations: 27.88 kB / 384.8 MB, free: 38.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.772e-05/0.2977, allocations: 39.97 kB / 384.9 MB, free: 38.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.2994, allocations: 1.177 MB / 386.1 MB, free: 37.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.2994, allocations: 0 / 386.1 MB, free: 37.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.917e-05/0.2995, allocations: 16 kB / 386.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.2995, allocations: 12 kB / 386.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002154/0.3017, allocations: 1.775 MB / 387.9 MB, free: 35.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003685/0.3054, allocations: 2.562 MB / 390.4 MB, free: 33.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.3067, allocations: 0.9343 MB / 391.4 MB, free: 32.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009033/0.3077, allocations: 0.7318 MB / 392.1 MB, free: 31.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.143e-05/0.3078, allocations: 4 kB / 392.1 MB, free: 31.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/0.309, allocations: 0.9123 MB / 393 MB, free: 30.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 3.617e-06/0.3091, allocations: 0 / 393 MB, free: 30.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.009226/0.3183, allocations: 6.038 MB / 399 MB, free: 24.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.3184, allocations: 85.11 kB / 399.1 MB, free: 24.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009713/0.3193, allocations: 0.9141 MB / 400 MB, free: 23.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.486e-05/0.3194, allocations: 45.69 kB / 400.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.3196, allocations: 304.2 kB / 400.4 MB, free: 22.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3197, allocations: 165.8 kB / 400.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.751e-05/0.3198, allocations: 15.98 kB / 400.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.227e-05/0.3199, allocations: 378.8 kB / 400.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009887/0.3209, allocations: 0.8564 MB / 401.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.3219, allocations: 0.9519 MB / 402.7 MB, free: 20.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.3236, allocations: 1.491 MB / 404.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3236, allocations: 4 kB / 404.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003041/0.3267, allocations: 2.49 MB / 406.7 MB, free: 16.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.3267, allocations: 11.94 kB / 406.7 MB, free: 16.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3267, allocations: 0 / 406.7 MB, free: 16.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/0.3284, allocations: 1.908 MB / 408.6 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/0.3288, allocations: 123.9 kB / 408.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006197/0.3351, allocations: 6.44 MB / 415.2 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.3364, allocations: 300 kB / 415.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/0.3365, allocations: 28 kB / 415.5 MB, free: 7.434 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000409/0.3369, allocations: 260.1 kB / 415.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.337, allocations: 71.19 kB / 415.8 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002002/0.3372, allocations: 102.2 kB / 415.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3372, allocations: 8 kB / 415.9 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3373, allocations: 0 / 415.9 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3373, allocations: 3.984 kB / 416 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003337/0.3406, allocations: 3.127 MB / 419.1 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3406, allocations: 4 kB / 419.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.3411, allocations: 95.94 kB / 419.2 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/0.3426, allocations: 1.861 MB / 421 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.178e-05/0.3427, allocations: 35.91 kB / 421.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006279/0.349, allocations: 6.145 MB / 427.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.889e-06/0.349, allocations: 11.91 kB / 427.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004857/0.3539, allocations: 3.275 MB / 430.5 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.3544, allocations: 208.2 kB / 430.7 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.3545, allocations: 23.94 kB / 430.7 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001637/0.3561, allocations: 351.6 kB / 431.1 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001471/0.3576, allocations: 0.6354 MB / 431.7 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.446e-05/0.3577, allocations: 35.97 kB / 431.7 MB, free: 6.766 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007929/0.3585, allocations: 0.6709 MB / 432.4 MB, free: 6.098 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3585, allocations: 0 / 432.4 MB, free: 6.098 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007988/0.3593, allocations: 184 kB / 432.6 MB, free: 5.918 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003042/0.3596, allocations: 151.1 kB / 432.7 MB, free: 5.762 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002948/0.3626, allocations: 1.949 MB / 434.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3626, allocations: 0 / 434.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.3641, allocations: 1.058 MB / 435.7 MB, free: 2.699 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00074/0.3649, allocations: 78.16 kB / 435.8 MB, free: 2.629 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.3692, allocations: 2.337 MB / 438.2 MB, free: 260 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005347/0.3697, allocations: 0.918 MB / 439.1 MB, free: 15.31 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.3699, allocations: 39.41 kB / 439.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3699, allocations: 4 kB / 439.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of Templates: time 0.01788/0.3878, allocations: 13.59 MB / 452.7 MB, free: 1.672 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches