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.001371/0.001371, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001396/0.001396, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.514/1.514, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.001954/0.001954, allocations: 71.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1103, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004911/0.1152, allocations: 2.677 MB / 429.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.1168, allocations: 0.7404 MB / 430.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.1169, allocations: 7.938 kB / 430.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.1171, allocations: 51.45 kB / 430.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002244/0.1173, allocations: 107.1 kB / 430.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.1176, allocations: 91.81 kB / 430.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005072/0.1182, allocations: 386.3 kB / 431 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.1184, allocations: 83.09 kB / 431.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.1186, allocations: 151.5 kB / 431.3 MB, free: 496 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.1188, allocations: 171.2 kB / 431.4 MB, free: 324 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.1189, allocations: 32 kB / 431.5 MB, free: 292 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.823e-05/0.119, allocations: 28 kB / 431.5 MB, free: 264 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.059e-05/0.119, allocations: 75.7 kB / 431.6 MB, free: 188 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.1193, allocations: 171.2 kB / 431.7 MB, free: 16 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.222/0.3412, allocations: 377.4 kB / 432.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3412, allocations: 2.125 kB / 432.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3412, allocations: 0 / 432.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.3413, allocations: 0 / 432.1 MB, free: 7.977 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001042/0.3423, allocations: 0.6304 MB / 432.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.3424, allocations: 9.094 kB / 432.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.64e-05/0.3424, allocations: 71.44 kB / 432.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.874e-05/0.3425, allocations: 39.3 kB / 432.9 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.343, allocations: 271.9 kB / 433.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.3431, allocations: 23.72 kB / 433.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.405e-05/0.3431, allocations: 34.73 kB / 433.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005313/0.3437, allocations: 261.6 kB / 433.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.3437, allocations: 1.344 kB / 433.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.3437, allocations: 9.75 kB / 433.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.765e-05/0.3437, allocations: 7.719 kB / 433.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004634/0.3442, allocations: 234.3 kB / 433.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.3455, allocations: 0.7937 MB / 434.5 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.346, allocations: 313.6 kB / 434.8 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.3463, allocations: 158 kB / 434.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.712e-05/0.3464, allocations: 11.36 kB / 435 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.3464, allocations: 41.14 kB / 435 MB, free: 6.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.355e-06/0.3464, allocations: 2.625 kB / 435 MB, free: 6.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004074/0.3505, allocations: 1.907 MB / 436.9 MB, free: 6.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.3505, allocations: 63.75 kB / 437 MB, free: 6.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.3507, allocations: 208.2 kB / 437.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.3508, allocations: 40.53 kB / 437.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.3509, allocations: 148.2 kB / 437.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.351, allocations: 235.4 kB / 437.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.3512, allocations: 98.98 kB / 437.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.734e-05/0.3512, allocations: 349.5 kB / 438 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/0.3515, allocations: 144.3 kB / 438.2 MB, free: 5.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.3518, allocations: 152.5 kB / 438.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005257/0.3523, allocations: 352.9 kB / 438.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3523, allocations: 1.031 kB / 438.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007021/0.353, allocations: 458.9 kB / 439.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.353, allocations: 6.344 kB / 439.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.353, allocations: 0 / 439.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.3531, allocations: 3.688 kB / 439.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004831/0.3535, allocations: 125.9 kB / 439.2 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3536, allocations: 8.047 kB / 439.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/0.3538, allocations: 16.33 kB / 439.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.3538, allocations: 16.95 kB / 439.3 MB, free: 4.961 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.0001764/0.354, allocations: 157.7 kB / 439.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.635e-05/0.3541, allocations: 42.8 kB / 439.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.3542, allocations: 46.55 kB / 439.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3542, allocations: 7.656 kB / 439.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/0.3542, allocations: 7.938 kB / 439.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3542, allocations: 7.219 kB / 439.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.356, allocations: 1.293 MB / 440.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.455e-06/0.356, allocations: 4.953 kB / 440.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/0.3565, allocations: 117.5 kB / 441 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.035e-05/0.3565, allocations: 10.22 kB / 441 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.3566, allocations: 16.88 kB / 441 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.3566, allocations: 11.45 kB / 441 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.3566, allocations: 6.062 kB / 441 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.3577, allocations: 0.8388 MB / 441.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.3578, allocations: 121.7 kB / 442 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.611e-05/0.3578, allocations: 18.78 kB / 442 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.3581, allocations: 17.94 kB / 442 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3582, allocations: 51.72 kB / 442 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.3582, allocations: 21.14 kB / 442.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.3584, allocations: 152.6 kB / 442.2 MB, free: 3.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3584, allocations: 1.156 kB / 442.2 MB, free: 3.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004466/0.3588, allocations: 96.09 kB / 442.3 MB, free: 3.16 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.001227/0.36, allocations: 1.398 MB / 443.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007102/0.3608, allocations: 386.9 kB / 444.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3608, allocations: 0 / 444.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003656/0.3611, allocations: 228.2 kB / 444.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006941/0.3618, allocations: 99.89 kB / 444.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/0.3663, allocations: 3.668 MB / 448.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005519/0.3669, allocations: 0.8017 MB / 448.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002244/0.3671, allocations: 50.03 kB / 448.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.3673, allocations: 124.2 kB / 449 MB, free: 14.61 MB / 366.1 MB Notification: Performance of SimCode: time 1.392e-06/0.3673, allocations: 0 / 449 MB, free: 14.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/0.408, allocations: 7.911 MB / 457 MB, free: 12.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.547/8.955, allocations: 5.281 kB / 457 MB, free: 12.93 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.474182162899524] Failed to read output from testmodel.py, exit status != 0: ['time', 'elastoGap1.v_rel', 'elastoGap2.s_rel', 'springDamper1.v_rel', 'springDamper2.s_rel'] 9.030047947075218 9.051124203 8.705791972 Calling exit ...