Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.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.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater",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.00168/0.001686, allocations: 186.7 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.174/2.174, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.001195/0.001195, allocations: 94.81 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003864, allocations: 8 kB / 327 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1028, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.006388/0.1092, allocations: 3.702 MB / 378.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002709/0.112, allocations: 1.516 MB / 379.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.802e-05/0.1121, allocations: 0 / 379.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.1124, allocations: 35.8 kB / 379.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003728/0.1128, allocations: 103.7 kB / 380 MB, free: 9.945 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000928/0.1137, allocations: 227.5 kB / 380.2 MB, free: 9.723 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.1141, allocations: 179.6 kB / 380.4 MB, free: 9.547 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.126e-05/0.1142, allocations: 16.89 kB / 380.4 MB, free: 9.531 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003355/0.1145, allocations: 115.7 kB / 380.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.1147, allocations: 63.75 kB / 380.6 MB, free: 9.355 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.728e-05/0.1148, allocations: 8 kB / 380.6 MB, free: 9.348 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004464/0.1152, allocations: 91.83 kB / 380.7 MB, free: 9.258 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.873e-05/0.1153, allocations: 31.89 kB / 380.7 MB, free: 9.227 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.52e-05/0.1154, allocations: 61.64 kB / 380.8 MB, free: 9.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003471/0.1158, allocations: 135.9 kB / 380.9 MB, free: 9.027 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.1158, allocations: 0 / 380.9 MB, free: 9.027 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1158, allocations: 0 / 380.9 MB, free: 9.027 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1158, allocations: 0 / 380.9 MB, free: 9.027 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001259/0.1171, allocations: 455.3 kB / 381.3 MB, free: 8.535 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.1172, allocations: 8.031 kB / 381.3 MB, free: 8.527 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.789e-05/0.1173, allocations: 50.55 kB / 381.4 MB, free: 8.469 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.1175, allocations: 23.8 kB / 381.4 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.1178, allocations: 210.8 kB / 381.6 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.1179, allocations: 8.281 kB / 381.6 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.1179, allocations: 19.98 kB / 381.6 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006421/0.1186, allocations: 212.6 kB / 381.9 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.1186, allocations: 0 / 381.9 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/0.1187, allocations: 7.938 kB / 381.9 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1187, allocations: 4 kB / 381.9 MB, free: 7.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006198/0.1193, allocations: 147.8 kB / 382 MB, free: 7.785 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.1214, allocations: 0.9518 MB / 383 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000668/0.1221, allocations: 142.8 kB / 383.1 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008286/0.1229, allocations: 0.5035 MB / 383.6 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.123, allocations: 38.52 kB / 383.6 MB, free: 5.996 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.575e-06/0.123, allocations: 0 / 383.6 MB, free: 5.996 MB / 282.7 MB Notification: Performance of matching and sorting (n=20): time 0.004319/0.1273, allocations: 0.7595 MB / 384.4 MB, free: 5.184 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.146e-05/0.1275, allocations: 55.41 kB / 384.5 MB, free: 5.117 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.1277, allocations: 158.8 kB / 384.6 MB, free: 4.953 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.1277, allocations: 25.7 kB / 384.6 MB, free: 4.922 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.1279, allocations: 210.3 kB / 384.8 MB, free: 4.715 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.447e-05/0.128, allocations: 74.94 kB / 384.9 MB, free: 4.641 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.882e-05/0.128, allocations: 8 kB / 384.9 MB, free: 4.633 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1282, allocations: 322.8 kB / 385.2 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004297/0.1286, allocations: 79.94 kB / 385.3 MB, free: 4.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005244/0.1292, allocations: 189.4 kB / 385.5 MB, free: 3.996 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.1297, allocations: 108.8 kB / 385.6 MB, free: 3.891 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.1297, allocations: 4 kB / 385.6 MB, free: 3.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001221/0.131, allocations: 323 kB / 385.9 MB, free: 3.566 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.131, allocations: 11.95 kB / 385.9 MB, free: 3.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.131, allocations: 7.938 kB / 385.9 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.1311, allocations: 7.938 kB / 386 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007122/0.1318, allocations: 88.33 kB / 386 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-05/0.1318, allocations: 15.97 kB / 386.1 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.1322, allocations: 15.98 kB / 386.1 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.1323, allocations: 12 kB / 386.1 MB, free: 3.41 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001934/0.1325, allocations: 133.9 kB / 386.2 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.427e-05/0.1326, allocations: 15.81 kB / 386.2 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.1338, allocations: 242.6 kB / 386.5 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.1338, allocations: 4 kB / 386.5 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1338, allocations: 0 / 386.5 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.1338, allocations: 3.953 kB / 386.5 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.136, allocations: 0.5958 MB / 387.1 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.1361, allocations: 0 / 387.1 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005489/0.1366, allocations: 56.03 kB / 387.1 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.1367, allocations: 4 kB / 387.1 MB, free: 2.285 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.1367, allocations: 7.984 kB / 387.1 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.1367, allocations: 0 / 387.1 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.1367, allocations: 4 kB / 387.1 MB, free: 2.273 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.1382, allocations: 461.2 kB / 387.6 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.599e-05/0.1383, allocations: 85.05 kB / 387.7 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/0.1384, allocations: 8 kB / 387.7 MB, free: 1.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004666/0.1389, allocations: 19.84 kB / 387.7 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.1389, allocations: 15.92 kB / 387.7 MB, free: 1.629 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.214e-05/0.139, allocations: 11.98 kB / 387.7 MB, free: 1.617 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.1391, allocations: 107.3 kB / 387.8 MB, free: 1.512 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.785e-06/0.1391, allocations: 0 / 387.8 MB, free: 1.512 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005794/0.1397, allocations: 67.92 kB / 387.9 MB, free: 1.445 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00204/0.1418, allocations: 1.278 MB / 389.2 MB, free: 112 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.253/0.3948, allocations: 210.9 kB / 389.4 MB, free: 21.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.3948, allocations: 3.656 kB / 389.4 MB, free: 21.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004706/0.3953, allocations: 94.91 kB / 389.5 MB, free: 21.2 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.3959, allocations: 34 kB / 389.5 MB, free: 21.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0042/0.4001, allocations: 3.535 MB / 393 MB, free: 18.3 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.4004, allocations: 0.7167 MB / 393.8 MB, free: 17.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002662/0.4007, allocations: 53.83 kB / 393.8 MB, free: 17.6 MB / 282.7 MB Notification: Performance of SimCode: time 1.583e-06/0.4007, allocations: 0 / 393.8 MB, free: 17.6 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.617/3.017, allocations: 3.184 MB / 397 MB, free: 17.39 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat does not exist to compare? outputFormat=mat