Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001599/0.001603, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.244/2.244, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001206/0.001206, allocations: 106.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005874/0.0005876, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1207, allocations: 47.57 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003605/0.1244, allocations: 1.952 MB / 376.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.1259, allocations: 0.5 MB / 377.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.1262, allocations: 11.94 kB / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.1263, allocations: 31.75 kB / 377.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.1266, allocations: 95.73 kB / 377.2 MB, free: 12.74 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006324/0.1273, allocations: 139.7 kB / 377.4 MB, free: 12.6 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005904/0.1279, allocations: 296 kB / 377.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.1281, allocations: 52.7 kB / 377.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003456/0.1285, allocations: 183.4 kB / 377.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004063/0.1289, allocations: 215.2 kB / 378.1 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.589e-05/0.129, allocations: 20 kB / 378.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002376/0.1293, allocations: 63.97 kB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1294, allocations: 83.69 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.1295, allocations: 73.58 kB / 378.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005475/0.1301, allocations: 323.3 kB / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1301, allocations: 0 / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1301, allocations: 4 kB / 378.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.1302, allocations: 0 / 378.6 MB, free: 11.31 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001864/0.132, allocations: 0.6197 MB / 379.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.1321, allocations: 8.031 kB / 379.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.1322, allocations: 62.53 kB / 379.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.1324, allocations: 35.62 kB / 379.4 MB, free: 10.53 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000486/0.1329, allocations: 283.3 kB / 379.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.536e-05/0.1329, allocations: 24.56 kB / 379.7 MB, free: 10.19 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.1331, allocations: 28 kB / 379.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.1343, allocations: 372.7 kB / 380.1 MB, free: 9.789 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.1343, allocations: 3.906 kB / 380.1 MB, free: 9.785 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.1344, allocations: 12 kB / 380.1 MB, free: 9.773 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.1344, allocations: 8 kB / 380.1 MB, free: 9.766 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.1358, allocations: 402 kB / 380.5 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003281/0.1391, allocations: 1.143 MB / 381.6 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/0.1401, allocations: 295.5 kB / 381.9 MB, free: 7.855 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.21e-05/0.1402, allocations: 4.328 kB / 381.9 MB, free: 7.852 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.525e-05/0.1402, allocations: 43.2 kB / 381.9 MB, free: 7.801 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 3.417e-06/0.1403, allocations: 4 kB / 381.9 MB, free: 7.797 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008118/0.1484, allocations: 2.096 MB / 384 MB, free: 5.562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.1485, allocations: 63.3 kB / 384.1 MB, free: 5.488 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003777/0.1489, allocations: 240.9 kB / 384.3 MB, free: 5.242 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.574e-05/0.149, allocations: 45.7 kB / 384.4 MB, free: 5.191 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1492, allocations: 211.2 kB / 384.6 MB, free: 4.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.1494, allocations: 154 kB / 384.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/0.1494, allocations: 12 kB / 384.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1496, allocations: 330.8 kB / 385.1 MB, free: 4.484 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007122/0.1503, allocations: 209 kB / 385.3 MB, free: 4.281 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007681/0.1511, allocations: 276.8 kB / 385.6 MB, free: 3.984 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006062/0.1517, allocations: 176.7 kB / 385.7 MB, free: 3.812 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1518, allocations: 4 kB / 385.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00262/0.1544, allocations: 0.6808 MB / 386.4 MB, free: 3.113 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.1545, allocations: 4 kB / 386.4 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1545, allocations: 0 / 386.4 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001506/0.156, allocations: 0.4936 MB / 386.9 MB, free: 2.609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006109/0.1567, allocations: 79.84 kB / 387 MB, free: 2.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/0.1588, allocations: 1.39 MB / 388.4 MB, free: 1.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008837/0.1597, allocations: 92.05 kB / 388.5 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.793e-05/0.1598, allocations: 19.98 kB / 388.5 MB, free: 0.9805 MB / 282.7 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 (49): * Single equations (assignments): 47 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003352/0.1601, allocations: 166 kB / 388.6 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.1603, allocations: 31.58 kB / 388.7 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.1604, allocations: 51.3 kB / 388.7 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.1604, allocations: 4 kB / 388.7 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.1605, allocations: 0 / 388.7 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.1605, allocations: 3.984 kB / 388.7 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2649/0.4254, allocations: 1.383 MB / 390.1 MB, free: 20.76 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/0.4254, allocations: 4.906 kB / 390.1 MB, free: 20.76 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005889/0.426, allocations: 61.61 kB / 390.2 MB, free: 20.76 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.4275, allocations: 461.3 kB / 390.6 MB, free: 20.74 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.4277, allocations: 18.67 kB / 390.7 MB, free: 20.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.4295, allocations: 1.337 MB / 392 MB, free: 19.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.934e-06/0.4296, allocations: 9.406 kB / 392 MB, free: 19.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.4328, allocations: 1.008 MB / 393 MB, free: 19.42 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003017/0.4331, allocations: 153.8 kB / 393.2 MB, free: 19.31 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.4333, allocations: 17.38 kB / 393.2 MB, free: 19.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005648/0.4338, allocations: 50 kB / 393.2 MB, free: 19.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003764/0.4342, allocations: 107.8 kB / 393.3 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.976e-05/0.4343, allocations: 20.48 kB / 393.3 MB, free: 19.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002501/0.4346, allocations: 173.8 kB / 393.5 MB, free: 19.18 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4346, allocations: 0 / 393.5 MB, free: 19.18 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006921/0.4353, allocations: 104.3 kB / 393.6 MB, free: 19.16 MB / 282.7 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 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003674/0.439, allocations: 1.919 MB / 395.5 MB, free: 17.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001922/0.441, allocations: 0.5082 MB / 396 MB, free: 17.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.441, allocations: 0 / 396 MB, free: 17.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.4421, allocations: 292.2 kB / 396.3 MB, free: 17.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/0.4428, allocations: 39.91 kB / 396.4 MB, free: 17.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008772/0.4516, allocations: 3.751 MB / 400.1 MB, free: 14.97 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.452, allocations: 0.7897 MB / 400.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002924/0.4523, allocations: 93.77 kB / 401 MB, free: 14.21 MB / 282.7 MB Notification: Performance of SimCode: time 1.363e-06/0.4523, allocations: 0 / 401 MB, free: 14.21 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.185/3.638, allocations: 7.506 MB / 408.5 MB, free: 11.7 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat