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.00156/0.00156, 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.001666/0.001666, allocations: 212 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.482/1.482, 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.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.002009/0.002009, allocations: 64.75 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.3005, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004751/0.3052, allocations: 2.59 MB / 434.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.3066, allocations: 0.5889 MB / 435.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.3067, allocations: 7.938 kB / 435.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004167/0.3072, allocations: 71.42 kB / 435.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003869/0.3075, allocations: 135 kB / 435.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004271/0.308, allocations: 167.8 kB / 435.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006372/0.3086, allocations: 0.507 MB / 436 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.3088, allocations: 52.89 kB / 436 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002854/0.3091, allocations: 227.4 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003803/0.3095, allocations: 259.2 kB / 436.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.027e-05/0.3095, allocations: 40 kB / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.3097, allocations: 99.92 kB / 436.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.3099, allocations: 115.6 kB / 436.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.3101, allocations: 195.1 kB / 436.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.3107, allocations: 0.499 MB / 437.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3107, allocations: 4 kB / 437.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3107, allocations: 0 / 437.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.3107, allocations: 0 / 437.4 MB, free: 1.352 MB / 334.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.001372/0.3121, allocations: 0.6452 MB / 438.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3121, allocations: 8.031 kB / 438.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.615e-05/0.3122, allocations: 66.67 kB / 438.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.828e-05/0.3123, allocations: 40.7 kB / 438.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/0.3128, allocations: 245.8 kB / 438.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.3129, allocations: 25.03 kB / 438.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.286e-05/0.3129, allocations: 32.31 kB / 438.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000751/0.3137, allocations: 378.5 kB / 438.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.3137, allocations: 7.891 kB / 438.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.818e-05/0.3138, allocations: 19.98 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.3138, allocations: 11.98 kB / 438.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007986/0.3146, allocations: 382.4 kB / 439.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.3167, allocations: 1.095 MB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000643/0.3173, allocations: 310.6 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003626/0.3177, allocations: 176.8 kB / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.458e-05/0.3177, allocations: 11.98 kB / 440.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.3178, allocations: 38.56 kB / 440.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.834e-06/0.3178, allocations: 0 / 440.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004632/0.3224, allocations: 1.699 MB / 442.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.3225, allocations: 67.78 kB / 442.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.3228, allocations: 253 kB / 442.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.574e-05/0.3229, allocations: 41.7 kB / 442.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.323, allocations: 157 kB / 443.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.3232, allocations: 170.6 kB / 443.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.3234, allocations: 98.28 kB / 443.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3235, allocations: 342.8 kB / 443.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003995/0.3239, allocations: 197.2 kB / 443.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004785/0.3244, allocations: 265.7 kB / 444.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006568/0.3251, allocations: 357.6 kB / 444.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3251, allocations: 0 / 444.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001239/0.3263, allocations: 0.5991 MB / 445.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.3263, allocations: 14.66 kB / 445.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3263, allocations: 0 / 445.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007638/0.3271, allocations: 345.5 kB / 445.4 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.3274, allocations: 67.91 kB / 445.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.3288, allocations: 1.37 MB / 446.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004259/0.3293, allocations: 71.86 kB / 447 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.3293, allocations: 19.98 kB / 447 MB, free: 7.422 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.000247/0.3296, allocations: 165.8 kB / 447.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.3296, allocations: 43.7 kB / 447.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.3298, allocations: 47.61 kB / 447.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.3298, allocations: 4 kB / 447.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.3298, allocations: 0 / 447.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.3298, allocations: 7.984 kB / 447.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.3326, allocations: 1.302 MB / 448.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3326, allocations: 0 / 448.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.3329, allocations: 63.91 kB / 448.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006268/0.3335, allocations: 301.7 kB / 448.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.675e-05/0.3336, allocations: 27.91 kB / 448.9 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.3349, allocations: 1.319 MB / 450.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3349, allocations: 0 / 450.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.3367, allocations: 0.9025 MB / 451.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.3369, allocations: 91.66 kB / 451.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.157e-05/0.337, allocations: 16 kB / 451.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.3373, allocations: 39.95 kB / 451.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.3375, allocations: 91.77 kB / 451.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.3375, allocations: 19.98 kB / 451.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002132/0.3378, allocations: 188.4 kB / 451.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3378, allocations: 0 / 451.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005025/0.3383, allocations: 96 kB / 451.7 MB, free: 2.535 MB / 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.003458/0.3417, allocations: 1.719 MB / 453.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.3429, allocations: 469.2 kB / 453.9 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3429, allocations: 0 / 453.9 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006093/0.3435, allocations: 292.2 kB / 454.1 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005751/0.344, allocations: 60.53 kB / 454.2 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007222/0.3513, allocations: 4.048 MB / 458.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.3517, allocations: 0.7879 MB / 459 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.3519, allocations: 38.97 kB / 459.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.3521, allocations: 103.4 kB / 459.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3521, allocations: 0 / 459.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05018/0.4023, allocations: 12.43 MB / 471.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.61, allocations: 3.938 kB / 471.6 MB, free: 14.6 MB / 382.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.132379312068224] 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.779267277102917 12.794177633 12.480298123 Calling exit ...