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.001786/0.001786, allocations: 107.6 kB / 21.18 MB, free: 0.5781 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.002425/0.002425, allocations: 217 kB / 24.48 MB, free: 3.867 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.315/1.315, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",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.00178/0.00178, allocations: 51.92 kB / 347.2 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2392, allocations: 49.15 MB / 396.3 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003303/0.2425, allocations: 2.403 MB / 398.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006587/0.2431, allocations: 368.7 kB / 399.1 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.2432, allocations: 9.219 kB / 399.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.2434, allocations: 51 kB / 399.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.2435, allocations: 99.73 kB / 399.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.2439, allocations: 90.41 kB / 399.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.2442, allocations: 373 kB / 399.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.2444, allocations: 81.52 kB / 399.8 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.2446, allocations: 146 kB / 399.9 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.2449, allocations: 150.1 kB / 400.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.799e-05/0.2449, allocations: 29.41 kB / 400.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.275e-05/0.245, allocations: 29.94 kB / 400.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.279e-05/0.245, allocations: 70.95 kB / 400.2 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.2452, allocations: 137 kB / 400.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.2457, allocations: 383.6 kB / 400.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2457, allocations: 0 / 400.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.2457, allocations: 1.156 kB / 400.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.2457, allocations: 0 / 400.7 MB, free: 6.23 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.001003/0.2467, allocations: 0.5541 MB / 401.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2467, allocations: 13.42 kB / 401.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.179e-05/0.2468, allocations: 66.48 kB / 401.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.933e-05/0.2468, allocations: 38.7 kB / 401.4 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.2472, allocations: 214.9 kB / 401.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.2472, allocations: 20.88 kB / 401.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.426e-05/0.2472, allocations: 32.28 kB / 401.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.2478, allocations: 281.3 kB / 401.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.2478, allocations: 5.062 kB / 401.9 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.2478, allocations: 14.8 kB / 401.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.467e-06/0.2478, allocations: 6.344 kB / 401.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.2484, allocations: 265.1 kB / 402.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.2495, allocations: 0.7002 MB / 402.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005223/0.25, allocations: 322.2 kB / 403.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004042/0.2504, allocations: 180.5 kB / 403.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.2505, allocations: 4.875 kB / 403.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.2505, allocations: 36.75 kB / 403.4 MB, free: 4.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.344e-06/0.2505, allocations: 0 / 403.4 MB, free: 4.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003969/0.2545, allocations: 1.832 MB / 405.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.2545, allocations: 58.64 kB / 405.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.2547, allocations: 199.4 kB / 405.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.2547, allocations: 40.02 kB / 405.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.062e-05/0.2547, allocations: 144 kB / 405.7 MB, free: 3.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.2549, allocations: 229.9 kB / 405.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.255, allocations: 91.69 kB / 406 MB, free: 3.129 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.75e-05/0.255, allocations: 349.3 kB / 406.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.2553, allocations: 162.5 kB / 406.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.2556, allocations: 176.7 kB / 406.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.2562, allocations: 372.2 kB / 407 MB, free: 2.516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2563, allocations: 0 / 407 MB, free: 2.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007518/0.257, allocations: 494 kB / 407.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.257, allocations: 7.047 kB / 407.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.257, allocations: 0 / 407.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.257, allocations: 2.594 kB / 407.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004514/0.2575, allocations: 122.6 kB / 407.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.2575, allocations: 2.781 kB / 407.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.2577, allocations: 26.47 kB / 407.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.2577, allocations: 16.59 kB / 407.7 MB, free: 2.281 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.0001259/0.2579, allocations: 171.3 kB / 407.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.864e-05/0.2579, allocations: 32.97 kB / 407.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.856e-05/0.258, allocations: 50.69 kB / 408 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.258, allocations: 6.531 kB / 408 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.258, allocations: 0.7031 kB / 408 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.258, allocations: 6.844 kB / 408 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001695/0.2597, allocations: 1.206 MB / 409.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.2597, allocations: 5.859 kB / 409.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004648/0.2602, allocations: 131.6 kB / 409.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.766e-06/0.2602, allocations: 6.594 kB / 409.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/0.2602, allocations: 17.28 kB / 409.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.2603, allocations: 8.266 kB / 409.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.2603, allocations: 9.641 kB / 409.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.2614, allocations: 0.878 MB / 410.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.778e-05/0.2614, allocations: 40.09 kB / 410.3 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/0.2615, allocations: 17.19 kB / 410.3 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.2617, allocations: 34.53 kB / 410.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.2618, allocations: 53.22 kB / 410.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.2618, allocations: 27.16 kB / 410.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.388e-05/0.2619, allocations: 141.6 kB / 410.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2619, allocations: 4 kB / 410.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000446/0.2624, allocations: 95.84 kB / 410.6 MB, free: 0.5391 MB / 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.001489/0.2639, allocations: 1.435 MB / 412.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008367/0.2647, allocations: 425.5 kB / 412.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2647, allocations: 0 / 412.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004213/0.2651, allocations: 240.5 kB / 412.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006438/0.2658, allocations: 79.62 kB / 412.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0053/0.2711, allocations: 3.689 MB / 416.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.2713, allocations: 184.4 kB / 416.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002189/0.2715, allocations: 48.19 kB / 416.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.2717, allocations: 118.2 kB / 416.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2717, allocations: 0 / 416.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04004/0.3117, allocations: 8.355 MB / 425.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.74, allocations: 4 kB / 425.2 MB, free: 5.516 MB / 334.1 MB " [Timeout remaining time 648] (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: 14.019692971836776]