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.001746/0.001746, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.002033/0.002033, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.548/1.548, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.001952/0.001952, allocations: 71.83 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1122, allocations: 53.33 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004237/0.1164, allocations: 2.574 MB / 429.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.1176, allocations: 0.5849 MB / 430.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.1177, allocations: 4 kB / 430.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.118, allocations: 71.42 kB / 430.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.1183, allocations: 139 kB / 430.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.1186, allocations: 159.8 kB / 430.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005641/0.1192, allocations: 0.5108 MB / 431 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.1193, allocations: 52.66 kB / 431.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.1196, allocations: 231.4 kB / 431.3 MB, free: 492 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.12, allocations: 259.1 kB / 431.6 MB, free: 232 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.301e-05/0.12, allocations: 40 kB / 431.6 MB, free: 192 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.1202, allocations: 95.92 kB / 431.7 MB, free: 96 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2329/0.3531, allocations: 107.9 kB / 431.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003927/0.3535, allocations: 195.7 kB / 432 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009423/0.3545, allocations: 0.5047 MB / 432.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3545, allocations: 0 / 432.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3545, allocations: 1.062 kB / 432.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.3545, allocations: 0 / 432.5 MB, free: 8.031 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.00141/0.3559, allocations: 0.7147 MB / 433.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.3559, allocations: 8.844 kB / 433.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.518e-05/0.356, allocations: 72.08 kB / 433.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.3561, allocations: 41.7 kB / 433.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.3565, allocations: 292 kB / 433.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.3566, allocations: 24.34 kB / 433.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.121e-05/0.3566, allocations: 30.88 kB / 433.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006939/0.3573, allocations: 376.8 kB / 434 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.3574, allocations: 9.109 kB / 434.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.3574, allocations: 14.12 kB / 434.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.3574, allocations: 10.25 kB / 434.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007591/0.3582, allocations: 385.3 kB / 434.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.3601, allocations: 1.129 MB / 435.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006118/0.3607, allocations: 314.6 kB / 435.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003733/0.3611, allocations: 179.7 kB / 436.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.031e-05/0.3612, allocations: 10.55 kB / 436.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.3612, allocations: 39.55 kB / 436.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.734e-06/0.3612, allocations: 0 / 436.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004925/0.3661, allocations: 2.003 MB / 438.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.3661, allocations: 57.7 kB / 438.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.3664, allocations: 253.8 kB / 438.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.392e-05/0.3665, allocations: 40.77 kB / 438.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.125e-05/0.3666, allocations: 161.8 kB / 438.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.3667, allocations: 176 kB / 438.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.3669, allocations: 94.52 kB / 438.9 MB, free: 5.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.049e-05/0.367, allocations: 343.3 kB / 439.2 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.3674, allocations: 192.2 kB / 439.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004432/0.3678, allocations: 273.2 kB / 439.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.3684, allocations: 349.9 kB / 440 MB, free: 4.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3684, allocations: 4 kB / 440 MB, free: 4.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001233/0.3697, allocations: 0.6046 MB / 440.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3697, allocations: 5.656 kB / 440.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.3697, allocations: 2.812 kB / 440.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007752/0.3705, allocations: 345.6 kB / 441 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.3708, allocations: 68.56 kB / 441 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.3719, allocations: 1.363 MB / 442.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/0.3724, allocations: 73.42 kB / 442.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.3724, allocations: 20.17 kB / 442.5 MB, free: 3.016 MB / 350.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.0002402/0.3727, allocations: 162.8 kB / 442.6 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.7e-05/0.3728, allocations: 35.75 kB / 442.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.3729, allocations: 58.16 kB / 442.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3729, allocations: 4.375 kB / 442.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.3729, allocations: 0.5625 kB / 442.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.3729, allocations: 4.203 kB / 442.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.3759, allocations: 1.333 MB / 444.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.3759, allocations: 2.344 kB / 444.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.3762, allocations: 64.97 kB / 444.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006215/0.3768, allocations: 296.9 kB / 444.4 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.985e-05/0.3768, allocations: 23.12 kB / 444.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.3779, allocations: 1.319 MB / 445.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3779, allocations: 6.406 kB / 445.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.3799, allocations: 0.9118 MB / 446.7 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.3801, allocations: 162.5 kB / 446.9 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.17e-05/0.3802, allocations: 16.23 kB / 446.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003307/0.3805, allocations: 42.53 kB / 446.9 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.3808, allocations: 90.55 kB / 447 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.828e-05/0.3808, allocations: 21.2 kB / 447 MB, free: 172 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002086/0.381, allocations: 187 kB / 447.2 MB, free: 60 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.381, allocations: 0 / 447.2 MB, free: 60 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005416/0.3816, allocations: 96.89 kB / 447.3 MB, free: 48 kB / 350.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.003723/0.3853, allocations: 1.715 MB / 449 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.3866, allocations: 473.8 kB / 449.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3866, allocations: 1.25 kB / 449.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000694/0.3873, allocations: 279.6 kB / 449.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006266/0.3879, allocations: 68.48 kB / 449.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007634/0.3955, allocations: 4.061 MB / 453.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.3961, allocations: 0.7865 MB / 454.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.3963, allocations: 36.78 kB / 454.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.3965, allocations: 104.8 kB / 454.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3965, allocations: 0 / 454.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05293/0.4494, allocations: 11.93 MB / 466.7 MB, free: 6.504 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.71, allocations: 13.42 kB / 466.7 MB, free: 6.496 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.436106437817216] 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.86898311600089 12.891323835 12.533786497 Calling exit ...