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.001337/0.001337, allocations: 112.4 kB / 18.5 MB, free: 4.582 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.001455/0.001455, allocations: 204.9 kB / 21.46 MB, free: 1.629 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.488/1.488, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.001988/0.001988, allocations: 67.89 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1171, allocations: 53.31 MB / 426.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004339/0.1215, allocations: 2.587 MB / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.1228, allocations: 0.5849 MB / 430 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.1229, allocations: 4 kB / 430 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003498/0.1233, allocations: 67.44 kB / 430.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003766/0.1236, allocations: 135 kB / 430.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003986/0.124, allocations: 163.8 kB / 430.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006167/0.1246, allocations: 0.5147 MB / 430.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.1248, allocations: 52.66 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002745/0.1251, allocations: 219.4 kB / 431.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003778/0.1255, allocations: 263.1 kB / 431.4 MB, free: 284 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.758e-05/0.1255, allocations: 40 kB / 431.5 MB, free: 244 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.1258, allocations: 95.92 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.1259, allocations: 111.7 kB / 431.7 MB, free: 36 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2118/0.3377, allocations: 194 kB / 431.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007479/0.3384, allocations: 0.5049 MB / 432.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.657e-05/0.3385, allocations: 0 / 432.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.3385, allocations: 3.953 kB / 432.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.3385, allocations: 0 / 432.4 MB, free: 8.086 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.001213/0.3397, allocations: 0.7143 MB / 433.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.3397, allocations: 9.125 kB / 433.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.001e-05/0.3398, allocations: 62.67 kB / 433.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.3399, allocations: 42.42 kB / 433.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.3403, allocations: 297.3 kB / 433.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.3404, allocations: 24.06 kB / 433.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-05/0.3404, allocations: 28.69 kB / 433.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008105/0.3413, allocations: 380.9 kB / 433.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.3413, allocations: 10.67 kB / 433.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.3413, allocations: 14.5 kB / 433.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.3413, allocations: 7.625 kB / 433.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006876/0.342, allocations: 385.7 kB / 434.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.344, allocations: 1.125 MB / 435.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006515/0.3447, allocations: 312.2 kB / 435.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.345, allocations: 185.7 kB / 435.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.631e-05/0.3451, allocations: 7.609 kB / 435.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.3451, allocations: 41 kB / 436 MB, free: 6.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.615e-06/0.3451, allocations: 1.406 kB / 436 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004615/0.3497, allocations: 1.998 MB / 438 MB, free: 5.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.3497, allocations: 57.52 kB / 438 MB, free: 5.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.35, allocations: 249.9 kB / 438.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.3501, allocations: 46.14 kB / 438.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.836e-05/0.3502, allocations: 159.4 kB / 438.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.3503, allocations: 172.8 kB / 438.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.3505, allocations: 100.4 kB / 438.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.56e-05/0.3505, allocations: 344 kB / 439.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.3509, allocations: 190.1 kB / 439.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.3513, allocations: 270.4 kB / 439.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.3519, allocations: 355 kB / 439.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3519, allocations: 0 / 439.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001247/0.3532, allocations: 0.6006 MB / 440.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3532, allocations: 5.688 kB / 440.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.3532, allocations: 2.219 kB / 440.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007412/0.354, allocations: 347.3 kB / 440.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002882/0.3542, allocations: 74.81 kB / 440.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.3553, allocations: 1.364 MB / 442.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004556/0.3557, allocations: 74.61 kB / 442.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.3558, allocations: 19 kB / 442.4 MB, free: 3.059 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.0002091/0.356, allocations: 161.7 kB / 442.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.96e-05/0.3561, allocations: 36.62 kB / 442.6 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.688e-05/0.3562, allocations: 51.91 kB / 442.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3562, allocations: 5.375 kB / 442.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.3562, allocations: 8.75 kB / 442.6 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.3562, allocations: 2.484 kB / 442.6 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002813/0.359, allocations: 1.338 MB / 444 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.359, allocations: 2.594 kB / 444 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.3593, allocations: 61.31 kB / 444 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005797/0.3598, allocations: 299.5 kB / 444.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/0.3599, allocations: 23.22 kB / 444.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000981/0.3609, allocations: 1.315 MB / 445.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/0.3609, allocations: 7 kB / 445.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.3626, allocations: 0.8983 MB / 446.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.3628, allocations: 169.2 kB / 446.7 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8e-05/0.3629, allocations: 17.23 kB / 446.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.3632, allocations: 37.86 kB / 446.8 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/0.3634, allocations: 92.11 kB / 446.9 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/0.3635, allocations: 24.58 kB / 446.9 MB, free: 216 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.3636, allocations: 178.9 kB / 447.1 MB, free: 112 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3636, allocations: 5.094 kB / 447.1 MB, free: 108 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004893/0.3641, allocations: 99.08 kB / 447.2 MB, free: 92 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.003347/0.3675, allocations: 1.724 MB / 448.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.3686, allocations: 468 kB / 449.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3686, allocations: 4 kB / 449.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006192/0.3692, allocations: 284.7 kB / 449.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005717/0.3698, allocations: 64.78 kB / 449.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007294/0.3771, allocations: 4.055 MB / 453.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.3776, allocations: 0.7867 MB / 454.5 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002142/0.3778, allocations: 36.45 kB / 454.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.378, allocations: 104.8 kB / 454.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.378, allocations: 0 / 454.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05123/0.4292, allocations: 11.94 MB / 466.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.61, allocations: 4.781 kB / 466.6 MB, free: 6.539 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 & /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.105515043251216] 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.754158522002399 12.774725125 12.431402813 Calling exit ...