Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001211/0.001211, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 59.91 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3531, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004804/0.3579, allocations: 3.659 MB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.3599, allocations: 0.9471 MB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.3601, allocations: 8 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002435/0.3604, allocations: 87.09 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.3608, allocations: 162.5 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.3613, allocations: 159.7 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006267/0.3619, allocations: 0.6346 MB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003176/0.3623, allocations: 193.5 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004004/0.3627, allocations: 251.1 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.363, allocations: 282.8 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.867e-05/0.3631, allocations: 52 kB / 415.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.3632, allocations: 59.98 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.899e-05/0.3633, allocations: 119.6 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.3637, allocations: 290.5 kB / 415.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006757/0.3644, allocations: 0.6214 MB / 416.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.3644, allocations: 4 kB / 416.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3644, allocations: 0 / 416.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.3644, allocations: 0 / 416.2 MB, free: 9.977 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001535/0.3659, allocations: 0.8529 MB / 417.1 MB, free: 9.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.366, allocations: 8.031 kB / 417.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000109/0.3661, allocations: 94.7 kB / 417.2 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.3663, allocations: 68.56 kB / 417.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005321/0.3669, allocations: 350.7 kB / 417.6 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.3669, allocations: 37 kB / 417.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.057e-05/0.367, allocations: 55.94 kB / 417.7 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007192/0.3677, allocations: 414.4 kB / 418.1 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.3677, allocations: 0 / 418.1 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.3678, allocations: 24 kB / 418.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.3678, allocations: 15.98 kB / 418.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006703/0.3685, allocations: 387.8 kB / 418.5 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.3708, allocations: 1.394 MB / 419.9 MB, free: 6.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007894/0.3716, allocations: 0.5031 MB / 420.4 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006637/0.3723, allocations: 348.2 kB / 420.8 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.965e-05/0.3723, allocations: 12.64 kB / 420.8 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.3724, allocations: 55.08 kB / 420.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=71): time 2.575e-06/0.3724, allocations: 0 / 420.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=107): time 0.006553/0.3789, allocations: 3.016 MB / 423.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.379, allocations: 60.41 kB / 423.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003291/0.3794, allocations: 276.6 kB / 424.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.973e-05/0.3794, allocations: 41.7 kB / 424.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.3796, allocations: 213.5 kB / 424.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.3799, allocations: 380.7 kB / 424.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.3801, allocations: 150.6 kB / 424.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3803, allocations: 362.8 kB / 425.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/0.3807, allocations: 241.9 kB / 425.5 MB, free: 380 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004787/0.3812, allocations: 317.4 kB / 425.8 MB, free: 52 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000919/0.3821, allocations: 0.5766 MB / 426.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3821, allocations: 0 / 426.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001232/0.3834, allocations: 0.7354 MB / 427.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3834, allocations: 4 kB / 427.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3834, allocations: 4 kB / 427.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.92e-05/0.3835, allocations: 4 kB / 427.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007901/0.3843, allocations: 203.6 kB / 427.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.3843, allocations: 4 kB / 427.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000331/0.3846, allocations: 31.98 kB / 427.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.884e-05/0.3847, allocations: 28 kB / 427.4 MB, free: 14.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (outerContactB.contact,outerContactA.contact,innerContactB.contact,innerContactA.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002767/0.385, allocations: 205.6 kB / 427.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-05/0.3851, allocations: 59.66 kB / 427.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.3852, allocations: 77.62 kB / 427.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.3853, allocations: 12 kB / 427.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/0.3853, allocations: 0 / 427.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/0.3853, allocations: 3.984 kB / 427.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002754/0.388, allocations: 1.945 MB / 429.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.3881, allocations: 4.594 kB / 429.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007669/0.3888, allocations: 195.7 kB / 429.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/0.3889, allocations: 8 kB / 429.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.923e-05/0.3889, allocations: 27.98 kB / 429.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.054e-05/0.3889, allocations: 11.94 kB / 430 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.3889, allocations: 7.984 kB / 430 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00179/0.3907, allocations: 1.298 MB / 431.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.3909, allocations: 136.8 kB / 431.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.737e-05/0.391, allocations: 31.94 kB / 431.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.3913, allocations: 27.98 kB / 431.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.3914, allocations: 80.78 kB / 431.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.3915, allocations: 32 kB / 431.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003168/0.3918, allocations: 199.1 kB / 431.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3918, allocations: 0 / 431.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005058/0.3923, allocations: 156 kB / 431.9 MB, free: 9.742 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002107/0.3944, allocations: 1.862 MB / 433.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.3956, allocations: 0.6724 MB / 434.4 MB, free: 7.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3956, allocations: 3.938 kB / 434.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000615/0.3962, allocations: 418.7 kB / 434.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008357/0.3971, allocations: 144.7 kB / 435 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/0.4044, allocations: 5.264 MB / 440.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.4049, allocations: 0.884 MB / 441.2 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003615/0.4053, allocations: 81.2 kB / 441.2 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003369/0.4056, allocations: 211.4 kB / 441.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of SimCode: time 3.246e-06/0.4056, allocations: 0 / 441.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/0.4427, allocations: 12.3 MB / 453.7 MB, free: 3.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.68/9.123, allocations: 7.922 kB / 453.8 MB, free: 3.754 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches