Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001328, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 258.3 MB, free: 8.043 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002869/0.002869, allocations: 64.77 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3217, allocations: 53.37 MB / 431.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004414/0.3262, allocations: 2.703 MB / 434.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.328, allocations: 0.7326 MB / 435.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/0.3282, allocations: 7.938 kB / 435.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002523/0.3285, allocations: 47.5 kB / 435.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002932/0.3287, allocations: 115 kB / 435.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.3292, allocations: 91.83 kB / 435.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004788/0.3296, allocations: 386.3 kB / 436 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.3299, allocations: 79.58 kB / 436 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.33, allocations: 155.4 kB / 436.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.3303, allocations: 171.3 kB / 436.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.554e-05/0.3304, allocations: 32 kB / 436.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.964e-05/0.3304, allocations: 28 kB / 436.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.181e-05/0.3305, allocations: 71.77 kB / 436.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.3307, allocations: 179.1 kB / 436.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004645/0.3311, allocations: 383.2 kB / 437 MB, free: 1.871 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3311, allocations: 0 / 437 MB, free: 1.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3311, allocations: 0 / 437 MB, free: 1.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.3311, allocations: 0 / 437 MB, free: 1.871 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001064/0.3322, allocations: 0.552 MB / 437.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3323, allocations: 12.03 kB / 437.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.25e-05/0.3324, allocations: 70.66 kB / 437.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.37e-05/0.3324, allocations: 44.64 kB / 437.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.3329, allocations: 210.9 kB / 437.9 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.636e-05/0.3329, allocations: 24.78 kB / 438 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.167e-05/0.333, allocations: 35.95 kB / 438 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.3335, allocations: 262 kB / 438.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.3335, allocations: 3.984 kB / 438.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.3335, allocations: 12 kB / 438.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3335, allocations: 8 kB / 438.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00042/0.3339, allocations: 230.5 kB / 438.5 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.3353, allocations: 0.7562 MB / 439.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.3358, allocations: 319.5 kB / 439.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.3361, allocations: 157.5 kB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.3361, allocations: 8.359 kB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.024e-05/0.3362, allocations: 42.88 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.433e-06/0.3362, allocations: 0 / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003809/0.34, allocations: 1.772 MB / 441.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.3401, allocations: 64.05 kB / 441.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002506/0.3403, allocations: 203.3 kB / 441.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.3404, allocations: 33.7 kB / 441.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3405, allocations: 153.1 kB / 442 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.3407, allocations: 233.9 kB / 442.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.3408, allocations: 98.34 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.341, allocations: 342.8 kB / 442.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.3412, allocations: 149.2 kB / 442.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.3415, allocations: 149.9 kB / 442.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005617/0.3421, allocations: 350 kB / 443.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.3421, allocations: 0 / 443.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007386/0.3428, allocations: 469.1 kB / 443.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.3428, allocations: 4 kB / 443.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3428, allocations: 0 / 443.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.3428, allocations: 7.938 kB / 443.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.3433, allocations: 111.8 kB / 443.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3433, allocations: 4 kB / 443.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.3435, allocations: 23.98 kB / 443.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.3435, allocations: 20 kB / 443.9 MB, free: 10.78 MB / 350.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 (71): * Single equations (assignments): 71 * 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.0001916/0.3437, allocations: 161.7 kB / 444.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.617e-05/0.3438, allocations: 35.77 kB / 444.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.3439, allocations: 55.27 kB / 444.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3439, allocations: 8 kB / 444.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.3439, allocations: 0 / 444.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.3439, allocations: 7.969 kB / 444.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.3459, allocations: 1.265 MB / 445.4 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.3459, allocations: 4.562 kB / 445.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004598/0.3464, allocations: 119.8 kB / 445.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.3464, allocations: 8 kB / 445.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.3464, allocations: 19.98 kB / 445.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.989e-06/0.3464, allocations: 8 kB / 445.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3465, allocations: 11.88 kB / 445.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.3476, allocations: 0.8416 MB / 446.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.676e-05/0.3477, allocations: 35.77 kB / 446.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.496e-05/0.3478, allocations: 20.03 kB / 446.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.348, allocations: 20 kB / 446.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.2e-05/0.3481, allocations: 56.23 kB / 446.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.3481, allocations: 20 kB / 446.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.3483, allocations: 152.5 kB / 446.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3483, allocations: 0 / 446.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003896/0.3487, allocations: 104 kB / 446.8 MB, free: 7.648 MB / 350.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 (65): * Single equations (assignments): 65 * 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.0015/0.3502, allocations: 1.394 MB / 448.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006929/0.3509, allocations: 379.7 kB / 448.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3509, allocations: 4 kB / 448.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.3512, allocations: 226.2 kB / 448.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.3519, allocations: 99.62 kB / 448.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005005/0.3569, allocations: 3.68 MB / 452.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004769/0.3574, allocations: 0.7933 MB / 453.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002104/0.3576, allocations: 51.33 kB / 453.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/0.3578, allocations: 127.4 kB / 453.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3578, allocations: 0 / 453.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03666/0.3945, allocations: 8.232 MB / 461.8 MB, free: 8.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.509/8.904, allocations: 4.062 kB / 461.8 MB, free: 8.512 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.413244631141424] Failed to read output from testmodel.py, exit status != 0: ['time', 'elastoGap1.v_rel', 'elastoGap2.s_rel', 'springDamper1.v_rel', 'springDamper2.s_rel'] 8.982287785969675 9.002986462 8.668236616 Calling exit ...