Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.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.001287/0.001286, allocations: 115.6 kB / 18.45 MB, free: 4.59 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.001466/0.001466, allocations: 210.4 kB / 21.41 MB, free: 1.637 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.541/1.541, allocations: 227.7 MB / 251.9 MB, free: 15.86 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.Brake,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Brake",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.001942/0.001942, allocations: 71.83 kB / 365.2 MB, free: 220 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.124, allocations: 50.54 MB / 415.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004382/0.1284, allocations: 2.575 MB / 418.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.1297, allocations: 0.5849 MB / 418.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.1298, allocations: 4 kB / 418.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.1301, allocations: 67.42 kB / 419 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003316/0.1305, allocations: 131.1 kB / 419.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.1308, allocations: 167.7 kB / 419.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005894/0.1314, allocations: 0.5108 MB / 419.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.1316, allocations: 80.62 kB / 419.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.1319, allocations: 219.4 kB / 420.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000363/0.1323, allocations: 251.1 kB / 420.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.34e-05/0.1323, allocations: 40 kB / 420.4 MB, free: 9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.1326, allocations: 99.95 kB / 420.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.1327, allocations: 107.7 kB / 420.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002319/0.133, allocations: 195.1 kB / 420.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006425/0.1336, allocations: 0.5058 MB / 421.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1336, allocations: 0 / 421.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.1337, allocations: 4 kB / 421.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1337, allocations: 4 kB / 421.3 MB, free: 8.09 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001458/0.1351, allocations: 0.705 MB / 422 MB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1352, allocations: 12.03 kB / 422 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.871e-05/0.1353, allocations: 66.72 kB / 422.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.961e-05/0.1354, allocations: 40.7 kB / 422.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.1359, allocations: 299.6 kB / 422.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/0.1359, allocations: 29.03 kB / 422.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.136, allocations: 28.38 kB / 422.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007616/0.1368, allocations: 374.5 kB / 422.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.1368, allocations: 15.89 kB / 422.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.697e-05/0.1369, allocations: 12 kB / 422.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.1369, allocations: 11.94 kB / 422.8 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000843/0.1377, allocations: 386.3 kB / 423.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.1399, allocations: 1.12 MB / 424.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006746/0.1406, allocations: 334.6 kB / 424.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003832/0.141, allocations: 188.8 kB / 424.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.607e-05/0.1411, allocations: 4 kB / 424.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.1411, allocations: 42.56 kB / 424.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.775e-06/0.1411, allocations: 3.938 kB / 424.9 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004877/0.146, allocations: 2.012 MB / 426.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.1461, allocations: 55.84 kB / 427 MB, free: 2.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004109/0.1465, allocations: 260.9 kB / 427.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.652e-05/0.1466, allocations: 41.7 kB / 427.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.1467, allocations: 157 kB / 427.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.1469, allocations: 174.6 kB / 427.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.1471, allocations: 94.19 kB / 427.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.1473, allocations: 338.8 kB / 428 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.1477, allocations: 197 kB / 428.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.1481, allocations: 268.8 kB / 428.5 MB, free: 496 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006535/0.1488, allocations: 357.7 kB / 428.8 MB, free: 112 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1488, allocations: 0 / 428.8 MB, free: 112 kB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001257/0.1501, allocations: 0.6069 MB / 429.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1501, allocations: 8 kB / 429.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.1501, allocations: 8.219 kB / 429.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008427/0.151, allocations: 345.5 kB / 429.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.1513, allocations: 63.91 kB / 429.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.1528, allocations: 1.374 MB / 431.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004781/0.1533, allocations: 67.88 kB / 431.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.894e-05/0.1534, allocations: 19.98 kB / 431.3 MB, free: 13.55 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002928/0.1537, allocations: 168.4 kB / 431.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.1538, allocations: 35.75 kB / 431.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.1539, allocations: 55.61 kB / 431.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/0.154, allocations: 7.938 kB / 431.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.154, allocations: 0 / 431.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.154, allocations: 3.984 kB / 431.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003039/0.157, allocations: 1.331 MB / 432.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.1571, allocations: 3.984 kB / 432.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/0.1573, allocations: 59.92 kB / 433 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006574/0.158, allocations: 313.6 kB / 433.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.871e-05/0.1581, allocations: 23.92 kB / 433.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.1595, allocations: 1.312 MB / 434.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1595, allocations: 128 / 434.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/0.1613, allocations: 0.9177 MB / 435.5 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.1616, allocations: 164.8 kB / 435.7 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.343e-05/0.1617, allocations: 16 kB / 435.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003064/0.162, allocations: 35.95 kB / 435.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/0.1623, allocations: 99.75 kB / 435.8 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.042e-05/0.1623, allocations: 19.98 kB / 435.8 MB, free: 8.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.1626, allocations: 180.5 kB / 436 MB, free: 8.633 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1626, allocations: 0 / 436 MB, free: 8.633 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005726/0.1632, allocations: 103.9 kB / 436.1 MB, free: 8.531 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00364/0.1668, allocations: 1.73 MB / 437.9 MB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.1682, allocations: 0.4937 MB / 438.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1682, allocations: 0 / 438.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006439/0.1689, allocations: 292.3 kB / 438.6 MB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005641/0.1694, allocations: 68.53 kB / 438.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008006/0.1774, allocations: 4.072 MB / 442.8 MB, free: 1.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006096/0.1781, allocations: 0.7839 MB / 443.6 MB, free: 1.004 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002363/0.1784, allocations: 34.98 kB / 443.6 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.1786, allocations: 103.4 kB / 443.7 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of SimCode: time 5.47e-06/0.1786, allocations: 0 / 443.7 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2705/0.4491, allocations: 11.86 MB / 455.6 MB, free: 29.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.64, allocations: 11.5 kB / 455.6 MB, free: 29.23 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --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_Brake.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.288208263926208] Failed to read output from testmodel.py, exit status != 0: ['time', 'mass1.s', 'mass1.v', 'mass2.s', 'mass2.v', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'brake1.mode', 'brake1.startBackward', 'brake1.startForward'] 12.789750974974595 12.802118508 12.666060355 Calling exit ...