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.001626/0.001626, allocations: 110.5 kB / 17.06 MB, free: 5.793 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.001807/0.001807, allocations: 200 kB / 18.01 MB, free: 4.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 43.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2819, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00475/0.2867, allocations: 2.997 MB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.2893, allocations: 1.15 MB / 404.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/0.2895, allocations: 7.938 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004549/0.29, allocations: 87.22 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002432/0.2903, allocations: 111 kB / 404.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009789/0.2913, allocations: 415.7 kB / 405 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009424/0.2922, allocations: 0.8035 MB / 405.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002357/0.2925, allocations: 93.55 kB / 405.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006694/0.2931, allocations: 359.1 kB / 406.2 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002071/0.2952, allocations: 1.339 MB / 407.6 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.2954, allocations: 68 kB / 407.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003129/0.2957, allocations: 123.9 kB / 407.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002765/0.296, allocations: 227.8 kB / 408 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003959/0.2964, allocations: 350 kB / 408.3 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.2976, allocations: 0.8708 MB / 409.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.2977, allocations: 4 kB / 409.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.2977, allocations: 0 / 409.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.2977, allocations: 0 / 409.2 MB, free: 15.82 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004184/0.3019, allocations: 1.347 MB / 410.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.3019, allocations: 12.03 kB / 410.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001347/0.3021, allocations: 78.7 kB / 410.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.3023, allocations: 84.45 kB / 410.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006923/0.303, allocations: 436 kB / 411.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.304e-05/0.303, allocations: 29.38 kB / 411.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.442e-05/0.3031, allocations: 40.33 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.3052, allocations: 1.157 MB / 412.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.3052, allocations: 4 kB / 412.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.381e-05/0.3053, allocations: 23.98 kB / 412.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3053, allocations: 8 kB / 412.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.3084, allocations: 1.74 MB / 414.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004699/0.3131, allocations: 2.475 MB / 416.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.3149, allocations: 0.9069 MB / 417.5 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.3162, allocations: 0.7201 MB / 418.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.856e-05/0.3163, allocations: 4.5 kB / 418.2 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001654/0.318, allocations: 0.9045 MB / 419.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 6.653e-06/0.318, allocations: 0 / 419.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01241/0.3304, allocations: 5.801 MB / 424.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/0.3305, allocations: 85.11 kB / 425 MB, free: 15.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.3318, allocations: 0.9142 MB / 425.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.3319, allocations: 45.7 kB / 426 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002816/0.3322, allocations: 296.7 kB / 426.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.3324, allocations: 182.6 kB / 426.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.3327, allocations: 114.3 kB / 426.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002215/0.3329, allocations: 378.8 kB / 426.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.3344, allocations: 0.8486 MB / 427.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.3359, allocations: 0.9401 MB / 428.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002424/0.3383, allocations: 1.468 MB / 430.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3383, allocations: 8 kB / 430.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004477/0.3428, allocations: 2.487 MB / 432.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.3429, allocations: 8 kB / 432.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.3429, allocations: 3.984 kB / 432.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/0.3454, allocations: 1.9 MB / 434.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.346, allocations: 111.8 kB / 434.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009318/0.3553, allocations: 6.713 MB / 441.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.3569, allocations: 223.8 kB / 441.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.195e-05/0.357, allocations: 28 kB / 441.7 MB, free: 14.49 MB / 366.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.000516/0.3575, allocations: 255.9 kB / 441.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.3576, allocations: 75.52 kB / 442 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.3579, allocations: 106.2 kB / 442.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3579, allocations: 8 kB / 442.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3579, allocations: 0 / 442.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3579, allocations: 0 / 442.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004771/0.3627, allocations: 3.099 MB / 445.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.3627, allocations: 4 kB / 445.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/0.3632, allocations: 87.94 kB / 445.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002293/0.3655, allocations: 1.861 MB / 447.2 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-05/0.3656, allocations: 35.91 kB / 447.2 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008052/0.3737, allocations: 6.331 MB / 453.5 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3737, allocations: 0 / 453.5 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005515/0.3792, allocations: 3.233 MB / 456.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004228/0.3797, allocations: 212.6 kB / 457 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.3798, allocations: 20 kB / 457 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/0.3816, allocations: 267.6 kB / 457.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00154/0.3831, allocations: 0.5616 MB / 457.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.787e-05/0.3832, allocations: 35.95 kB / 457.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008453/0.3841, allocations: 0.6709 MB / 458.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3841, allocations: 0 / 458.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009205/0.385, allocations: 191.9 kB / 458.7 MB, free: 13.01 MB / 382.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.006152/0.3912, allocations: 3.823 MB / 462.5 MB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003455/0.3947, allocations: 1.921 MB / 464.4 MB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.3947, allocations: 0 / 464.4 MB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.3967, allocations: 1.083 MB / 465.5 MB, free: 6.086 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007203/0.3975, allocations: 78.38 kB / 465.6 MB, free: 6.008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/0.4173, allocations: 11.62 MB / 477.2 MB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006838/0.418, allocations: 0.9182 MB / 478.1 MB, free: 9.266 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002541/0.4182, allocations: 47.28 kB / 478.2 MB, free: 9.219 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003314/0.4186, allocations: 203.4 kB / 478.4 MB, free: 9.02 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4186, allocations: 0 / 478.4 MB, free: 9.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08253/0.5011, allocations: 30.52 MB / 0.497 GB, free: 10.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.59, allocations: 18.45 kB / 0.497 GB, free: 10.63 MB / 430.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