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.001595/0.001595, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002108/0.002108, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 60.02 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.007548/0.1201, allocations: 3.654 MB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002493/0.1226, allocations: 0.9549 MB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006859/0.1233, allocations: 11.94 kB / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003843/0.1238, allocations: 83.16 kB / 362.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008752/0.1247, allocations: 158.5 kB / 362.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006881/0.1254, allocations: 163.7 kB / 362.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009069/0.1263, allocations: 0.6268 MB / 363.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004519/0.1268, allocations: 193.5 kB / 363.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005271/0.1273, allocations: 251.1 kB / 363.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004854/0.1278, allocations: 278.8 kB / 363.9 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.128, allocations: 52 kB / 364 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.1281, allocations: 52 kB / 364 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.1283, allocations: 127.5 kB / 364.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003391/0.1286, allocations: 282.7 kB / 364.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008062/0.1294, allocations: 0.6191 MB / 365.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.36e-05/0.1295, allocations: 0 / 365.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.948e-06/0.1295, allocations: 0 / 365.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.1295, allocations: 0 / 365.1 MB, free: 6.512 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001694/0.1312, allocations: 0.834 MB / 365.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1313, allocations: 8.031 kB / 365.9 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.1314, allocations: 90.7 kB / 366 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.1317, allocations: 68.27 kB / 366 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005435/0.1322, allocations: 346.4 kB / 366.4 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.1323, allocations: 37 kB / 366.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.284e-05/0.1324, allocations: 48 kB / 366.5 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000768/0.1331, allocations: 430.3 kB / 366.9 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.1332, allocations: 3.906 kB / 366.9 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.114e-05/0.1332, allocations: 16 kB / 366.9 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1332, allocations: 12 kB / 366.9 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007139/0.134, allocations: 391.8 kB / 367.3 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002468/0.1364, allocations: 1.39 MB / 368.7 MB, free: 2.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008828/0.1373, allocations: 0.5197 MB / 369.2 MB, free: 2.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000637/0.138, allocations: 336.1 kB / 369.5 MB, free: 1.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.675e-05/0.138, allocations: 12.66 kB / 369.6 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.1381, allocations: 43.16 kB / 369.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=71): time 2.254e-06/0.1381, allocations: 4 kB / 369.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=107): time 0.227/0.3651, allocations: 2.991 MB / 372.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.3652, allocations: 63.53 kB / 372.7 MB, free: 19.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/0.3655, allocations: 282 kB / 372.9 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.3656, allocations: 41.95 kB / 373 MB, free: 19.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.3657, allocations: 206.7 kB / 373.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/0.366, allocations: 358.7 kB / 373.5 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002394/0.3662, allocations: 148.9 kB / 373.7 MB, free: 19.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3664, allocations: 365 kB / 374 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004888/0.3669, allocations: 238 kB / 374.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005387/0.3674, allocations: 315.7 kB / 374.6 MB, free: 18.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.3686, allocations: 0.5802 MB / 375.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3686, allocations: 0 / 375.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001187/0.3698, allocations: 0.7378 MB / 375.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.3698, allocations: 5.594 kB / 375.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3698, allocations: 0 / 375.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.3698, allocations: 6.25 kB / 375.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008595/0.3707, allocations: 196 kB / 376.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.3707, allocations: 10.66 kB / 376.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.3711, allocations: 28.58 kB / 376.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.602e-05/0.3711, allocations: 35.41 kB / 376.2 MB, free: 18.07 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 (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.0002146/0.3714, allocations: 199.6 kB / 376.4 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.543e-05/0.3715, allocations: 58.28 kB / 376.4 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001441/0.3716, allocations: 78.11 kB / 376.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.3716, allocations: 10.28 kB / 376.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/0.3717, allocations: 0 / 376.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.3717, allocations: 7.531 kB / 376.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002986/0.3747, allocations: 1.968 MB / 378.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.3747, allocations: 4.906 kB / 378.5 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/0.3755, allocations: 190 kB / 378.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.375e-05/0.3755, allocations: 8.406 kB / 378.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/0.3756, allocations: 31.34 kB / 378.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.316e-05/0.3756, allocations: 12.47 kB / 378.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3756, allocations: 4.281 kB / 378.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.3774, allocations: 1.295 MB / 380 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.3775, allocations: 130.7 kB / 380.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.546e-05/0.3776, allocations: 28.8 kB / 380.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.378, allocations: 30.97 kB / 380.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.3781, allocations: 74.19 kB / 380.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.816e-05/0.3781, allocations: 34.36 kB / 380.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000181/0.3783, allocations: 198.4 kB / 380.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3783, allocations: 0 / 380.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006228/0.379, allocations: 157.5 kB / 380.7 MB, free: 15.64 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 (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.002022/0.381, allocations: 1.862 MB / 382.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.3828, allocations: 0.709 MB / 383.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.3829, allocations: 1.094 kB / 383.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006766/0.3835, allocations: 420.5 kB / 383.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.3847, allocations: 144.2 kB / 383.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007177/0.3918, allocations: 5.332 MB / 389.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.3923, allocations: 0.8792 MB / 390 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005144/0.3928, allocations: 82.47 kB / 390.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/0.3931, allocations: 214.6 kB / 390.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3931, allocations: 0 / 390.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03431/0.4274, allocations: 12.07 MB / 402.3 MB, free: 1.949 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.246/8.674, allocations: 7.625 kB / 402.4 MB, free: 1.945 MB / 302.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