Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002088/0.002087, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001987/0.001987, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.524/2.524, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 38.69 kB / 300.7 MB, free: 5.719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1889, allocations: 49.46 MB / 350.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00936/0.1983, allocations: 2.991 MB / 353.2 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004539/0.2029, allocations: 1.161 MB / 354.3 MB, free: 68 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005855/0.2035, allocations: 7.938 kB / 354.3 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008708/0.2045, allocations: 75.3 kB / 354.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007301/0.2053, allocations: 114.9 kB / 354.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.2073, allocations: 414.5 kB / 354.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001912/0.2092, allocations: 0.7958 MB / 355.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004181/0.2097, allocations: 93.59 kB / 355.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.2109, allocations: 355.1 kB / 356.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002886/0.2138, allocations: 1.342 MB / 357.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004354/0.2143, allocations: 68 kB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000619/0.2149, allocations: 119.9 kB / 357.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005124/0.2154, allocations: 223.8 kB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009102/0.2164, allocations: 354 kB / 358.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.2186, allocations: 0.8568 MB / 359.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.363e-05/0.2186, allocations: 0 / 359.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.899e-06/0.2186, allocations: 0 / 359.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.419e-05/0.2187, allocations: 0 / 359.1 MB, free: 11.27 MB / 302.1 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.008155/0.2269, allocations: 1.328 MB / 360.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.535e-05/0.227, allocations: 11.97 kB / 360.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003125/0.2273, allocations: 74.72 kB / 360.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000409/0.2277, allocations: 80 kB / 360.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.2288, allocations: 423.5 kB / 361 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.893e-05/0.229, allocations: 29.38 kB / 361 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002116/0.2292, allocations: 40.28 kB / 361.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003931/0.2332, allocations: 1.157 MB / 362.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.901e-05/0.2332, allocations: 0 / 362.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.2334, allocations: 16 kB / 362.2 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.2335, allocations: 8 kB / 362.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005537/0.239, allocations: 1.748 MB / 364 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00939/0.2484, allocations: 2.482 MB / 366.5 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003374/0.2519, allocations: 0.9074 MB / 367.4 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002428/0.2544, allocations: 0.7162 MB / 368.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-05/0.2545, allocations: 12.25 kB / 368.1 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003392/0.2579, allocations: 0.9005 MB / 369 MB, free: 1.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 6.482e-06/0.258, allocations: 0 / 369 MB, free: 1.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.3846/0.6426, allocations: 5.779 MB / 374.8 MB, free: 25.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/0.6428, allocations: 82.88 kB / 374.9 MB, free: 25.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.6455, allocations: 0.9186 MB / 375.8 MB, free: 25.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003532/0.6459, allocations: 51.12 kB / 375.8 MB, free: 25.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003998/0.6463, allocations: 297.7 kB / 376.1 MB, free: 24.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003297/0.6467, allocations: 164.1 kB / 376.3 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004944/0.6472, allocations: 123.1 kB / 376.4 MB, free: 24.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002259/0.6474, allocations: 382 kB / 376.8 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002383/0.6498, allocations: 0.8416 MB / 377.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002621/0.6525, allocations: 0.9405 MB / 378.6 MB, free: 23.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004388/0.6569, allocations: 1.466 MB / 380 MB, free: 23.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.6569, allocations: 1.219 kB / 380 MB, free: 23.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.007415/0.6643, allocations: 2.487 MB / 382.5 MB, free: 23.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.948e-05/0.6644, allocations: 7.938 kB / 382.5 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.6645, allocations: 0 / 382.5 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003989/0.6685, allocations: 1.899 MB / 384.4 MB, free: 22.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.6695, allocations: 115.2 kB / 384.5 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.6807, allocations: 6.706 MB / 391.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/0.6833, allocations: 231.7 kB / 391.5 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.6835, allocations: 22.72 kB / 391.5 MB, free: 16.47 MB / 302.1 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,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006658/0.6842, allocations: 252.5 kB / 391.7 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.6844, allocations: 75.09 kB / 391.8 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002367/0.6846, allocations: 112.3 kB / 391.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.6847, allocations: 4 kB / 391.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.6847, allocations: 4 kB / 391.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.6847, allocations: 3.938 kB / 391.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005796/0.6905, allocations: 3.1 MB / 395 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.6906, allocations: 0 / 395 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008986/0.6915, allocations: 87.77 kB / 395.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/0.6942, allocations: 1.87 MB / 397 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.6943, allocations: 19.97 kB / 397 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/0.7045, allocations: 6.324 MB / 403.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.7046, allocations: 5.438 kB / 403.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007493/0.7121, allocations: 3.227 MB / 406.6 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/0.7128, allocations: 208.3 kB / 406.8 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.7131, allocations: 20 kB / 406.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002943/0.7161, allocations: 271.8 kB / 407.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00231/0.7184, allocations: 0.5617 MB / 407.6 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/0.7186, allocations: 31.95 kB / 407.7 MB, free: 192 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001594/0.7202, allocations: 0.6709 MB / 408.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.7203, allocations: 0 / 408.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001743/0.722, allocations: 188 kB / 408.5 MB, free: 15.34 MB / 318.1 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 (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0106/0.7327, allocations: 3.832 MB / 412.3 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006499/0.7392, allocations: 1.935 MB / 414.3 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/0.7393, allocations: 4.125 kB / 414.3 MB, free: 9.508 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003099/0.7424, allocations: 1.083 MB / 415.4 MB, free: 8.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001818/0.7443, allocations: 72.77 kB / 415.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03934/0.7837, allocations: 11.72 MB / 427.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.7848, allocations: 0.9221 MB / 428.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006351/0.7855, allocations: 39.28 kB / 428.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006682/0.7862, allocations: 207.3 kB / 428.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7862, allocations: 0 / 428.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2032/0.9895, allocations: 30.27 MB / 458.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.08/22.07, allocations: 11.75 kB / 458.6 MB, free: 13.14 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches