Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.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.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",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.001059/0.001059, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.00108/0.00108, allocations: 196 kB / 18.01 MB, free: 5.051 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 51.95 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2831, allocations: 49.43 MB / 400.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004929/0.2881, allocations: 3.551 MB / 403.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.2895, allocations: 0.88 MB / 404.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.2897, allocations: 8 kB / 404.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.2899, allocations: 79.17 kB / 404.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.2902, allocations: 150.6 kB / 404.9 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.2906, allocations: 151.7 kB / 405 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005344/0.2911, allocations: 0.5997 MB / 405.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002912/0.2914, allocations: 185.5 kB / 405.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002724/0.2917, allocations: 243.2 kB / 406.1 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002944/0.292, allocations: 274.9 kB / 406.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.494e-05/0.2921, allocations: 52 kB / 406.4 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-05/0.2922, allocations: 48 kB / 406.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.911e-05/0.2923, allocations: 119.6 kB / 406.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.2925, allocations: 266.7 kB / 406.8 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005743/0.2931, allocations: 0.6099 MB / 407.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2931, allocations: 0 / 407.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2931, allocations: 0 / 407.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.2931, allocations: 0 / 407.4 MB, free: 1.738 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001616/0.2947, allocations: 0.857 MB / 408.3 MB, free: 0.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2948, allocations: 8.031 kB / 408.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.35e-05/0.2949, allocations: 86.7 kB / 408.4 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.023e-05/0.295, allocations: 56.61 kB / 408.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004395/0.2954, allocations: 331.4 kB / 408.7 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.2955, allocations: 41.38 kB / 408.8 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.515e-05/0.2956, allocations: 48.33 kB / 408.8 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009312/0.2965, allocations: 462.3 kB / 409.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.2966, allocations: 7.984 kB / 409.3 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.2966, allocations: 16 kB / 409.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.2966, allocations: 12 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.2976, allocations: 455.7 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002201/0.2998, allocations: 1.386 MB / 411.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009174/0.3008, allocations: 0.5249 MB / 411.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000803/0.3016, allocations: 375.7 kB / 412 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.3016, allocations: 16.53 kB / 412 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.3017, allocations: 39.12 kB / 412.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 1.934e-06/0.3017, allocations: 0 / 412.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=103): time 0.007257/0.3089, allocations: 3.15 MB / 415.2 MB, free: 9.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.309, allocations: 68.41 kB / 415.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.3093, allocations: 251 kB / 415.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.3093, allocations: 37.7 kB / 415.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3095, allocations: 201.5 kB / 415.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002947/0.3098, allocations: 368.8 kB / 416.1 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.31, allocations: 146.7 kB / 416.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3102, allocations: 354.8 kB / 416.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005798/0.3107, allocations: 281.8 kB / 416.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.3114, allocations: 345.3 kB / 417.2 MB, free: 7.578 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.3127, allocations: 0.6311 MB / 417.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3127, allocations: 0 / 417.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001519/0.3142, allocations: 0.7822 MB / 418.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3143, allocations: 11.92 kB / 418.7 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3143, allocations: 4 kB / 418.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.3143, allocations: 4 kB / 418.7 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007845/0.3151, allocations: 211.8 kB / 418.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.3151, allocations: 4 kB / 418.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.3155, allocations: 47.97 kB / 418.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.3155, allocations: 27.98 kB / 419 MB, free: 5.844 MB / 334.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 (113): * Single equations (assignments): 113 * 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.000295/0.3158, allocations: 197.6 kB / 419.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.527e-05/0.3159, allocations: 59.61 kB / 419.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.3161, allocations: 77.39 kB / 419.3 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.3161, allocations: 8 kB / 419.3 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.3161, allocations: 0 / 419.3 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3161, allocations: 3.984 kB / 419.3 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003404/0.3195, allocations: 1.972 MB / 421.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.3195, allocations: 12.12 kB / 421.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000829/0.3204, allocations: 203.7 kB / 421.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/0.3204, allocations: 11.94 kB / 421.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.056e-05/0.3205, allocations: 28 kB / 421.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.462e-05/0.3205, allocations: 15.92 kB / 421.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.3205, allocations: 8 kB / 421.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.3238, allocations: 1.373 MB / 422.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001583/0.324, allocations: 132.8 kB / 423 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.3241, allocations: 31.86 kB / 423.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006902/0.3248, allocations: 43.97 kB / 423.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.325, allocations: 80.78 kB / 423.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.064e-05/0.3251, allocations: 28 kB / 423.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003505/0.3255, allocations: 185.9 kB / 423.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3255, allocations: 0 / 423.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009309/0.3265, allocations: 152 kB / 423.6 MB, free: 1.023 MB / 334.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 (103): * Single equations (assignments): 103 * 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.004399/0.3309, allocations: 1.956 MB / 425.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.3334, allocations: 0.7347 MB / 426.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.3334, allocations: 4 kB / 426.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.3349, allocations: 449.4 kB / 426.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.3363, allocations: 117.9 kB / 426.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.3487, allocations: 5.283 MB / 432.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006815/0.3495, allocations: 0.8684 MB / 433 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005139/0.35, allocations: 72.97 kB / 433 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/0.3505, allocations: 199.4 kB / 433.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3505, allocations: 0 / 433.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05055/0.4011, allocations: 11.57 MB / 444.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.472/8.874, allocations: 7.938 kB / 444.8 MB, free: 11.61 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches