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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001819/0.001819, allocations: 120.2 kB / 18.5 MB, free: 4.578 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.002203/0.002203, allocations: 205 kB / 21.45 MB, free: 1.629 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.49/1.49, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.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"}) [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.001905/0.001905, allocations: 67.89 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1113, allocations: 53.32 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005256/0.1165, allocations: 3.125 MB / 430.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.1195, allocations: 1.359 MB / 431.5 MB, free: 304 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002284/0.1198, allocations: 4 kB / 431.5 MB, free: 300 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004986/0.1203, allocations: 99.14 kB / 431.6 MB, free: 200 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.1205, allocations: 126.9 kB / 431.7 MB, free: 72 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2063/0.3269, allocations: 415.4 kB / 432.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009452/0.3278, allocations: 0.8179 MB / 432.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.328, allocations: 69.23 kB / 433 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004612/0.3285, allocations: 380.1 kB / 433.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.3299, allocations: 1.469 MB / 434.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.3301, allocations: 69.53 kB / 434.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002695/0.3303, allocations: 131.8 kB / 435 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002288/0.3306, allocations: 236.1 kB / 435.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.3308, allocations: 354.6 kB / 435.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.3319, allocations: 0.9107 MB / 436.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3319, allocations: 2.094 kB / 436.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3319, allocations: 0 / 436.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.3319, allocations: 0 / 436.5 MB, free: 7.176 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003762/0.3357, allocations: 1.37 MB / 437.9 MB, free: 6.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3357, allocations: 9.75 kB / 437.9 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.3358, allocations: 75.77 kB / 438 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004827/0.3363, allocations: 105.3 kB / 438.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.3368, allocations: 446.9 kB / 438.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.342e-05/0.3369, allocations: 31.62 kB / 438.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.623e-05/0.337, allocations: 37.09 kB / 438.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.3384, allocations: 0.6368 MB / 439.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.3385, allocations: 6.328 kB / 439.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-05/0.3385, allocations: 21.47 kB / 439.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3385, allocations: 9.469 kB / 439.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001929/0.3405, allocations: 0.6893 MB / 439.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003542/0.344, allocations: 1.657 MB / 441.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.3454, allocations: 482.2 kB / 442.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000796/0.3462, allocations: 282.7 kB / 442.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.519e-05/0.3462, allocations: 9.234 kB / 442.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.3474, allocations: 493.7 kB / 442.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.204e-06/0.3474, allocations: 0 / 442.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008932/0.3563, allocations: 2.816 MB / 445.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.3563, allocations: 83.53 kB / 445.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.3573, allocations: 0.9198 MB / 446.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.903e-05/0.3574, allocations: 51.83 kB / 446.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.3576, allocations: 300.1 kB / 447 MB, free: 2.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3577, allocations: 174.9 kB / 447.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.358, allocations: 124.5 kB / 447.3 MB, free: 2.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3581, allocations: 387.8 kB / 447.7 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008956/0.359, allocations: 321.3 kB / 448 MB, free: 1.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009347/0.3599, allocations: 415.3 kB / 448.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.3618, allocations: 0.5105 MB / 448.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.3618, allocations: 0 / 448.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003489/0.3652, allocations: 0.9806 MB / 449.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3653, allocations: 13.41 kB / 449.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3653, allocations: 3.281 kB / 449.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.3663, allocations: 0.544 MB / 450.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.3668, allocations: 115.1 kB / 450.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006876/0.3737, allocations: 4.744 MB / 455.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.3753, allocations: 224 kB / 455.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/0.3754, allocations: 32.77 kB / 455.5 MB, free: 12.51 MB / 366.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.0006265/0.3761, allocations: 259.2 kB / 455.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.3763, allocations: 78.56 kB / 455.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.3765, allocations: 99.64 kB / 456 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.3765, allocations: 9.984 kB / 456 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.3766, allocations: 0 / 456 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3766, allocations: 1.469 kB / 456 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.3799, allocations: 1.417 MB / 457.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3799, allocations: 1.094 kB / 457.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004978/0.3804, allocations: 94.64 kB / 457.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.3814, allocations: 0.5087 MB / 458 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.58e-05/0.3815, allocations: 25.34 kB / 458 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006089/0.3876, allocations: 4.365 MB / 462.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.3876, allocations: 6.219 kB / 462.4 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00392/0.3915, allocations: 1.262 MB / 463.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004265/0.3919, allocations: 210.1 kB / 463.9 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.3921, allocations: 20.88 kB / 463.9 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/0.3938, allocations: 274.6 kB / 464.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001426/0.3953, allocations: 0.5671 MB / 464.7 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.667e-05/0.3953, allocations: 25.91 kB / 464.8 MB, free: 5.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008738/0.3962, allocations: 0.6732 MB / 465.4 MB, free: 5.121 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3962, allocations: 1.625 kB / 465.4 MB, free: 5.121 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008426/0.397, allocations: 177.6 kB / 465.6 MB, free: 5.102 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.005336/0.4024, allocations: 2.084 MB / 467.7 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002646/0.405, allocations: 0.931 MB / 468.6 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.405, allocations: 2 kB / 468.6 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.4066, allocations: 0.648 MB / 469.3 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.4077, allocations: 84.33 kB / 469.3 MB, free: 2.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02206/0.4298, allocations: 6.808 MB / 476.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008915/0.4306, allocations: 0.9336 MB / 477.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003902/0.431, allocations: 47.27 kB / 477.1 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004848/0.4315, allocations: 207.3 kB / 477.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4315, allocations: 4 kB / 477.3 MB, free: 12.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06499/0.4965, allocations: 22.22 MB / 499.6 MB, free: 6.383 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.66, allocations: 11.75 kB / 499.6 MB, free: 6.371 MB / 398.1 MB " [Timeout remaining time 646] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.347386894281954] Failed to read output from testmodel.py, exit status != 0: ['time', 'mass.s', 'mass.v', 'stop1.s', 'stop1.v', 'stop2.s', 'stop2.v', 'stop1.mode', 'stop1.startBackward', 'stop1.startForward', 'stop2.mode', 'stop2.startBackward', 'stop2.startForward', 'supportFriction.mode', 'supportFriction.startBackward', 'supportFriction.startForward'] 13.814159031026065 13.834948446 13.498983231 Calling exit ...