Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.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.Tests.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_pT",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.001574/0.001578, allocations: 188.6 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.153/2.153, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001139/0.001139, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004046/0.0004048, allocations: 15.98 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09773, allocations: 47.58 MB / 374.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT): time 0.3137/0.4115, allocations: 30.64 MB / 405.3 MB, free: 5.758 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003251/0.4148, allocations: 1.509 MB / 406.8 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000488/0.4154, allocations: 10.56 kB / 406.8 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008283/0.4162, allocations: 132 kB / 406.9 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008146/0.4171, allocations: 210.5 kB / 407.1 MB, free: 4.473 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.4181, allocations: 220.7 kB / 407.4 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009631/0.4191, allocations: 459.2 kB / 407.8 MB, free: 4.137 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.4193, allocations: 68.08 kB / 407.9 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2769/0.6962, allocations: 72.11 MB / 480 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008538/0.6971, allocations: 171.3 kB / 480.2 MB, free: 2.816 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.6973, allocations: 16 kB / 480.2 MB, free: 2.801 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003728/0.6976, allocations: 23.92 kB / 480.2 MB, free: 2.777 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.6979, allocations: 71.78 kB / 480.3 MB, free: 2.707 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.6981, allocations: 85.58 kB / 480.4 MB, free: 2.617 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008169/0.6989, allocations: 324.9 kB / 480.7 MB, free: 2.301 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.699, allocations: 0 / 480.7 MB, free: 2.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.699, allocations: 0 / 480.7 MB, free: 2.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.699, allocations: 0 / 480.7 MB, free: 2.301 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001838/0.7009, allocations: 0.53 MB / 481.2 MB, free: 1.723 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/0.701, allocations: 12.03 kB / 481.2 MB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001923/0.7012, allocations: 62.53 kB / 481.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006258/0.7018, allocations: 39.72 kB / 481.3 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008137/0.7027, allocations: 278.4 kB / 481.6 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.7027, allocations: 20.56 kB / 481.6 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.7029, allocations: 24 kB / 481.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.7041, allocations: 299.7 kB / 481.9 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/0.7042, allocations: 4 kB / 481.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-05/0.7043, allocations: 8 kB / 481.9 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.7043, allocations: 8 kB / 481.9 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008207/0.7052, allocations: 201.5 kB / 482.1 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004207/0.7094, allocations: 1.421 MB / 483.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000716/0.7102, allocations: 179.1 kB / 483.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.7102, allocations: 192 / 483.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/0.7103, allocations: 38.75 kB / 483.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 3.487e-06/0.7103, allocations: 4 kB / 483.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.00633/0.7167, allocations: 1.003 MB / 484.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.7168, allocations: 59.36 kB / 484.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/0.7174, allocations: 258.5 kB / 485.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.383e-05/0.7175, allocations: 33.7 kB / 485.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002467/0.7178, allocations: 238.6 kB / 485.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.718, allocations: 90.66 kB / 485.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.714e-05/0.7181, allocations: 12 kB / 485.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.7183, allocations: 322.8 kB / 485.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004189/0.7188, allocations: 91.69 kB / 485.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.7193, allocations: 178.8 kB / 486 MB, free: 12.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005487/0.7199, allocations: 108 kB / 486.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.72, allocations: 4 kB / 486.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.002004/0.722, allocations: 375.5 kB / 486.5 MB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.7221, allocations: 8.359 kB / 486.5 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/0.7221, allocations: 8 kB / 486.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006851/0.7229, allocations: 65.66 kB / 486.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008549/0.7237, allocations: 71.84 kB / 486.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005132/0.7289, allocations: 2.684 MB / 489.3 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007607/0.7297, allocations: 23.89 kB / 489.4 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.7298, allocations: 12 kB / 489.4 MB, free: 8.898 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003753/0.7302, allocations: 157.8 kB / 489.5 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.7304, allocations: 31.66 kB / 489.6 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000171/0.7306, allocations: 34.19 kB / 489.6 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.7306, allocations: 4 kB / 489.6 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.7306, allocations: 3.938 kB / 489.6 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001572/0.7322, allocations: 0.567 MB / 490.2 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/0.7345, allocations: 0.6996 MB / 490.9 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.7346, allocations: 3.984 kB / 490.9 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003947/0.735, allocations: 47.92 kB / 490.9 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000495/0.7355, allocations: 60.77 kB / 491 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.7356, allocations: 8 kB / 491 MB, free: 7.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.7374, allocations: 1.393 MB / 492.4 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7374, allocations: 0 / 492.4 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.7387, allocations: 490.5 kB / 492.9 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.7388, allocations: 97.02 kB / 493 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.694e-05/0.7389, allocations: 8 kB / 493 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.7393, allocations: 19.86 kB / 493 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.391e-05/0.7394, allocations: 15.98 kB / 493 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.981e-05/0.7395, allocations: 16.03 kB / 493 MB, free: 4.918 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002937/0.7398, allocations: 190 kB / 493.2 MB, free: 4.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7398, allocations: 0 / 493.2 MB, free: 4.734 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006972/0.7405, allocations: 95.95 kB / 493.3 MB, free: 4.641 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001725/0.7422, allocations: 1.085 MB / 494.4 MB, free: 3.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.7435, allocations: 462 kB / 494.8 MB, free: 3.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.7435, allocations: 4 kB / 494.8 MB, free: 3.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006229/0.7441, allocations: 234.5 kB / 495.1 MB, free: 2.797 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.7457, allocations: 164.2 kB / 495.2 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005468/0.7512, allocations: 3.687 MB / 498.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.7517, allocations: 0.7684 MB / 499.7 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/0.752, allocations: 91.41 kB / 499.8 MB, free: 13.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/0.752, allocations: 4 kB / 499.8 MB, free: 13.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.831/3.583, allocations: 7.043 MB / 0.4949 GB, free: 6.902 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_pT.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT_res.mat does not exist to compare? outputFormat=mat