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.001507/0.001507, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.001829/0.001829, allocations: 220.9 kB / 23 MB, free: 5.609 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.434/1.434, allocations: 230.5 MB / 256.5 MB, free: 8.422 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.001982/0.001982, allocations: 68.12 kB / 376.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2757, allocations: 53.32 MB / 429.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005344/0.281, allocations: 3.147 MB / 432.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002891/0.2839, allocations: 1.356 MB / 434 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.2842, allocations: 4 kB / 434 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005423/0.2847, allocations: 95.16 kB / 434.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002993/0.285, allocations: 130.9 kB / 434.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.2861, allocations: 414.7 kB / 434.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009464/0.287, allocations: 0.8231 MB / 435.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.2872, allocations: 69.58 kB / 435.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.2878, allocations: 378.9 kB / 435.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001779/0.2896, allocations: 1.475 MB / 437.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.2897, allocations: 68 kB / 437.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002948/0.29, allocations: 132 kB / 437.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002589/0.2903, allocations: 235.7 kB / 437.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003574/0.2906, allocations: 354 kB / 438.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001089/0.2917, allocations: 0.911 MB / 439.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2917, allocations: 0 / 439.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2917, allocations: 0 / 439.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.2917, allocations: 0 / 439.1 MB, free: 13.86 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.003809/0.2955, allocations: 1.37 MB / 440.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2956, allocations: 8.031 kB / 440.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.2957, allocations: 74.7 kB / 440.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004792/0.2962, allocations: 112.4 kB / 440.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/0.2968, allocations: 444 kB / 441.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.2969, allocations: 29.38 kB / 441.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-05/0.297, allocations: 40.36 kB / 441.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.2985, allocations: 0.6341 MB / 441.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.2986, allocations: 7.953 kB / 441.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.824e-05/0.2986, allocations: 16 kB / 441.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.2986, allocations: 12 kB / 441.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002012/0.3007, allocations: 0.6898 MB / 442.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003656/0.3043, allocations: 1.67 MB / 444.2 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.3057, allocations: 476.8 kB / 444.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008418/0.3065, allocations: 285.6 kB / 444.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.849e-05/0.3066, allocations: 7.984 kB / 444.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001188/0.3078, allocations: 494.3 kB / 445.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.205e-06/0.3078, allocations: 0 / 445.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009168/0.317, allocations: 2.807 MB / 448.2 MB, free: 4.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.287e-05/0.3171, allocations: 81.11 kB / 448.3 MB, free: 4.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.3182, allocations: 0.922 MB / 449.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001217/0.3183, allocations: 49.69 kB / 449.2 MB, free: 3.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.3185, allocations: 304.7 kB / 449.5 MB, free: 2.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.3187, allocations: 178.6 kB / 449.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.319, allocations: 122.3 kB / 449.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.3192, allocations: 382.7 kB / 450.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009239/0.3201, allocations: 325.1 kB / 450.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.3211, allocations: 418.9 kB / 450.9 MB, free: 1.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.3226, allocations: 0.504 MB / 451.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3226, allocations: 3.938 kB / 451.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002884/0.3255, allocations: 0.9947 MB / 452.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3255, allocations: 7.938 kB / 452.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3255, allocations: 4 kB / 452.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.3266, allocations: 0.5451 MB / 453 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005148/0.3271, allocations: 115.8 kB / 453.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006672/0.3338, allocations: 4.737 MB / 457.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.3353, allocations: 231.8 kB / 458.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.882e-05/0.3354, allocations: 20.08 kB / 458.1 MB, free: 9.977 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.0004141/0.3358, allocations: 259.9 kB / 458.3 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.3359, allocations: 75.53 kB / 458.4 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002211/0.3361, allocations: 106.2 kB / 458.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3361, allocations: 4 kB / 458.5 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.3362, allocations: 0 / 458.5 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.3362, allocations: 7.984 kB / 458.5 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003034/0.3392, allocations: 1.408 MB / 459.9 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3392, allocations: 0 / 459.9 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/0.3397, allocations: 87.94 kB / 460 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009894/0.3407, allocations: 0.5177 MB / 460.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.325e-05/0.3407, allocations: 27.89 kB / 460.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005795/0.3465, allocations: 4.359 MB / 464.9 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3465, allocations: 3.938 kB / 464.9 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003624/0.3501, allocations: 1.261 MB / 466.2 MB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003943/0.3505, allocations: 204.6 kB / 466.4 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.3506, allocations: 24.36 kB / 466.4 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.3523, allocations: 267.6 kB / 466.7 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00146/0.3538, allocations: 0.5772 MB / 467.3 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-05/0.3539, allocations: 35.95 kB / 467.3 MB, free: 324 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007674/0.3546, allocations: 0.6671 MB / 468 MB, free: 15.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3546, allocations: 0 / 468 MB, free: 15.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008207/0.3555, allocations: 180 kB / 468.1 MB, free: 15.48 MB / 382.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.005116/0.3606, allocations: 2.088 MB / 470.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002417/0.363, allocations: 0.9294 MB / 471.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.363, allocations: 448 / 471.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.3645, allocations: 0.6494 MB / 471.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006445/0.3651, allocations: 82.88 kB / 471.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/0.3788, allocations: 6.805 MB / 478.7 MB, free: 4.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.3794, allocations: 0.9298 MB / 479.6 MB, free: 3.848 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002525/0.3797, allocations: 43.28 kB / 479.7 MB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003572/0.38, allocations: 207.3 kB / 479.9 MB, free: 3.602 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.38, allocations: 0 / 479.9 MB, free: 3.602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06593/0.446, allocations: 22.54 MB / 0.4906 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.26, allocations: 7.922 kB / 0.4906 GB, free: 13.16 MB / 414.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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: 15.652747972024372] 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.421934470999986 13.447377743 13.150266549 Calling exit ...