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.001293/0.001293, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.001424/0.001424, allocations: 218.9 kB / 23 MB, free: 5.617 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.451/1.451, allocations: 230.5 MB / 256.5 MB, free: 8.234 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.001981/0.001981, allocations: 63.89 kB / 376.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3034, allocations: 53.32 MB / 429.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004178/0.3076, allocations: 2.594 MB / 432.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.3088, allocations: 0.581 MB / 432.7 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.3089, allocations: 11.88 kB / 432.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003314/0.3092, allocations: 75.41 kB / 432.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003312/0.3096, allocations: 131.1 kB / 432.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003274/0.3099, allocations: 167.7 kB / 433.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000553/0.3104, allocations: 0.5069 MB / 433.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3106, allocations: 44.72 kB / 433.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002777/0.3109, allocations: 231.3 kB / 433.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003696/0.3113, allocations: 263.1 kB / 434.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.824e-05/0.3113, allocations: 40 kB / 434.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.3115, allocations: 91.98 kB / 434.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.3117, allocations: 115.6 kB / 434.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.3119, allocations: 195.1 kB / 434.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005776/0.3124, allocations: 0.4947 MB / 435 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3125, allocations: 0 / 435 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3125, allocations: 0 / 435 MB, free: 1.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.3125, allocations: 15.86 kB / 435 MB, free: 1.871 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.001389/0.3139, allocations: 0.7128 MB / 435.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.3139, allocations: 12.03 kB / 435.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.314, allocations: 66.72 kB / 435.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.987e-05/0.3141, allocations: 44.7 kB / 435.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.3146, allocations: 299.6 kB / 436.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.3146, allocations: 25.03 kB / 436.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.144e-05/0.3147, allocations: 32.38 kB / 436.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007173/0.3154, allocations: 370.5 kB / 436.6 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.3155, allocations: 11.89 kB / 436.6 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.3155, allocations: 8 kB / 436.6 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.3155, allocations: 8 kB / 436.6 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008581/0.3164, allocations: 390.4 kB / 437 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.3184, allocations: 1.124 MB / 438.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006458/0.3191, allocations: 322.6 kB / 438.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004428/0.3195, allocations: 172.8 kB / 438.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.3196, allocations: 11.98 kB / 438.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.3196, allocations: 30.56 kB / 438.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.365e-06/0.3196, allocations: 0 / 438.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00734/0.327, allocations: 2.012 MB / 440.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.327, allocations: 59.84 kB / 440.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004402/0.3275, allocations: 252.9 kB / 441 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.815e-05/0.3276, allocations: 45.69 kB / 441 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.3277, allocations: 161 kB / 441.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.3279, allocations: 170.6 kB / 441.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/0.3282, allocations: 98.19 kB / 441.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.3284, allocations: 346.7 kB / 441.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006496/0.3291, allocations: 193 kB / 442 MB, free: 10.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007555/0.3298, allocations: 272.8 kB / 442.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.3309, allocations: 357.6 kB / 442.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.3309, allocations: 0 / 442.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.002022/0.3329, allocations: 0.599 MB / 443.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.333, allocations: 8 kB / 443.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.333, allocations: 0 / 443.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.3342, allocations: 345.6 kB / 443.5 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.3346, allocations: 67.91 kB / 443.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.3367, allocations: 1.358 MB / 444.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006729/0.3374, allocations: 76.03 kB / 445 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-05/0.3374, allocations: 19.98 kB / 445 MB, free: 7.379 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.0003165/0.3377, allocations: 170.5 kB / 445.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.3379, allocations: 39.75 kB / 445.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001684/0.3381, allocations: 47.62 kB / 445.3 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3381, allocations: 7.984 kB / 445.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3381, allocations: 0 / 445.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3381, allocations: 192 / 445.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004218/0.3423, allocations: 1.331 MB / 446.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3423, allocations: 3.938 kB / 446.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003817/0.3427, allocations: 63.91 kB / 446.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008859/0.3436, allocations: 297.7 kB / 447 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.3436, allocations: 31.84 kB / 447 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/0.345, allocations: 1.312 MB / 448.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/0.345, allocations: 7.938 kB / 448.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.3469, allocations: 0.9062 MB / 449.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002293/0.3471, allocations: 164.8 kB / 449.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.752e-05/0.3472, allocations: 16 kB / 449.4 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.3475, allocations: 35.95 kB / 449.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.3477, allocations: 91.73 kB / 449.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.72e-05/0.3477, allocations: 31.97 kB / 449.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002195/0.3479, allocations: 176.5 kB / 449.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3479, allocations: 0 / 449.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000459/0.3484, allocations: 103.9 kB / 449.8 MB, free: 2.367 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.003375/0.3518, allocations: 1.723 MB / 451.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.3529, allocations: 473.3 kB / 452 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3529, allocations: 3.938 kB / 452 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005962/0.3535, allocations: 279.6 kB / 452.3 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005801/0.3541, allocations: 65.14 kB / 452.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007009/0.3611, allocations: 4.037 MB / 456.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.3615, allocations: 0.7878 MB / 457.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.3617, allocations: 38.95 kB / 457.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.3619, allocations: 103.4 kB / 457.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3619, allocations: 0 / 457.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04131/0.4032, allocations: 12.13 MB / 469.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.39, allocations: 10.55 kB / 469.5 MB, free: 14.74 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 --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: 14.849436721997336] 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.53851023799507 12.565596541 12.247728677 Calling exit ...