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.001548/0.001548, 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.001443/0.001443, 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.438/1.438, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.001973/0.001973, allocations: 64.77 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2996, allocations: 53.36 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004436/0.304, allocations: 2.608 MB / 434.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.3053, allocations: 0.5965 MB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.3054, allocations: 7.938 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003361/0.3058, allocations: 71.42 kB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.3061, allocations: 135 kB / 435.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000339/0.3064, allocations: 159.8 kB / 435.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006283/0.3071, allocations: 0.5148 MB / 436 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.3072, allocations: 48.91 kB / 436 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.3075, allocations: 231.3 kB / 436.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004114/0.3079, allocations: 255.2 kB / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.596e-05/0.308, allocations: 40 kB / 436.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.3082, allocations: 91.98 kB / 436.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.3084, allocations: 115.6 kB / 436.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.3086, allocations: 203 kB / 436.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006719/0.3093, allocations: 0.5068 MB / 437.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3093, allocations: 0 / 437.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3093, allocations: 0 / 437.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3093, allocations: 3.938 kB / 437.5 MB, free: 1.316 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.001362/0.3107, allocations: 0.6398 MB / 438.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3107, allocations: 8.031 kB / 438.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.346e-05/0.3108, allocations: 70.72 kB / 438.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.607e-05/0.3109, allocations: 36.7 kB / 438.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.3114, allocations: 241.8 kB / 438.4 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.3114, allocations: 25.03 kB / 438.5 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/0.3115, allocations: 32.38 kB / 438.5 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007381/0.3122, allocations: 378.5 kB / 438.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.3122, allocations: 11.83 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.053e-05/0.3123, allocations: 16 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.3123, allocations: 8 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008148/0.3131, allocations: 382.4 kB / 439.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.3152, allocations: 1.095 MB / 440.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006435/0.3158, allocations: 306.6 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003757/0.3162, allocations: 188.7 kB / 440.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/0.3162, allocations: 7.984 kB / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.3163, allocations: 38.56 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.482e-06/0.3163, allocations: 3.938 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004464/0.3207, allocations: 1.699 MB / 442.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3208, allocations: 55.84 kB / 442.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/0.3211, allocations: 257 kB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.3211, allocations: 45.69 kB / 443 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.3213, allocations: 157 kB / 443.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.3214, allocations: 170.6 kB / 443.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.3216, allocations: 94.3 kB / 443.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3217, allocations: 346.7 kB / 443.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000391/0.3221, allocations: 197.2 kB / 443.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000446/0.3226, allocations: 269.7 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006345/0.3232, allocations: 349.7 kB / 444.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3232, allocations: 3.938 kB / 444.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001217/0.3244, allocations: 0.6069 MB / 445.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.3244, allocations: 11.94 kB / 445.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3245, allocations: 0 / 445.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007662/0.3252, allocations: 341.7 kB / 445.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.3255, allocations: 71.84 kB / 445.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.3269, allocations: 1.37 MB / 446.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/0.3274, allocations: 71.84 kB / 447 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.3274, allocations: 20.12 kB / 447 MB, free: 7.391 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.0002538/0.3277, allocations: 165.7 kB / 447.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.303e-05/0.3278, allocations: 39.7 kB / 447.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.3279, allocations: 51.61 kB / 447.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3279, allocations: 4 kB / 447.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.3279, allocations: 0 / 447.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3279, allocations: 0 / 447.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002847/0.3308, allocations: 1.302 MB / 448.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3308, allocations: 0 / 448.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/0.331, allocations: 56.12 kB / 448.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006329/0.3317, allocations: 317.4 kB / 448.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.3317, allocations: 23.86 kB / 448.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.333, allocations: 1.308 MB / 450.2 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.333, allocations: 4.031 kB / 450.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.3348, allocations: 0.9142 MB / 451.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.335, allocations: 83.67 kB / 451.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.3351, allocations: 16 kB / 451.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002975/0.3354, allocations: 43.95 kB / 451.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.3356, allocations: 91.75 kB / 451.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.3356, allocations: 23.98 kB / 451.4 MB, free: 2.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.3358, allocations: 180.5 kB / 451.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3358, allocations: 0 / 451.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004677/0.3363, allocations: 100 kB / 451.7 MB, free: 2.508 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.003281/0.3396, allocations: 1.722 MB / 453.4 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.3407, allocations: 465.2 kB / 453.9 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3407, allocations: 0 / 453.9 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.3414, allocations: 288.1 kB / 454.1 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.3419, allocations: 56.41 kB / 454.2 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007044/0.3489, allocations: 4.056 MB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.3494, allocations: 0.7879 MB / 459 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.3496, allocations: 34.97 kB / 459.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.3498, allocations: 99.39 kB / 459.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3498, allocations: 0 / 459.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04884/0.3986, allocations: 12.44 MB / 471.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.72, allocations: 0 / 471.6 MB, free: 14.58 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.169030949939042] 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.880404162220657 12.897522238 12.584744796 Calling exit ...