Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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.001677/0.001677, allocations: 109.3 kB / 17.73 MB, free: 5.34 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.00183/0.00183, allocations: 184.1 kB / 18.66 MB, free: 4.414 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.534/1.534, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001684/0.001684, allocations: 59.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.109, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004651/0.1137, allocations: 2.976 MB / 377.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.1164, allocations: 1.205 MB / 378.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.1166, allocations: 8 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000473/0.1171, allocations: 83.23 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.1174, allocations: 111 kB / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1184, allocations: 415.2 kB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2197/0.3381, allocations: 0.7974 MB / 380.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002868/0.3384, allocations: 106.1 kB / 380.3 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006854/0.3391, allocations: 362.9 kB / 380.7 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002189/0.3413, allocations: 1.339 MB / 382 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.3415, allocations: 67.75 kB / 382.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003044/0.3418, allocations: 117.3 kB / 382.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.3421, allocations: 227.5 kB / 382.4 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003772/0.3424, allocations: 352.9 kB / 382.8 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.3437, allocations: 0.8758 MB / 383.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3437, allocations: 2.188 kB / 383.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3437, allocations: 0 / 383.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3437, allocations: 0 / 383.6 MB, free: 8.898 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003869/0.3476, allocations: 1.344 MB / 385 MB, free: 8.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.3476, allocations: 9.531 kB / 385 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.3478, allocations: 81.3 kB / 385.1 MB, free: 8.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.348, allocations: 82.66 kB / 385.2 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006453/0.3486, allocations: 433.5 kB / 385.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.3487, allocations: 27.41 kB / 385.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.3488, allocations: 42.69 kB / 385.6 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/0.3509, allocations: 1.165 MB / 386.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/0.3509, allocations: 2.062 kB / 386.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.08e-05/0.351, allocations: 14.56 kB / 386.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.351, allocations: 9.422 kB / 386.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003008/0.354, allocations: 1.744 MB / 388.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004973/0.359, allocations: 2.464 MB / 391 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.3607, allocations: 0.9032 MB / 391.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.3619, allocations: 0.7152 MB / 392.7 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.235e-05/0.362, allocations: 15.14 kB / 392.7 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001669/0.3637, allocations: 0.8987 MB / 393.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 3.045e-06/0.3637, allocations: 0 / 393.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01603/0.3797, allocations: 5.808 MB / 399.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.3798, allocations: 83.23 kB / 399.5 MB, free: 4.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002336/0.3822, allocations: 0.9147 MB / 400.4 MB, free: 3.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.3823, allocations: 52 kB / 400.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.3826, allocations: 294.7 kB / 400.7 MB, free: 3.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.3829, allocations: 181.7 kB / 400.9 MB, free: 3.211 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004116/0.3833, allocations: 115.6 kB / 401 MB, free: 3.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3835, allocations: 380.3 kB / 401.4 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/0.3856, allocations: 0.8449 MB / 402.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002117/0.3877, allocations: 0.9416 MB / 403.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002941/0.3907, allocations: 1.467 MB / 404.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.3907, allocations: 0 / 404.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006741/0.3975, allocations: 2.492 MB / 407.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.3975, allocations: 8 kB / 407.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.3976, allocations: 4 kB / 407.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002719/0.4003, allocations: 1.895 MB / 409 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/0.4009, allocations: 114.1 kB / 409.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00967/0.4106, allocations: 6.713 MB / 415.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/0.4124, allocations: 231.7 kB / 416.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.4125, allocations: 27.98 kB / 416.1 MB, free: 4.773 MB / 334.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.0007291/0.4133, allocations: 258.7 kB / 416.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.4135, allocations: 79.47 kB / 416.4 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002754/0.4138, allocations: 102.2 kB / 416.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.4138, allocations: 8 kB / 416.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4138, allocations: 0 / 416.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.4139, allocations: 3.984 kB / 416.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00504/0.4189, allocations: 3.101 MB / 419.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4189, allocations: 0 / 419.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005278/0.4195, allocations: 87.12 kB / 419.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0022/0.4217, allocations: 1.864 MB / 421.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-05/0.4218, allocations: 31.95 kB / 421.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007908/0.4297, allocations: 6.327 MB / 428 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4297, allocations: 4.031 kB / 428 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005568/0.4353, allocations: 3.223 MB / 431.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004672/0.4358, allocations: 212.6 kB / 431.4 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.436, allocations: 20 kB / 431.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00181/0.4378, allocations: 275.6 kB / 431.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001508/0.4393, allocations: 0.565 MB / 432.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.4394, allocations: 27.97 kB / 432.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009517/0.4404, allocations: 0.6748 MB / 433 MB, free: 3.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4404, allocations: 0 / 433 MB, free: 3.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001016/0.4414, allocations: 187.9 kB / 433.1 MB, free: 3.363 MB / 350.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.006114/0.4475, allocations: 3.83 MB / 437 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003427/0.451, allocations: 1.919 MB / 438.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.451, allocations: 448 / 438.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001985/0.453, allocations: 1.094 MB / 440 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007935/0.4538, allocations: 73.61 kB / 440 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/0.4751, allocations: 11.62 MB / 451.7 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007818/0.4759, allocations: 0.9259 MB / 452.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000255/0.4762, allocations: 35.28 kB / 452.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003604/0.4766, allocations: 207.3 kB / 452.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4766, allocations: 0 / 452.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07517/0.5518, allocations: 30.5 MB / 483.3 MB, free: 0.8398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.95, allocations: 11.78 kB / 483.3 MB, free: 0.8281 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches