Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_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.0008922/0.0008923, allocations: 93.5 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009509/0.000951, allocations: 192 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002508/0.0002508, allocations: 4 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1166, allocations: 51.51 MB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002819/0.1194, allocations: 2.158 MB / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008557/0.1203, allocations: 0.55 MB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.1204, allocations: 4 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.1207, allocations: 51.67 kB / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002345/0.121, allocations: 111.4 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.1212, allocations: 119.8 kB / 361.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004352/0.1216, allocations: 439.2 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.1218, allocations: 56.39 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/0.122, allocations: 203.3 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.1223, allocations: 219.2 kB / 362.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.868e-05/0.1224, allocations: 24 kB / 362.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.1226, allocations: 67.92 kB / 362.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1227, allocations: 91.69 kB / 362.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.301e-05/0.1228, allocations: 77.58 kB / 362.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000364/0.1232, allocations: 363.3 kB / 362.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1232, allocations: 3.938 kB / 362.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1232, allocations: 0 / 362.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.1232, allocations: 0 / 362.8 MB, free: 9.219 MB / 302.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.00108/0.1243, allocations: 0.6615 MB / 363.5 MB, free: 8.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1243, allocations: 12.03 kB / 363.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.294e-05/0.1244, allocations: 66.53 kB / 363.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.1245, allocations: 39.53 kB / 363.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.1248, allocations: 282.4 kB / 363.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.1249, allocations: 24.66 kB / 363.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.688e-05/0.1249, allocations: 31.95 kB / 363.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000639/0.1256, allocations: 373.9 kB / 364.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.1256, allocations: 0 / 364.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/0.1256, allocations: 12 kB / 364.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.1257, allocations: 8 kB / 364.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006889/0.1264, allocations: 374.4 kB / 364.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.1282, allocations: 1.151 MB / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005507/0.1287, allocations: 333.8 kB / 366.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003192/0.129, allocations: 189.4 kB / 366.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-05/0.1291, allocations: 7.953 kB / 366.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.1291, allocations: 42.55 kB / 366.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.1291, allocations: 0 / 366.4 MB, free: 5.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004007/0.1332, allocations: 2.042 MB / 368.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.1332, allocations: 55.84 kB / 368.5 MB, free: 3.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.1335, allocations: 260.9 kB / 368.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.1335, allocations: 37.7 kB / 368.8 MB, free: 2.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.548e-05/0.1336, allocations: 152.8 kB / 368.9 MB, free: 2.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.1337, allocations: 165.8 kB / 369.1 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/0.1338, allocations: 8 kB / 369.1 MB, free: 2.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1339, allocations: 342.8 kB / 369.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.1343, allocations: 193 kB / 369.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003877/0.1346, allocations: 260.8 kB / 369.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.1349, allocations: 156.7 kB / 370 MB, free: 1.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.135, allocations: 0 / 370 MB, free: 1.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001012/0.136, allocations: 0.5949 MB / 370.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.136, allocations: 4 kB / 370.6 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.136, allocations: 4 kB / 370.6 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006109/0.1366, allocations: 293.7 kB / 370.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/0.1369, allocations: 71.91 kB / 371 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.224/0.3609, allocations: 1.352 MB / 372.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.3615, allocations: 97.02 kB / 372.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.3616, allocations: 19.36 kB / 372.4 MB, free: 18.39 MB / 302.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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002539/0.3618, allocations: 165.8 kB / 372.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.254e-05/0.3619, allocations: 35.52 kB / 372.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.3621, allocations: 49.33 kB / 372.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.3621, allocations: 6.516 kB / 372.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.3621, allocations: 0.5 kB / 372.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.3621, allocations: 5.641 kB / 372.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002907/0.365, allocations: 1.346 MB / 374 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.365, allocations: 5.562 kB / 374 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002929/0.3653, allocations: 62.78 kB / 374.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006908/0.366, allocations: 260.9 kB / 374.4 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-05/0.3661, allocations: 22.89 kB / 374.4 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.3672, allocations: 1.302 MB / 375.7 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3672, allocations: 5.094 kB / 375.7 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.369, allocations: 0.8935 MB / 376.6 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.3692, allocations: 153.7 kB / 376.7 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.419e-05/0.3693, allocations: 19.22 kB / 376.8 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.3696, allocations: 52.22 kB / 376.8 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.3698, allocations: 106.4 kB / 376.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.3699, allocations: 20.44 kB / 376.9 MB, free: 16.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.3701, allocations: 181 kB / 377.1 MB, free: 16.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3701, allocations: 0 / 377.1 MB, free: 16.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004901/0.3706, allocations: 98.72 kB / 377.2 MB, free: 16.35 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00253/0.3731, allocations: 1.708 MB / 378.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.3742, allocations: 0.4885 MB / 379.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3742, allocations: 1.344 kB / 379.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005658/0.3748, allocations: 275.4 kB / 379.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.3753, allocations: 66.31 kB / 379.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.38, allocations: 2.659 MB / 382.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3803, allocations: 0.7867 MB / 383.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.3804, allocations: 38.25 kB / 383.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.3806, allocations: 102.1 kB / 383.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3806, allocations: 0 / 383.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02528/0.4059, allocations: 10.39 MB / 393.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.4061, allocations: 252.1 kB / 393.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.015/2.421, allocations: 0 / 393.9 MB, free: 8.727 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat