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.001301/0.001301, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.001309/0.001309, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.382/1.382, allocations: 225.6 MB / 249.1 MB, free: 3.586 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.001401/0.001401, allocations: 47.92 kB / 365.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09399/0.09539, allocations: 52.15 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004637/0.1, allocations: 3.559 MB / 421.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.1017, allocations: 0.8878 MB / 422.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.1019, allocations: 12 kB / 422.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002153/0.1021, allocations: 75.17 kB / 422.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.1024, allocations: 146.7 kB / 422.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004476/0.1029, allocations: 151.7 kB / 422.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006342/0.1035, allocations: 0.5997 MB / 423.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002973/0.1038, allocations: 141.5 kB / 423.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003482/0.1041, allocations: 247.1 kB / 423.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.1045, allocations: 270.9 kB / 423.8 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.672e-05/0.1046, allocations: 52 kB / 423.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.866e-05/0.1046, allocations: 48 kB / 423.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.1047, allocations: 123.6 kB / 424.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002729/0.105, allocations: 270.7 kB / 424.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006859/0.1057, allocations: 0.5991 MB / 424.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1057, allocations: 3.984 kB / 424.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1057, allocations: 0 / 424.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1057, allocations: 0 / 424.9 MB, free: 5.391 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.001658/0.1074, allocations: 0.857 MB / 425.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.1074, allocations: 8.031 kB / 425.8 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.1075, allocations: 86.7 kB / 425.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.246e-05/0.1076, allocations: 60.55 kB / 425.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.1081, allocations: 331.4 kB / 426.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.35e-05/0.1082, allocations: 37.38 kB / 426.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.1082, allocations: 48.33 kB / 426.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008691/0.1091, allocations: 462.5 kB / 426.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.1091, allocations: 4 kB / 426.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.1092, allocations: 16 kB / 426.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.1092, allocations: 15.94 kB / 426.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009987/0.1102, allocations: 459.6 kB / 427.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.1126, allocations: 1.379 MB / 428.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000952/0.1135, allocations: 0.498 MB / 429.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000767/0.1143, allocations: 353.1 kB / 429.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.131e-05/0.1143, allocations: 12.55 kB / 429.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.1144, allocations: 39.12 kB / 429.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.065e-06/0.1144, allocations: 0 / 429.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.00715/0.1215, allocations: 3.16 MB / 432.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.1216, allocations: 60.41 kB / 432.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.1218, allocations: 255 kB / 433 MB, free: 13.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.1219, allocations: 41.7 kB / 433.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.122, allocations: 205.5 kB / 433.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.1223, allocations: 360.8 kB / 433.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001957/0.1225, allocations: 142.7 kB / 433.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1227, allocations: 358.8 kB / 434.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005729/0.1232, allocations: 277.8 kB / 434.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006275/0.1239, allocations: 349.4 kB / 434.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.125, allocations: 0.6234 MB / 435.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.125, allocations: 0 / 435.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001452/0.1265, allocations: 0.7861 MB / 436.1 MB, free: 9.859 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1265, allocations: 4 kB / 436.1 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1265, allocations: 3.938 kB / 436.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.1265, allocations: 8 kB / 436.1 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007759/0.1273, allocations: 207.8 kB / 436.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.1273, allocations: 7.938 kB / 436.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003351/0.1276, allocations: 43.97 kB / 436.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.84e-05/0.1277, allocations: 31.98 kB / 436.4 MB, free: 9.559 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.0002506/0.1279, allocations: 193.7 kB / 436.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.871e-05/0.128, allocations: 51.67 kB / 436.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.1282, allocations: 81.33 kB / 436.7 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.1282, allocations: 15.98 kB / 436.8 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.1282, allocations: 0 / 436.8 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1282, allocations: 7.922 kB / 436.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.1313, allocations: 1.98 MB / 438.7 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.1313, allocations: 4 kB / 438.7 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007886/0.1321, allocations: 203.7 kB / 438.9 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-05/0.1321, allocations: 8 kB / 439 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.386e-05/0.1322, allocations: 35.92 kB / 439 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.237e-05/0.1322, allocations: 11.94 kB / 439 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.1322, allocations: 4 kB / 439 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.1345, allocations: 1.38 MB / 440.4 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.1346, allocations: 128.8 kB / 440.5 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.592e-05/0.1347, allocations: 31.92 kB / 440.5 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003795/0.1351, allocations: 44.09 kB / 440.6 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.1352, allocations: 84.78 kB / 440.7 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.536e-05/0.1352, allocations: 28 kB / 440.7 MB, free: 5.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001801/0.1354, allocations: 178 kB / 440.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1354, allocations: 0 / 440.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004905/0.1359, allocations: 156 kB / 441 MB, free: 4.734 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.00262/0.1385, allocations: 1.944 MB / 443 MB, free: 2.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.14, allocations: 0.6918 MB / 443.7 MB, free: 2.012 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.14, allocations: 4.125 kB / 443.7 MB, free: 2.008 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007832/0.1408, allocations: 417.3 kB / 444.1 MB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007895/0.1416, allocations: 121.9 kB / 444.2 MB, free: 1.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1732/0.3148, allocations: 5.277 MB / 449.5 MB, free: 29.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.3151, allocations: 0.8674 MB / 450.3 MB, free: 28.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003052/0.3154, allocations: 77.02 kB / 450.4 MB, free: 28.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.3156, allocations: 198 kB / 450.6 MB, free: 28.56 MB / 366.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3156, allocations: 0 / 450.6 MB, free: 28.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3081/0.6237, allocations: 11.66 MB / 462.3 MB, free: 26.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.742/9.365, allocations: 5.781 kB / 462.3 MB, free: 26.21 MB / 366.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.867738449946046]