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.001473/0.001473, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001642/0.001642, allocations: 194.9 kB / 18 MB, free: 5.172 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.305/1.305, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2544, allocations: 49.44 MB / 400.2 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003849/0.2583, allocations: 2.998 MB / 403.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.2601, allocations: 1.153 MB / 404.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.2603, allocations: 8 kB / 404.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003953/0.2607, allocations: 79.23 kB / 404.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.2609, allocations: 119 kB / 404.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007778/0.2617, allocations: 407.4 kB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006646/0.2624, allocations: 0.8113 MB / 405.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.2626, allocations: 93.59 kB / 405.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003938/0.263, allocations: 355.1 kB / 406.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001366/0.2643, allocations: 1.339 MB / 407.6 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.856e-05/0.2644, allocations: 68 kB / 407.6 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.2647, allocations: 123.9 kB / 407.8 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.2649, allocations: 227.8 kB / 408 MB, free: 1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002972/0.2652, allocations: 350 kB / 408.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008272/0.266, allocations: 0.874 MB / 409.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.266, allocations: 0 / 409.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.266, allocations: 0 / 409.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.266, allocations: 0 / 409.2 MB, free: 15.79 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.003582/0.2696, allocations: 1.355 MB / 410.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.2697, allocations: 8.031 kB / 410.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.2698, allocations: 70.72 kB / 410.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.2699, allocations: 80.47 kB / 410.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.2705, allocations: 440 kB / 411.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/0.2706, allocations: 29.38 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.2707, allocations: 36.33 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001752/0.2724, allocations: 1.157 MB / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2725, allocations: 0 / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.2725, allocations: 23.98 kB / 412.4 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.2726, allocations: 8 kB / 412.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002559/0.2751, allocations: 1.744 MB / 414.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004382/0.2795, allocations: 2.483 MB / 416.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00184/0.2814, allocations: 0.9108 MB / 417.5 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.2825, allocations: 0.7123 MB / 418.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.619e-05/0.2826, allocations: 4.5 kB / 418.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.284, allocations: 0.9161 MB / 419.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.314e-06/0.284, allocations: 0 / 419.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01134/0.2954, allocations: 5.79 MB / 425 MB, free: 15.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/0.2955, allocations: 85.11 kB / 425 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.2967, allocations: 0.9181 MB / 426 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001109/0.2968, allocations: 41.7 kB / 426 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.297, allocations: 304.7 kB / 426.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.2972, allocations: 174.6 kB / 426.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.2974, allocations: 122.3 kB / 426.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.2976, allocations: 378.8 kB / 427 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.2989, allocations: 0.8524 MB / 427.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.3002, allocations: 0.9401 MB / 428.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.3024, allocations: 1.461 MB / 430.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3024, allocations: 4 kB / 430.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003797/0.3062, allocations: 2.496 MB / 432.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.3063, allocations: 4 kB / 432.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.3063, allocations: 4 kB / 432.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001999/0.3083, allocations: 1.892 MB / 434.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.3089, allocations: 111.8 kB / 434.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00738/0.3163, allocations: 6.712 MB / 441.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.3178, allocations: 227.7 kB / 441.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.06e-05/0.3178, allocations: 20 kB / 441.7 MB, free: 14.46 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.0004148/0.3183, allocations: 264 kB / 441.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.3184, allocations: 75.53 kB / 442 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.3186, allocations: 106.2 kB / 442.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.3186, allocations: 4 kB / 442.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3186, allocations: 0 / 442.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3186, allocations: 8.172 kB / 442.1 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004236/0.3229, allocations: 3.095 MB / 445.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3229, allocations: 0 / 445.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004898/0.3234, allocations: 83.94 kB / 445.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.3254, allocations: 1.869 MB / 447.2 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.929e-05/0.3254, allocations: 23.97 kB / 447.2 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007054/0.3325, allocations: 6.331 MB / 453.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.3325, allocations: 0 / 453.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004825/0.3373, allocations: 3.239 MB / 456.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003771/0.3377, allocations: 220.5 kB / 457 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.3379, allocations: 20 kB / 457 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.3395, allocations: 267.6 kB / 457.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/0.3408, allocations: 0.5616 MB / 457.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.555e-05/0.3409, allocations: 27.95 kB / 457.8 MB, free: 13.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007455/0.3416, allocations: 0.6787 MB / 458.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3416, allocations: 0 / 458.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007988/0.3424, allocations: 191.9 kB / 458.7 MB, free: 12.97 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.005333/0.3478, allocations: 3.813 MB / 462.5 MB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003112/0.3509, allocations: 1.924 MB / 464.4 MB, free: 7.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.3509, allocations: 4 kB / 464.4 MB, free: 7.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001834/0.3528, allocations: 1.087 MB / 465.5 MB, free: 6.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007445/0.3535, allocations: 71.41 kB / 465.6 MB, free: 5.977 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01804/0.3716, allocations: 11.62 MB / 477.2 MB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005768/0.3722, allocations: 0.926 MB / 478.2 MB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002454/0.3725, allocations: 39.28 kB / 478.2 MB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002951/0.3728, allocations: 203.4 kB / 478.4 MB, free: 8.992 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3728, allocations: 0 / 478.4 MB, free: 8.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0652/0.438, allocations: 30.51 MB / 0.497 GB, free: 10.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.06, allocations: 15.14 kB / 0.497 GB, free: 10.61 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