Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.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.005968/0.005968, allocations: 114.3 kB / 21.97 MB, free: 5.227 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.001423/0.001423, allocations: 216.3 kB / 25.28 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 207.6 MB / 236.1 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 55.92 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.259, allocations: 49.16 MB / 397.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003099/0.2621, allocations: 2.607 MB / 399.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000703/0.2628, allocations: 370.8 kB / 400.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.2629, allocations: 9.312 kB / 400.1 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.2631, allocations: 59.28 kB / 400.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.2633, allocations: 91.2 kB / 400.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.2636, allocations: 92.98 kB / 400.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003881/0.264, allocations: 377.3 kB / 400.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.2642, allocations: 94.61 kB / 400.8 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.2643, allocations: 145.5 kB / 400.9 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.2646, allocations: 165.9 kB / 401.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.109e-05/0.2646, allocations: 30 kB / 401.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.398e-05/0.2647, allocations: 30.28 kB / 401.2 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.783e-05/0.2648, allocations: 73.45 kB / 401.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.2649, allocations: 162 kB / 401.4 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.2654, allocations: 374.7 kB / 401.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2654, allocations: 0 / 401.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2654, allocations: 0 / 401.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.2654, allocations: 1.062 kB / 401.8 MB, free: 6.043 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009621/0.2663, allocations: 0.5569 MB / 402.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.2664, allocations: 18.55 kB / 402.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.778e-05/0.2664, allocations: 6.906 kB / 402.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.383e-05/0.2665, allocations: 66.47 kB / 402.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.034e-05/0.2665, allocations: 39.09 kB / 402.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.2668, allocations: 211.1 kB / 402.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.2668, allocations: 21.5 kB / 402.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.873e-05/0.2669, allocations: 29.67 kB / 402.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005109/0.2674, allocations: 286.9 kB / 403 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.2674, allocations: 5.156 kB / 403 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.2674, allocations: 14.56 kB / 403 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.2675, allocations: 6.25 kB / 403 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005737/0.268, allocations: 268.1 kB / 403.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.2692, allocations: 0.7612 MB / 404 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005503/0.2698, allocations: 325.2 kB / 404.4 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.2701, allocations: 179.4 kB / 404.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.2701, allocations: 13.45 kB / 404.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.2701, allocations: 31.88 kB / 404.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.714e-06/0.2701, allocations: 1.375 kB / 404.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003996/0.2741, allocations: 1.823 MB / 406.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.2742, allocations: 59.03 kB / 406.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.2744, allocations: 201.7 kB / 406.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.2744, allocations: 36.61 kB / 406.7 MB, free: 3.277 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.2745, allocations: 144.7 kB / 406.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.2746, allocations: 228.1 kB / 407 MB, free: 2.969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.2747, allocations: 96.97 kB / 407.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.2748, allocations: 344.4 kB / 407.5 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/0.2751, allocations: 159.1 kB / 407.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.2754, allocations: 172.5 kB / 407.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005893/0.276, allocations: 383.6 kB / 408.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.276, allocations: 3.938 kB / 408.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007613/0.2768, allocations: 486 kB / 408.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2768, allocations: 7.297 kB / 408.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.2768, allocations: 0 / 408.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.2768, allocations: 1.844 kB / 408.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/0.2772, allocations: 126.6 kB / 408.8 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.2772, allocations: 2.531 kB / 408.8 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.2774, allocations: 28.17 kB / 408.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.2775, allocations: 20.48 kB / 408.8 MB, free: 2.062 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap2.contact,elastoGap1.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0001345/0.2776, allocations: 157.6 kB / 409 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/0.2777, allocations: 33.94 kB / 409 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.793e-05/0.2778, allocations: 46.28 kB / 409.1 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.2778, allocations: 10.28 kB / 409.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.2778, allocations: 0 / 409.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.2778, allocations: 9.281 kB / 409.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.2795, allocations: 1.269 MB / 410.4 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.2795, allocations: 11.94 kB / 410.4 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004495/0.28, allocations: 123.4 kB / 410.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.28, allocations: 11.59 kB / 410.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.213e-05/0.28, allocations: 16.88 kB / 410.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.909e-06/0.28, allocations: 9.406 kB / 410.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.28, allocations: 4.625 kB / 410.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.2812, allocations: 0.8823 MB / 411.4 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.406e-05/0.2812, allocations: 40.2 kB / 411.5 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.2813, allocations: 25.47 kB / 411.5 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.2815, allocations: 26.78 kB / 411.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.362e-05/0.2816, allocations: 54.77 kB / 411.6 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/0.2816, allocations: 22.06 kB / 411.6 MB, free: 420 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.299e-05/0.2817, allocations: 142.5 kB / 411.7 MB, free: 324 kB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2817, allocations: 0 / 411.7 MB, free: 324 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003833/0.2821, allocations: 98.5 kB / 411.8 MB, free: 304 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.001595/0.2837, allocations: 1.429 MB / 413.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008223/0.2845, allocations: 428.1 kB / 413.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2845, allocations: 1.469 kB / 413.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004119/0.285, allocations: 243.9 kB / 413.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000642/0.2856, allocations: 79.89 kB / 414 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00508/0.2907, allocations: 3.686 MB / 417.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.2911, allocations: 0.7937 MB / 418.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002048/0.2913, allocations: 47.66 kB / 418.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.2915, allocations: 123.3 kB / 418.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2915, allocations: 0 / 418.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0321/0.3236, allocations: 8.003 MB / 426.6 MB, free: 5.051 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.94, allocations: 4.062 kB / 426.6 MB, free: 5.047 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.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: 13.238793416996486]