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.001332/0.001332, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001459/0.001459, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.428/1.428, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.001947/0.001947, allocations: 68.77 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3585, allocations: 53.37 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005165/0.3637, allocations: 3.139 MB / 435 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002827/0.3665, allocations: 1.367 MB / 436.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.3668, allocations: 7.938 kB / 436.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005409/0.3673, allocations: 95.16 kB / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.3676, allocations: 130.9 kB / 436.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.3686, allocations: 421.9 kB / 437.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009756/0.3695, allocations: 0.8231 MB / 437.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.3697, allocations: 81.56 kB / 438 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005969/0.3703, allocations: 375.1 kB / 438.3 MB, free: 460 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.3721, allocations: 1.471 MB / 439.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.3722, allocations: 72 kB / 439.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002813/0.3725, allocations: 132 kB / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002715/0.3728, allocations: 235.8 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000364/0.3732, allocations: 358.1 kB / 440.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.3743, allocations: 0.9114 MB / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3743, allocations: 0 / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3743, allocations: 0 / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.3743, allocations: 0 / 441.5 MB, free: 13.28 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.003764/0.3781, allocations: 1.439 MB / 442.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.3781, allocations: 8.031 kB / 442.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.3782, allocations: 74.72 kB / 443 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000504/0.3787, allocations: 112.4 kB / 443.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006995/0.3794, allocations: 390.1 kB / 443.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.062e-05/0.3795, allocations: 29.38 kB / 443.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.3796, allocations: 36.38 kB / 443.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.3811, allocations: 0.634 MB / 444.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.3811, allocations: 7.953 kB / 444.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.776e-05/0.3812, allocations: 23.92 kB / 444.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.3812, allocations: 11.98 kB / 444.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.3831, allocations: 0.6934 MB / 444.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/0.3867, allocations: 1.62 MB / 446.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3881, allocations: 481.1 kB / 447 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007924/0.3888, allocations: 285.6 kB / 447.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.296e-05/0.3889, allocations: 4 kB / 447.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.3901, allocations: 0.4905 MB / 447.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.096e-06/0.3901, allocations: 0 / 447.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008314/0.3984, allocations: 2.436 MB / 450.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.263e-05/0.3985, allocations: 85.09 kB / 450.3 MB, free: 4.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.3996, allocations: 0.9181 MB / 451.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.075e-05/0.3996, allocations: 45.7 kB / 451.3 MB, free: 3.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002739/0.3999, allocations: 304.6 kB / 451.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.4001, allocations: 178.6 kB / 451.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002439/0.4003, allocations: 118.2 kB / 451.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.4005, allocations: 390.7 kB / 452.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008764/0.4014, allocations: 317.1 kB / 452.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009388/0.4024, allocations: 422.9 kB / 453 MB, free: 1.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.4038, allocations: 0.5087 MB / 453.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4038, allocations: 4 kB / 453.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00277/0.4066, allocations: 0.9794 MB / 454.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.4066, allocations: 11.92 kB / 454.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4066, allocations: 8 kB / 454.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.4077, allocations: 0.5412 MB / 455 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/0.4082, allocations: 115.8 kB / 455.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006682/0.4149, allocations: 4.53 MB / 459.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.4163, allocations: 231.8 kB / 459.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-05/0.4164, allocations: 23.98 kB / 459.9 MB, free: 10.2 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.0004722/0.4169, allocations: 257.2 kB / 460.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.417, allocations: 71.53 kB / 460.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.4172, allocations: 106.2 kB / 460.3 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.4172, allocations: 4 kB / 460.3 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4172, allocations: 4 kB / 460.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4172, allocations: 3.984 kB / 460.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.4203, allocations: 1.384 MB / 461.7 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4203, allocations: 0 / 461.7 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000465/0.4208, allocations: 91.88 kB / 461.8 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009887/0.4218, allocations: 0.5177 MB / 462.3 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.705e-05/0.4218, allocations: 23.95 kB / 462.4 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00582/0.4276, allocations: 4.152 MB / 466.5 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.4276, allocations: 7.969 kB / 466.5 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003475/0.4311, allocations: 1.257 MB / 467.8 MB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.4315, allocations: 139.4 kB / 467.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.4316, allocations: 20.38 kB / 467.9 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.4332, allocations: 267.6 kB / 468.2 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001456/0.4346, allocations: 0.5848 MB / 468.8 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.533e-05/0.4347, allocations: 39.95 kB / 468.8 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007914/0.4355, allocations: 0.6631 MB / 469.5 MB, free: 252 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4355, allocations: 0 / 469.5 MB, free: 252 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008314/0.4363, allocations: 184 kB / 469.7 MB, free: 68 kB / 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.0052/0.4415, allocations: 2.084 MB / 471.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.444, allocations: 0.9255 MB / 472.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.444, allocations: 4.375 kB / 472.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.4455, allocations: 0.6532 MB / 473.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000684/0.4461, allocations: 84.14 kB / 473.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.4597, allocations: 6.804 MB / 480.2 MB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006542/0.4603, allocations: 0.9298 MB / 481.1 MB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002565/0.4606, allocations: 47.27 kB / 481.2 MB, free: 4.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.4609, allocations: 211.3 kB / 481.4 MB, free: 4.172 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4609, allocations: 0 / 481.4 MB, free: 4.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06436/0.5253, allocations: 22.89 MB / 0.4925 GB, free: 13.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.79, allocations: 14.67 kB / 0.4925 GB, free: 13.36 MB / 414.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 & /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 --stepSize=0.001 --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: 16.2675187648274] 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.955610800068825 13.970617849 13.593172198 Calling exit ...