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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00202/0.00202, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 47.92 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1371, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004814/0.1419, allocations: 3.557 MB / 421.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1435, allocations: 0.8878 MB / 422.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.1437, allocations: 11.94 kB / 422.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.1439, allocations: 83.16 kB / 422.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002602/0.1442, allocations: 142.7 kB / 422.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/0.1446, allocations: 151.7 kB / 422.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006306/0.1452, allocations: 0.5996 MB / 423.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.1455, allocations: 141.5 kB / 423.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.1458, allocations: 251.2 kB / 423.6 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003326/0.1461, allocations: 266.9 kB / 423.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.333e-05/0.1462, allocations: 52 kB / 423.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.843e-05/0.1462, allocations: 55.94 kB / 424 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.1464, allocations: 123.6 kB / 424.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002425/0.1466, allocations: 270.7 kB / 424.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006417/0.1472, allocations: 0.5952 MB / 424.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1472, allocations: 0 / 424.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1472, allocations: 0 / 424.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.1473, allocations: 0 / 424.9 MB, free: 5.426 MB / 350.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.001708/0.149, allocations: 0.8648 MB / 425.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.149, allocations: 12.03 kB / 425.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.1491, allocations: 82.7 kB / 425.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.738e-05/0.1492, allocations: 60.55 kB / 425.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004868/0.1497, allocations: 327.5 kB / 426.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.883e-05/0.1497, allocations: 37.38 kB / 426.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-05/0.1498, allocations: 56.31 kB / 426.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009311/0.1508, allocations: 458.5 kB / 426.8 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.1508, allocations: 0 / 426.8 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.562e-05/0.1508, allocations: 20 kB / 426.8 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.1509, allocations: 12 kB / 426.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.152, allocations: 459.7 kB / 427.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.1544, allocations: 1.367 MB / 428.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.1554, allocations: 0.502 MB / 429.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008385/0.1563, allocations: 350.8 kB / 429.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.877e-05/0.1563, allocations: 8.562 kB / 429.5 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.1563, allocations: 47.06 kB / 429.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.884e-06/0.1563, allocations: 0 / 429.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007625/0.164, allocations: 3.156 MB / 432.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.164, allocations: 64.41 kB / 432.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.1643, allocations: 247 kB / 433 MB, free: 13.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.1643, allocations: 45.7 kB / 433.1 MB, free: 13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.1645, allocations: 201.4 kB / 433.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002933/0.1648, allocations: 364.8 kB / 433.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.165, allocations: 142.7 kB / 433.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1652, allocations: 366.8 kB / 434.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006184/0.1658, allocations: 273.8 kB / 434.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006807/0.1665, allocations: 349.3 kB / 434.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.1678, allocations: 0.6196 MB / 435.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1678, allocations: 0 / 435.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001571/0.1693, allocations: 0.7861 MB / 436.1 MB, free: 9.895 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1694, allocations: 4 kB / 436.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1694, allocations: 7.938 kB / 436.1 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.1694, allocations: 4.062 kB / 436.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008008/0.1702, allocations: 211.7 kB / 436.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1702, allocations: 4 kB / 436.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003456/0.1705, allocations: 47.95 kB / 436.4 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-05/0.1706, allocations: 28 kB / 436.4 MB, free: 9.594 MB / 366.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.0002553/0.1708, allocations: 193.6 kB / 436.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.762e-05/0.1709, allocations: 59.67 kB / 436.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.1711, allocations: 81.33 kB / 436.7 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.1711, allocations: 8 kB / 436.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.1712, allocations: 0 / 436.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.1712, allocations: 7.969 kB / 436.8 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003224/0.1744, allocations: 1.98 MB / 438.7 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.1744, allocations: 4 kB / 438.7 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008389/0.1752, allocations: 203.7 kB / 438.9 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.1752, allocations: 8 kB / 439 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.515e-05/0.1753, allocations: 31.92 kB / 439 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/0.1753, allocations: 11.94 kB / 439 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.1753, allocations: 4 kB / 439 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002403/0.1777, allocations: 1.384 MB / 440.4 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.1778, allocations: 128.8 kB / 440.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.644e-05/0.1779, allocations: 35.92 kB / 440.5 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003971/0.1783, allocations: 43.97 kB / 440.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.1785, allocations: 80.78 kB / 440.7 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-05/0.1785, allocations: 31.98 kB / 440.7 MB, free: 5.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001847/0.1787, allocations: 178 kB / 440.9 MB, free: 4.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1787, allocations: 0 / 440.9 MB, free: 4.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005125/0.1792, allocations: 152 kB / 441 MB, free: 4.77 MB / 366.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.002763/0.182, allocations: 1.944 MB / 443 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.1834, allocations: 0.6918 MB / 443.7 MB, free: 2.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1834, allocations: 8.062 kB / 443.7 MB, free: 2.039 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007883/0.1842, allocations: 414.6 kB / 444.1 MB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007624/0.185, allocations: 117.9 kB / 444.2 MB, free: 1.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1917/0.3767, allocations: 5.285 MB / 449.5 MB, free: 29.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.377, allocations: 0.8687 MB / 450.3 MB, free: 28.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003054/0.3773, allocations: 75.84 kB / 450.4 MB, free: 28.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002583/0.3776, allocations: 195 kB / 450.6 MB, free: 28.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3776, allocations: 0 / 450.6 MB, free: 28.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04342/0.421, allocations: 11.66 MB / 462.3 MB, free: 26.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.012/9.433, allocations: 15.41 kB / 462.3 MB, free: 26.46 MB / 366.1 MB " [Timeout remaining time 650] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable innerContactA.s_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv. Warning: Get data of variable innerContactA.s_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv failed! Error: Could not read variable innerContactB.s_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv. Warning: Get data of variable innerContactB.s_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv failed! Error: Could not read variable outerContactB.v_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv. Warning: Get data of variable outerContactB.v_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.159372671041638]