Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007708/0.000771, allocations: 94.39 kB / 16.31 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008858/0.000886, allocations: 185.4 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.2 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.0002471, allocations: 5.969 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1047, allocations: 50.42 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002717/0.1075, allocations: 2.039 MB / 353.4 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000933/0.1085, allocations: 483.3 kB / 353.8 MB, free: 9.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.1086, allocations: 4 kB / 353.8 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.1088, allocations: 39.7 kB / 353.9 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.1089, allocations: 71.44 kB / 354 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.1093, allocations: 143.8 kB / 354.1 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003936/0.1097, allocations: 435.1 kB / 354.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.1099, allocations: 48.59 kB / 354.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.1101, allocations: 191.3 kB / 354.8 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.1104, allocations: 203.3 kB / 355 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.266e-05/0.1105, allocations: 23.98 kB / 355 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.1106, allocations: 67.89 kB / 355 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.864e-05/0.1107, allocations: 71.77 kB / 355.1 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.156e-05/0.1108, allocations: 81.52 kB / 355.2 MB, free: 7.707 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003347/0.1112, allocations: 315.1 kB / 355.5 MB, free: 7.398 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1112, allocations: 4 kB / 355.5 MB, free: 7.395 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1112, allocations: 4 kB / 355.5 MB, free: 7.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1112, allocations: 0 / 355.5 MB, free: 7.391 MB / 286.1 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.001062/0.1123, allocations: 0.6197 MB / 356.1 MB, free: 6.723 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1123, allocations: 8.031 kB / 356.1 MB, free: 6.715 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.678e-05/0.1124, allocations: 74.48 kB / 356.2 MB, free: 6.633 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.97e-05/0.1125, allocations: 35.62 kB / 356.2 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.1128, allocations: 283.3 kB / 356.5 MB, free: 6.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.1128, allocations: 20.56 kB / 356.5 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-05/0.1129, allocations: 24 kB / 356.6 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.1136, allocations: 380.6 kB / 356.9 MB, free: 5.863 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.1136, allocations: 11.91 kB / 356.9 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.1136, allocations: 8 kB / 357 MB, free: 5.844 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1137, allocations: 11.95 kB / 357 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007095/0.1144, allocations: 410 kB / 357.4 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.1162, allocations: 1.131 MB / 358.5 MB, free: 4.227 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.1167, allocations: 293.2 kB / 358.8 MB, free: 3.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.1171, allocations: 205.8 kB / 359 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.1171, allocations: 4 kB / 359 MB, free: 3.723 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.1172, allocations: 34.5 kB / 359 MB, free: 3.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.964e-06/0.1172, allocations: 0 / 359 MB, free: 3.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004257/0.1214, allocations: 2.123 MB / 361.1 MB, free: 1.418 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.1215, allocations: 55.41 kB / 361.2 MB, free: 1.352 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.1217, allocations: 233 kB / 361.4 MB, free: 1.109 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.659e-05/0.1218, allocations: 41.7 kB / 361.5 MB, free: 1.062 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1219, allocations: 152.7 kB / 361.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.122, allocations: 154 kB / 361.8 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.293e-05/0.1221, allocations: 15.92 kB / 361.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1222, allocations: 338.8 kB / 362.1 MB, free: 412 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.1226, allocations: 205 kB / 362.3 MB, free: 204 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004353/0.123, allocations: 292.8 kB / 362.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.1234, allocations: 172.7 kB / 362.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1234, allocations: 4 kB / 362.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001333/0.1247, allocations: 0.6923 MB / 363.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.1248, allocations: 12.16 kB / 363.5 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1248, allocations: 0 / 363.5 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008575/0.1256, allocations: 497.4 kB / 364 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.1259, allocations: 67.91 kB / 364 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.1271, allocations: 1.394 MB / 365.4 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003833/0.1275, allocations: 96 kB / 365.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.1276, allocations: 19.94 kB / 365.5 MB, free: 12.89 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 (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.0001956/0.1278, allocations: 169.5 kB / 365.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.1279, allocations: 31.62 kB / 365.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.128, allocations: 47.31 kB / 365.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.128, allocations: 8 kB / 365.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.128, allocations: 3.953 kB / 365.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.128, allocations: 3.984 kB / 365.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/0.1306, allocations: 1.368 MB / 367.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.1307, allocations: 4 kB / 367.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002717/0.1309, allocations: 64.06 kB / 367.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007288/0.1317, allocations: 465.3 kB / 367.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/0.1317, allocations: 19.97 kB / 367.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.1328, allocations: 1.339 MB / 369 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1329, allocations: 8.062 kB / 369.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.1345, allocations: 0.9472 MB / 370 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/0.1347, allocations: 152.7 kB / 370.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.958e-05/0.1348, allocations: 20 kB / 370.2 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.1351, allocations: 47.95 kB / 370.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.1353, allocations: 103.8 kB / 370.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.061e-05/0.1353, allocations: 23.92 kB / 370.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001529/0.1355, allocations: 168.5 kB / 370.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1355, allocations: 0 / 370.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004567/0.136, allocations: 112 kB / 370.6 MB, free: 7.605 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 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002017/0.138, allocations: 1.52 MB / 372.1 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.139, allocations: 0.5099 MB / 372.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.139, allocations: 8.25 kB / 372.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005575/0.1396, allocations: 283.8 kB / 372.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000478/0.1401, allocations: 54.61 kB / 373 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00469/0.1448, allocations: 2.667 MB / 375.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.1452, allocations: 0.7802 MB / 376.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.1453, allocations: 42.95 kB / 376.5 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.1455, allocations: 91.39 kB / 376.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1455, allocations: 0 / 376.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.1696, allocations: 10.52 MB / 387.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000327/0.1699, allocations: 213.9 kB / 387.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/2.21, allocations: 0 / 387.3 MB, free: 6.918 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat