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.001946/0.001947, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.002019/0.002019, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.373/2.373, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 43.47 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1632, allocations: 49.44 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.008328/0.1716, allocations: 3.528 MB / 353.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00349/0.1752, allocations: 0.8723 MB / 354.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008915/0.1761, allocations: 11.94 kB / 354.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005894/0.1767, allocations: 83.16 kB / 354.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.178, allocations: 146.7 kB / 354.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009427/0.1789, allocations: 151.7 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.1801, allocations: 0.5958 MB / 355.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005666/0.1807, allocations: 181.5 kB / 355.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005666/0.1813, allocations: 243.2 kB / 356 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.1824, allocations: 266.9 kB / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.1825, allocations: 52 kB / 356.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.1827, allocations: 52 kB / 356.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.1829, allocations: 119.6 kB / 356.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005394/0.1834, allocations: 270.7 kB / 356.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000949/0.1844, allocations: 0.5919 MB / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.407e-06/0.1844, allocations: 0 / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1844, allocations: 0 / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.893e-05/0.1844, allocations: 0 / 357.3 MB, free: 13.18 MB / 302.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.002388/0.1868, allocations: 0.8536 MB / 358.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.523e-05/0.1869, allocations: 8.031 kB / 358.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002155/0.1871, allocations: 86.7 kB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.1873, allocations: 52.38 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007442/0.1881, allocations: 331.1 kB / 358.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-05/0.1882, allocations: 41.38 kB / 358.7 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.1883, allocations: 48.38 kB / 358.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.1897, allocations: 450.5 kB / 359.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.582e-05/0.1898, allocations: 3.906 kB / 359.1 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.371e-05/0.1898, allocations: 20 kB / 359.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.1899, allocations: 12 kB / 359.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.1914, allocations: 463.7 kB / 359.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003926/0.1954, allocations: 1.386 MB / 361 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.1969, allocations: 0.5441 MB / 361.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.1981, allocations: 375.7 kB / 361.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-05/0.1982, allocations: 8.562 kB / 361.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.392e-05/0.1983, allocations: 43.12 kB / 362 MB, free: 8.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 4.99e-06/0.1983, allocations: 3.938 kB / 362 MB, free: 8.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=103): time 0.01082/0.2091, allocations: 3.134 MB / 365.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.976e-05/0.2093, allocations: 60.41 kB / 365.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.2097, allocations: 255 kB / 365.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.625e-05/0.2098, allocations: 41.7 kB / 365.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002188/0.21, allocations: 201.2 kB / 365.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/0.2104, allocations: 350.8 kB / 366 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000388/0.2108, allocations: 142.7 kB / 366.1 MB, free: 4.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003782/0.2112, allocations: 362.8 kB / 366.5 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008724/0.2121, allocations: 269.9 kB / 366.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009435/0.213, allocations: 353.4 kB / 367.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.2148, allocations: 0.6234 MB / 367.7 MB, free: 2.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2148, allocations: 0 / 367.7 MB, free: 2.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002322/0.2171, allocations: 0.782 MB / 368.5 MB, free: 1.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.2172, allocations: 6.969 kB / 368.5 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.2172, allocations: 7.875 kB / 368.5 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.165e-05/0.2173, allocations: 4 kB / 368.5 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.2185, allocations: 211.7 kB / 368.7 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.2185, allocations: 4 kB / 368.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005915/0.2191, allocations: 51.95 kB / 368.8 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.2192, allocations: 24 kB / 368.8 MB, free: 1.312 MB / 302.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.0003906/0.2196, allocations: 197.7 kB / 369 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.2197, allocations: 51.42 kB / 369.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.22, allocations: 73.34 kB / 369.1 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.22, allocations: 12 kB / 369.1 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-05/0.22, allocations: 3.984 kB / 369.1 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.667e-05/0.2201, allocations: 7.984 kB / 369.2 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3256/0.5457, allocations: 1.988 MB / 371.1 MB, free: 25.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.5458, allocations: 4.469 kB / 371.1 MB, free: 25.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/0.5471, allocations: 204.4 kB / 371.3 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.208e-05/0.5472, allocations: 9.094 kB / 371.4 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-05/0.5473, allocations: 31.42 kB / 371.4 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.138e-05/0.5473, allocations: 14.36 kB / 371.4 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/0.5474, allocations: 7.438 kB / 371.4 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004022/0.5514, allocations: 1.375 MB / 372.8 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002565/0.5517, allocations: 123.1 kB / 372.9 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.5518, allocations: 27.25 kB / 372.9 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006371/0.5524, allocations: 56.53 kB / 373 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/0.5527, allocations: 70.2 kB / 373.1 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.882e-05/0.5528, allocations: 32.38 kB / 373.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003019/0.5531, allocations: 176.3 kB / 373.3 MB, free: 24.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5531, allocations: 3.719 kB / 373.3 MB, free: 24.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009109/0.5541, allocations: 154.7 kB / 373.4 MB, free: 24.7 MB / 302.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.003851/0.5579, allocations: 1.946 MB / 375.4 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003223/0.5612, allocations: 0.7718 MB / 376.1 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/0.5612, allocations: 4.984 kB / 376.1 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.5626, allocations: 448.3 kB / 376.6 MB, free: 23.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.5639, allocations: 115.1 kB / 376.7 MB, free: 23.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/0.5765, allocations: 5.319 MB / 382 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006011/0.5772, allocations: 0.8647 MB / 382.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006772/0.5779, allocations: 79.09 kB / 382.9 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006191/0.5785, allocations: 199.6 kB / 383.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of SimCode: time 1.833e-06/0.5785, allocations: 4 kB / 383.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1174/0.6959, allocations: 11.35 MB / 394.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/14.9, allocations: 12.05 kB / 394.5 MB, free: 13.58 MB / 302.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