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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.433/1.433, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB 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.002733/0.002733, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3473, allocations: 50.55 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004221/0.3515, allocations: 2.673 MB / 411.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.3532, allocations: 0.7287 MB / 412.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002313/0.3535, allocations: 4 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.3537, allocations: 51.44 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.354, allocations: 107 kB / 412.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.3543, allocations: 91.88 kB / 412.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.3548, allocations: 390.3 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000263/0.3551, allocations: 119 kB / 413.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.3553, allocations: 143.5 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.3555, allocations: 171.2 kB / 413.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.528e-05/0.3556, allocations: 32 kB / 413.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.971e-05/0.3557, allocations: 28 kB / 413.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.369e-05/0.3557, allocations: 71.77 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.3559, allocations: 171.2 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.3564, allocations: 381.4 kB / 414.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3564, allocations: 0 / 414.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3564, allocations: 4 kB / 414.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.3565, allocations: 0 / 414.2 MB, free: 12.2 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.001152/0.3576, allocations: 0.6272 MB / 414.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.3577, allocations: 16.03 kB / 414.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.412e-05/0.3578, allocations: 66.72 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.402e-05/0.3578, allocations: 40.7 kB / 414.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004583/0.3583, allocations: 264.8 kB / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.3583, allocations: 24.78 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.335e-05/0.3584, allocations: 35.95 kB / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004777/0.3589, allocations: 258.1 kB / 415.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3589, allocations: 0 / 415.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.359, allocations: 16 kB / 415.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.655e-05/0.359, allocations: 8 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004243/0.3594, allocations: 238.4 kB / 415.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.3609, allocations: 0.7845 MB / 416.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005688/0.3615, allocations: 353 kB / 416.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.3618, allocations: 177.5 kB / 417.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.724e-05/0.3618, allocations: 8.375 kB / 417.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.3619, allocations: 38.92 kB / 417.1 MB, free: 9.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.795e-06/0.3619, allocations: 0 / 417.1 MB, free: 9.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.004092/0.366, allocations: 1.908 MB / 419 MB, free: 7.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.3661, allocations: 63.97 kB / 419.1 MB, free: 7.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.3663, allocations: 220.3 kB / 419.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.3664, allocations: 33.7 kB / 419.3 MB, free: 6.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3665, allocations: 149.2 kB / 419.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.3667, allocations: 234 kB / 419.7 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.3668, allocations: 94.34 kB / 419.8 MB, free: 6.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.367, allocations: 342.8 kB / 420.1 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.3673, allocations: 153.2 kB / 420.3 MB, free: 5.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/0.3676, allocations: 149.8 kB / 420.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005584/0.3681, allocations: 353.6 kB / 420.8 MB, free: 5.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3681, allocations: 3.938 kB / 420.8 MB, free: 5.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007629/0.3689, allocations: 465.1 kB / 421.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3689, allocations: 4 kB / 421.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.3689, allocations: 0 / 421.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.369, allocations: 7.938 kB / 421.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004674/0.3694, allocations: 119.8 kB / 421.4 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.3695, allocations: 0 / 421.4 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.3697, allocations: 16 kB / 421.4 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.3697, allocations: 20 kB / 421.4 MB, free: 4.676 MB / 334.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.0001988/0.3699, allocations: 166.6 kB / 421.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.794e-05/0.37, allocations: 35.77 kB / 421.6 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.3701, allocations: 51.28 kB / 421.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.3701, allocations: 8 kB / 421.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.3701, allocations: 0 / 421.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3701, allocations: 3.984 kB / 421.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.3722, allocations: 1.286 MB / 422.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.3722, allocations: 4 kB / 422.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.3727, allocations: 120.4 kB / 423.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/0.3727, allocations: 8 kB / 423.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.3728, allocations: 20 kB / 423.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.507e-05/0.3728, allocations: 15.92 kB / 423.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.3728, allocations: 4 kB / 423.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.374, allocations: 0.8429 MB / 423.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.3741, allocations: 116.9 kB / 424.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.804e-05/0.3742, allocations: 19.94 kB / 424.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.3744, allocations: 19.98 kB / 424.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.3745, allocations: 52.27 kB / 424.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.3746, allocations: 27.98 kB / 424.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001514/0.3747, allocations: 148.5 kB / 424.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3747, allocations: 0 / 424.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004132/0.3751, allocations: 96 kB / 424.4 MB, free: 1.441 MB / 334.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.001544/0.3767, allocations: 1.407 MB / 425.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007256/0.3774, allocations: 411 kB / 426.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3775, allocations: 0 / 426.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003682/0.3778, allocations: 242.7 kB / 426.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.3785, allocations: 87.7 kB / 426.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005046/0.3836, allocations: 3.683 MB / 430.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.3841, allocations: 0.8012 MB / 431 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002282/0.3844, allocations: 55.27 kB / 431.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.3846, allocations: 131.3 kB / 431.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3846, allocations: 0 / 431.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03612/0.4208, allocations: 7.835 MB / 439.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.473/8.894, allocations: 6.656 kB / 439.1 MB, free: 2.648 MB / 350.1 MB (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)