Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002307/0.002307, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00286/0.00286, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 47.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2676, allocations: 53.36 MB / 431.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.005544/0.2731, allocations: 3.69 MB / 434.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.2753, allocations: 0.9587 MB / 435.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005502/0.2759, allocations: 11.94 kB / 435.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004039/0.2763, allocations: 83.16 kB / 435.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000681/0.277, allocations: 162.5 kB / 436 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007145/0.2777, allocations: 163.7 kB / 436.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009889/0.2787, allocations: 0.6384 MB / 436.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003524/0.279, allocations: 142 kB / 437 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005217/0.2796, allocations: 263.1 kB / 437.2 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004693/0.28, allocations: 282.8 kB / 437.5 MB, free: 500 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.2801, allocations: 52 kB / 437.6 MB, free: 448 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.2803, allocations: 56 kB / 437.6 MB, free: 392 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.2804, allocations: 127.5 kB / 437.7 MB, free: 264 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003441/0.2807, allocations: 278.8 kB / 438 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007721/0.2815, allocations: 0.6318 MB / 438.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2815, allocations: 0 / 438.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2815, allocations: 4 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.619e-05/0.2815, allocations: 0 / 438.6 MB, free: 15.34 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001792/0.2833, allocations: 0.7737 MB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.2834, allocations: 8.031 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.2835, allocations: 90.64 kB / 439.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.2837, allocations: 76.55 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005823/0.2843, allocations: 285.6 kB / 439.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.2844, allocations: 40.94 kB / 439.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.96e-05/0.2845, allocations: 51.95 kB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007794/0.2852, allocations: 418.4 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.2853, allocations: 0 / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.053e-05/0.2853, allocations: 20 kB / 440.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.2853, allocations: 12 kB / 440.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007137/0.286, allocations: 391.8 kB / 440.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.2885, allocations: 1.344 MB / 442.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007973/0.2893, allocations: 483.2 kB / 442.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006647/0.29, allocations: 304.1 kB / 442.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.351e-05/0.29, allocations: 16.62 kB / 442.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.29, allocations: 47.16 kB / 443 MB, free: 10.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=71): time 2.154e-06/0.2901, allocations: 4 kB / 443 MB, free: 10.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=107): time 0.006585/0.2966, allocations: 2.857 MB / 445.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.2967, allocations: 64.41 kB / 445.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.297, allocations: 288.5 kB / 446.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.363e-05/0.2971, allocations: 37.7 kB / 446.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.2972, allocations: 209.6 kB / 446.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.2976, allocations: 380.7 kB / 446.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.2978, allocations: 150.6 kB / 446.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.2979, allocations: 362.8 kB / 447.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/0.2984, allocations: 237.9 kB / 447.5 MB, free: 6.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.2989, allocations: 317.4 kB / 447.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009552/0.2998, allocations: 0.5804 MB / 448.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2998, allocations: 0 / 448.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.00125/0.3011, allocations: 0.7354 MB / 449.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.3011, allocations: 8.062 kB / 449.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3011, allocations: 0 / 449.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.3011, allocations: 11.98 kB / 449.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007486/0.3019, allocations: 195.7 kB / 449.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/0.3019, allocations: 7.938 kB / 449.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.3022, allocations: 31.98 kB / 449.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-05/0.3023, allocations: 24 kB / 449.4 MB, free: 4.312 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.0002992/0.3026, allocations: 213.5 kB / 449.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.3027, allocations: 59.67 kB / 449.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002223/0.3029, allocations: 77.62 kB / 449.7 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.3029, allocations: 12 kB / 449.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.303, allocations: 0 / 449.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.303, allocations: 3.984 kB / 449.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00318/0.3061, allocations: 1.906 MB / 451.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.3062, allocations: 8 kB / 451.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007709/0.3069, allocations: 187.7 kB / 451.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.688e-05/0.3069, allocations: 12.59 kB / 451.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.381e-05/0.307, allocations: 27.98 kB / 451.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.269e-05/0.307, allocations: 15.94 kB / 451.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/0.307, allocations: 8 kB / 451.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/0.3091, allocations: 1.295 MB / 453.2 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.3092, allocations: 55.5 kB / 453.3 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.198e-05/0.3093, allocations: 28.05 kB / 453.3 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003509/0.3096, allocations: 35.98 kB / 453.3 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.3098, allocations: 76.75 kB / 453.4 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.797e-05/0.3098, allocations: 32 kB / 453.4 MB, free: 88 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000231/0.3101, allocations: 203 kB / 453.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3101, allocations: 0 / 453.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005512/0.3106, allocations: 160 kB / 453.8 MB, free: 15.73 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 (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.002376/0.313, allocations: 1.866 MB / 455.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.3142, allocations: 0.6372 MB / 456.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3142, allocations: 0 / 456.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006504/0.3148, allocations: 386.7 kB / 456.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000854/0.3157, allocations: 143 kB / 456.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008167/0.3239, allocations: 5.27 MB / 462.1 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.3244, allocations: 0.8764 MB / 463 MB, free: 6.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003354/0.3248, allocations: 81.2 kB / 463 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003439/0.3251, allocations: 215.4 kB / 463.2 MB, free: 5.957 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3251, allocations: 4 kB / 463.3 MB, free: 5.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05237/0.3775, allocations: 13.06 MB / 476.3 MB, free: 9.117 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.28, allocations: 12.05 kB / 476.3 MB, free: 9.105 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.71959575614892]