Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.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.Friction,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001436/0.001436, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001527/0.001527, allocations: 200.6 kB / 18.73 MB, free: 4.441 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.648/1.648, 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.002434/0.002434, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2813, allocations: 50.55 MB / 409 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005297/0.2867, allocations: 3.11 MB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.2892, allocations: 1.34 MB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.2894, allocations: 4 kB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005212/0.29, allocations: 99.14 kB / 413.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.2903, allocations: 122.9 kB / 413.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009618/0.2912, allocations: 421.6 kB / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008938/0.2921, allocations: 0.8231 MB / 415 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.2924, allocations: 101.5 kB / 415.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005622/0.2929, allocations: 371 kB / 415.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001867/0.2948, allocations: 1.475 MB / 416.9 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.295, allocations: 68 kB / 417 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002875/0.2953, allocations: 132 kB / 417.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002722/0.2956, allocations: 235.7 kB / 417.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003743/0.2959, allocations: 358 kB / 417.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.2971, allocations: 0.9096 MB / 418.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2971, allocations: 0 / 418.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2971, allocations: 4 kB / 418.6 MB, free: 7.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.2971, allocations: 0 / 418.6 MB, free: 7.809 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003816/0.3009, allocations: 1.366 MB / 419.9 MB, free: 6.387 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.301, allocations: 8.031 kB / 420 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.3011, allocations: 78.7 kB / 420 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004785/0.3016, allocations: 108.4 kB / 420.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006742/0.3023, allocations: 440 kB / 420.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.902e-05/0.3024, allocations: 29.38 kB / 420.6 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.402e-05/0.3025, allocations: 40.38 kB / 420.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.304, allocations: 0.638 MB / 421.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.304, allocations: 11.94 kB / 421.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.817e-05/0.3041, allocations: 16 kB / 421.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.3041, allocations: 12 kB / 421.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002013/0.3061, allocations: 0.6859 MB / 422 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003838/0.31, allocations: 1.666 MB / 423.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.3115, allocations: 492.8 kB / 424.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008578/0.3123, allocations: 297.6 kB / 424.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.583e-05/0.3124, allocations: 7.984 kB / 424.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.3136, allocations: 494.3 kB / 424.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.274e-06/0.3136, allocations: 0 / 424.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.009424/0.3231, allocations: 2.814 MB / 427.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.3232, allocations: 89.05 kB / 427.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.3242, allocations: 0.9181 MB / 428.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.3243, allocations: 49.69 kB / 428.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.3246, allocations: 300.7 kB / 429.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.3248, allocations: 178.6 kB / 429.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.3251, allocations: 118.3 kB / 429.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.3253, allocations: 386.7 kB / 429.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009174/0.3262, allocations: 329 kB / 430.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.3273, allocations: 414.9 kB / 430.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.3288, allocations: 0.5087 MB / 431 MB, free: 10.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.3288, allocations: 4 kB / 431 MB, free: 10.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002968/0.3318, allocations: 0.9949 MB / 432 MB, free: 9.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.3318, allocations: 7.938 kB / 432 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.3318, allocations: 4 kB / 432 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.333, allocations: 0.549 MB / 432.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005323/0.3335, allocations: 115.8 kB / 432.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007219/0.3407, allocations: 4.743 MB / 437.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.3423, allocations: 223.9 kB / 437.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.048e-05/0.3424, allocations: 20 kB / 437.6 MB, free: 3.898 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004559/0.3429, allocations: 264.1 kB / 437.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.343, allocations: 79.52 kB / 438 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002075/0.3433, allocations: 106.2 kB / 438.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.3433, allocations: 12 kB / 438.1 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3433, allocations: 0 / 438.1 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3433, allocations: 3.984 kB / 438.1 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/0.3464, allocations: 1.416 MB / 439.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3465, allocations: 0 / 439.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/0.347, allocations: 87.94 kB / 439.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.348, allocations: 0.5177 MB / 440.1 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-05/0.3481, allocations: 19.97 kB / 440.1 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005978/0.3541, allocations: 4.364 MB / 444.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.3541, allocations: 3.938 kB / 444.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003812/0.3579, allocations: 1.277 MB / 445.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/0.3585, allocations: 208.6 kB / 446 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001797/0.3587, allocations: 20 kB / 446 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00246/0.3612, allocations: 271.6 kB / 446.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001511/0.3627, allocations: 0.5694 MB / 446.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.414e-05/0.3628, allocations: 27.97 kB / 446.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007908/0.3636, allocations: 0.6709 MB / 447.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3636, allocations: 0 / 447.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008203/0.3644, allocations: 183.9 kB / 447.7 MB, free: 9.371 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005106/0.3695, allocations: 2.087 MB / 449.8 MB, free: 7.375 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.372, allocations: 0.9843 MB / 450.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.372, allocations: 0 / 450.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.3735, allocations: 0.6574 MB / 451.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006504/0.3742, allocations: 86.27 kB / 451.5 MB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.3878, allocations: 6.814 MB / 458.3 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006226/0.3884, allocations: 0.9297 MB / 459.3 MB, free: 13.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002587/0.3887, allocations: 47.27 kB / 459.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003443/0.3891, allocations: 211.3 kB / 459.5 MB, free: 13.4 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3891, allocations: 0 / 459.5 MB, free: 13.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06032/0.4494, allocations: 22.12 MB / 481.7 MB, free: 7.477 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.39, allocations: 15.56 kB / 481.7 MB, free: 7.465 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)