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.001342/0.001342, allocations: 105.1 kB / 21.22 MB, free: 0.5117 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.00167/0.00167, allocations: 217.9 kB / 24.54 MB, free: 3.898 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.001998/0.001998, allocations: 64.77 kB / 378.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3297, 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.005018/0.3347, allocations: 3.151 MB / 435.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003048/0.3377, allocations: 1.356 MB / 436.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003055/0.3381, allocations: 11.94 kB / 436.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005341/0.3386, allocations: 95.14 kB / 436.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003052/0.3389, allocations: 130.9 kB / 436.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.3399, allocations: 410.6 kB / 437 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009723/0.3409, allocations: 0.827 MB / 437.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.3411, allocations: 81.62 kB / 437.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000592/0.3417, allocations: 379.1 kB / 438.3 MB, free: 460 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.3436, allocations: 1.479 MB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.3437, allocations: 68 kB / 439.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003104/0.344, allocations: 124 kB / 440 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.3443, allocations: 239.8 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003938/0.3447, allocations: 362.1 kB / 440.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.3459, allocations: 0.9075 MB / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3459, allocations: 3.938 kB / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3459, allocations: 0 / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.3459, 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.003806/0.3497, allocations: 1.439 MB / 442.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.3497, allocations: 12.03 kB / 442.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.3498, allocations: 78.7 kB / 443 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004984/0.3503, allocations: 104.4 kB / 443.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006862/0.351, allocations: 382.2 kB / 443.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.974e-05/0.3511, allocations: 29.38 kB / 443.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.3512, allocations: 40.36 kB / 443.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.3528, allocations: 0.6378 MB / 444.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.3528, allocations: 7.953 kB / 444.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.952e-05/0.3529, allocations: 16 kB / 444.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.3529, allocations: 12 kB / 444.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.3548, allocations: 0.6896 MB / 444.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003673/0.3585, allocations: 1.62 MB / 446.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.3599, allocations: 485.6 kB / 447 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008407/0.3607, allocations: 289.4 kB / 447.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.679e-05/0.3608, allocations: 11.98 kB / 447.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001213/0.362, allocations: 494.3 kB / 447.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.834e-06/0.362, allocations: 0 / 447.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008913/0.3709, allocations: 2.434 MB / 450.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.371, allocations: 85.11 kB / 450.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.3721, allocations: 0.9142 MB / 451.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.3722, allocations: 49.69 kB / 451.3 MB, free: 3.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002867/0.3725, allocations: 300.7 kB / 451.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.3727, allocations: 186.6 kB / 451.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002407/0.3729, allocations: 126.2 kB / 451.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.3731, allocations: 382.7 kB / 452.2 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000909/0.3741, allocations: 321.1 kB / 452.6 MB, free: 1.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009754/0.375, allocations: 422.9 kB / 453 MB, free: 1.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.3765, allocations: 0.504 MB / 453.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3765, allocations: 0 / 453.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00287/0.3793, allocations: 0.979 MB / 454.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.3794, allocations: 14.59 kB / 454.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3794, allocations: 0 / 454.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.3805, allocations: 0.5489 MB / 455 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005218/0.3811, allocations: 115.9 kB / 455.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006736/0.3878, allocations: 4.528 MB / 459.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.3892, allocations: 236 kB / 459.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.59e-05/0.3893, allocations: 24 kB / 459.9 MB, free: 10.19 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.0004334/0.3897, allocations: 260.2 kB / 460.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.3899, allocations: 79.52 kB / 460.2 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002075/0.3901, allocations: 102.2 kB / 460.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.3901, allocations: 4 kB / 460.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3901, allocations: 4 kB / 460.3 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3901, allocations: 4 kB / 460.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003203/0.3933, allocations: 1.38 MB / 461.7 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.3933, allocations: 0 / 461.7 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004958/0.3938, allocations: 91.86 kB / 461.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.3948, allocations: 0.5138 MB / 462.3 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.545e-05/0.3949, allocations: 19.97 kB / 462.4 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005908/0.4008, allocations: 4.155 MB / 466.5 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4008, allocations: 3.938 kB / 466.5 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003609/0.4044, allocations: 1.261 MB / 467.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/0.4048, allocations: 139.4 kB / 467.9 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.4049, allocations: 23.94 kB / 467.9 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.4065, allocations: 271.6 kB / 468.2 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001488/0.408, allocations: 0.581 MB / 468.8 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.469e-05/0.4081, allocations: 31.97 kB / 468.8 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007856/0.4088, allocations: 0.6709 MB / 469.5 MB, free: 244 kB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4088, allocations: 0 / 469.5 MB, free: 244 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007758/0.4096, allocations: 180 kB / 469.7 MB, free: 64 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.005287/0.4149, allocations: 2.086 MB / 471.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002559/0.4175, allocations: 0.9255 MB / 472.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.4175, allocations: 448 / 472.7 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.419, allocations: 0.6494 MB / 473.3 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006982/0.4197, allocations: 82.88 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.01387/0.4336, allocations: 6.814 MB / 480.2 MB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006497/0.4343, allocations: 0.9259 MB / 481.1 MB, free: 4.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002566/0.4345, allocations: 47.27 kB / 481.2 MB, free: 4.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.4348, allocations: 211.3 kB / 481.4 MB, free: 4.168 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4348, allocations: 0 / 481.4 MB, free: 4.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07199/0.5068, allocations: 22.89 MB / 0.4925 GB, free: 13.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.7, allocations: 2.75 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 & 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.32412006193772] 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.888942569028586 13.905231264 13.556197942 Calling exit ...