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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.483/1.483, allocations: 227.7 MB / 247.2 MB, free: 10.22 MB / 206.1 MB 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.001972/0.001972, allocations: 63.88 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3011, allocations: 50.54 MB / 409 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004201/0.3054, allocations: 2.573 MB / 411.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.3068, allocations: 0.5849 MB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.307, allocations: 4 kB / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003575/0.3074, allocations: 67.44 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003883/0.3078, allocations: 139 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004353/0.3082, allocations: 163.7 kB / 412.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006874/0.3089, allocations: 0.5108 MB / 413.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.3092, allocations: 72.69 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003176/0.3095, allocations: 223.3 kB / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003808/0.3099, allocations: 255.1 kB / 413.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.76e-05/0.31, allocations: 40 kB / 413.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002336/0.3102, allocations: 91.98 kB / 413.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.3104, allocations: 111.7 kB / 413.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.3106, allocations: 203 kB / 414 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006768/0.3113, allocations: 0.4971 MB / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3114, allocations: 4 kB / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3114, allocations: 0 / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.3114, allocations: 0 / 414.5 MB, free: 11.88 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.001502/0.3129, allocations: 0.7166 MB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3129, allocations: 12.03 kB / 415.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.3131, allocations: 62.73 kB / 415.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.3132, allocations: 44.69 kB / 415.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005492/0.3137, allocations: 295.7 kB / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.3138, allocations: 29.03 kB / 415.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.538e-05/0.3139, allocations: 32.36 kB / 415.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007795/0.3147, allocations: 378.4 kB / 416.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.3147, allocations: 7.891 kB / 416.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.253e-05/0.3147, allocations: 12 kB / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.3148, allocations: 8 kB / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008465/0.3156, allocations: 386.3 kB / 416.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.3181, allocations: 1.131 MB / 417.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007492/0.3189, allocations: 334.6 kB / 418 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003884/0.3193, allocations: 184.8 kB / 418.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.778e-05/0.3194, allocations: 4 kB / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.3194, allocations: 42.55 kB / 418.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 3.807e-06/0.3194, allocations: 0 / 418.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005225/0.3247, allocations: 2.008 MB / 420.2 MB, free: 5.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.3248, allocations: 55.84 kB / 420.2 MB, free: 5.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.3251, allocations: 264.9 kB / 420.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.459e-05/0.3252, allocations: 37.7 kB / 420.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.3253, allocations: 157 kB / 420.7 MB, free: 5.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.3255, allocations: 174.6 kB / 420.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.3257, allocations: 94.19 kB / 421 MB, free: 5.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.3259, allocations: 350.7 kB / 421.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/0.3263, allocations: 189 kB / 421.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004757/0.3267, allocations: 268.8 kB / 421.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006623/0.3274, allocations: 357.7 kB / 422.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3274, allocations: 0 / 422.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001286/0.3287, allocations: 0.6146 MB / 422.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.3288, allocations: 10.5 kB / 422.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3288, allocations: 0 / 422.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008285/0.3296, allocations: 345.5 kB / 423.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.3299, allocations: 63.91 kB / 423.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.3314, allocations: 1.366 MB / 424.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004988/0.3319, allocations: 75.98 kB / 424.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.332, allocations: 19.94 kB / 424.6 MB, free: 1.336 MB / 334.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.000265/0.3323, allocations: 169.7 kB / 424.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.725e-05/0.3324, allocations: 39.75 kB / 424.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.3325, allocations: 47.62 kB / 424.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3325, allocations: 4 kB / 424.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.3325, allocations: 3.984 kB / 424.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3325, allocations: 8 kB / 424.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.3355, allocations: 1.331 MB / 426.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.3355, allocations: 8.156 kB / 426.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/0.3358, allocations: 59.91 kB / 426.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006631/0.3365, allocations: 301.5 kB / 426.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.396e-05/0.3366, allocations: 23.91 kB / 426.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.3381, allocations: 1.312 MB / 427.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3381, allocations: 0 / 427.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.34, allocations: 0.91 MB / 428.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.3402, allocations: 164.8 kB / 428.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.121e-05/0.3403, allocations: 23.94 kB / 429 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.3407, allocations: 44.02 kB / 429 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.3409, allocations: 87.89 kB / 429.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.941e-05/0.3409, allocations: 27.95 kB / 429.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000223/0.3412, allocations: 180.5 kB / 429.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3412, allocations: 0 / 429.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004937/0.3417, allocations: 103.9 kB / 429.4 MB, free: 12.31 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.003467/0.3452, allocations: 1.725 MB / 431.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.3464, allocations: 0.4976 MB / 431.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3465, allocations: 4.312 kB / 431.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006468/0.3471, allocations: 291.7 kB / 431.9 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006102/0.3477, allocations: 56.52 kB / 432 MB, free: 9.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007074/0.3548, allocations: 4.068 MB / 436 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004669/0.3553, allocations: 0.7839 MB / 436.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.3555, allocations: 38.95 kB / 436.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.3557, allocations: 99.39 kB / 437 MB, free: 4.645 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3557, allocations: 0 / 437 MB, free: 4.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04549/0.4012, allocations: 11.89 MB / 448.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.51, allocations: 4.891 kB / 448.8 MB, free: 8.945 MB / 366.1 MB (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)