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.004917/0.004917, allocations: 100.7 kB / 21.96 MB, free: 5.211 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.001288/0.001288, allocations: 217.5 kB / 25.26 MB, free: 3.141 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.344/1.344, allocations: 207.7 MB / 236.1 MB, free: 9.812 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.001738/0.001738, allocations: 62.58 kB / 348 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2422, allocations: 49.15 MB / 397.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002996/0.2452, allocations: 2.391 MB / 399.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005953/0.2458, allocations: 367.4 kB / 399.9 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.2459, allocations: 9.406 kB / 399.9 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.246, allocations: 50.12 kB / 399.9 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.2462, allocations: 91.84 kB / 400 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002638/0.2464, allocations: 94.02 kB / 400.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000324/0.2468, allocations: 381.6 kB / 400.5 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.2469, allocations: 85.53 kB / 400.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.2471, allocations: 150.5 kB / 400.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.2473, allocations: 161 kB / 400.9 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.029e-05/0.2473, allocations: 30.41 kB / 400.9 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.684e-05/0.2474, allocations: 29.88 kB / 400.9 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.2474, allocations: 73.78 kB / 401 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.2476, allocations: 137.4 kB / 401.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004176/0.248, allocations: 375.1 kB / 401.5 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.248, allocations: 1.406 kB / 401.5 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.248, allocations: 0 / 401.5 MB, free: 6.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.248, allocations: 0.6562 kB / 401.5 MB, free: 6.199 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.0009634/0.249, allocations: 0.5613 MB / 402.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.249, allocations: 13.56 kB / 402.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.678e-05/0.249, allocations: 12.31 kB / 402.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.748e-05/0.2491, allocations: 66.72 kB / 402.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.561e-05/0.2491, allocations: 38.3 kB / 402.2 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.2495, allocations: 210.9 kB / 402.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.2495, allocations: 20.97 kB / 402.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.541e-05/0.2496, allocations: 30.7 kB / 402.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005747/0.2502, allocations: 280.8 kB / 402.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.2502, allocations: 5.094 kB / 402.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.2502, allocations: 16.28 kB / 402.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.2502, allocations: 5.719 kB / 402.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005813/0.2508, allocations: 269 kB / 403 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.2519, allocations: 0.6967 MB / 403.7 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005642/0.2525, allocations: 333.8 kB / 404 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.2528, allocations: 174.8 kB / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.2529, allocations: 4.281 kB / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.2529, allocations: 39 kB / 404.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.472e-06/0.2529, allocations: 0 / 404.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003757/0.2566, allocations: 1.829 MB / 406.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.2567, allocations: 57.56 kB / 406.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.2568, allocations: 203.2 kB / 406.3 MB, free: 3.488 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.2569, allocations: 36.45 kB / 406.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.2569, allocations: 147.7 kB / 406.5 MB, free: 3.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.257, allocations: 230.2 kB / 406.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.2571, allocations: 95.41 kB / 406.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.031e-05/0.2572, allocations: 340.1 kB / 407.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.2575, allocations: 164.3 kB / 407.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.2578, allocations: 168.1 kB / 407.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005805/0.2584, allocations: 375.8 kB / 407.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2584, allocations: 4 kB / 407.9 MB, free: 2.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000728/0.2591, allocations: 494.4 kB / 408.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.2591, allocations: 6.156 kB / 408.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.2591, allocations: 0 / 408.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.2591, allocations: 2.75 kB / 408.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/0.2596, allocations: 122.8 kB / 408.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.2596, allocations: 2.844 kB / 408.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.2598, allocations: 34.16 kB / 408.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.2598, allocations: 18.09 kB / 408.5 MB, free: 2.234 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.0001184/0.2599, allocations: 154.3 kB / 408.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.036e-05/0.26, allocations: 37.28 kB / 408.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.1e-05/0.2601, allocations: 46.62 kB / 408.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2601, allocations: 6.188 kB / 408.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.2601, allocations: 4 kB / 408.8 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.2601, allocations: 16.3 kB / 408.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.2617, allocations: 1.206 MB / 410 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.2617, allocations: 12.22 kB / 410 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.2622, allocations: 123.8 kB / 410.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.2622, allocations: 7.422 kB / 410.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.2622, allocations: 16.97 kB / 410.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.816e-06/0.2622, allocations: 11.88 kB / 410.2 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.2622, allocations: 5.656 kB / 410.2 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.2633, allocations: 0.8833 MB / 411 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.2634, allocations: 39.31 kB / 411.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.142e-05/0.2634, allocations: 17.09 kB / 411.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.2637, allocations: 26.23 kB / 411.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.649e-05/0.2637, allocations: 58.3 kB / 411.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.2638, allocations: 26.28 kB / 411.2 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.988e-05/0.2639, allocations: 137.9 kB / 411.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2639, allocations: 1 kB / 411.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000362/0.2642, allocations: 98.78 kB / 411.4 MB, free: 0.5 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.00145/0.2657, allocations: 1.431 MB / 412.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007578/0.2664, allocations: 424.8 kB / 413.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2664, allocations: 1.031 kB / 413.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004149/0.2669, allocations: 239.9 kB / 413.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005955/0.2675, allocations: 84.53 kB / 413.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004913/0.2724, allocations: 3.678 MB / 417.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.2725, allocations: 184.6 kB / 417.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.2727, allocations: 60.67 kB / 417.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.273, allocations: 121.7 kB / 417.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.273, allocations: 0 / 417.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03252/0.3055, allocations: 8.161 MB / 425.8 MB, free: 5.691 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.03, allocations: 4.062 kB / 425.8 MB, free: 5.688 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.315551854087971]