Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008387/0.0008387, allocations: 99.11 kB / 17 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 193.6 kB / 17.91 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 45.91 MB / 344.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00026/0.00026, allocations: 7.984 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1309, allocations: 63.47 MB / 481.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir): time 0.5333/0.6642, allocations: 174.2 MB / 0.6405 GB, free: 7.938 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.6755, allocations: 7.017 MB / 0.6473 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.6767, allocations: 23.75 kB / 0.6473 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.6781, allocations: 314 kB / 0.6476 GB, free: 0.5742 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006338/0.6844, allocations: 1.878 MB / 0.6495 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005523/0.69, allocations: 1.659 MB / 0.6511 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003597/0.6936, allocations: 2.656 MB / 0.6537 GB, free: 10.37 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001203/0.6948, allocations: 0.4941 MB / 0.6542 GB, free: 9.871 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004344/0.6991, allocations: 1.546 MB / 0.6557 GB, free: 8.32 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00193/0.7011, allocations: 0.8606 MB / 0.6565 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003809/0.7015, allocations: 44 kB / 0.6565 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009901/0.7114, allocations: 4.302 MB / 0.6608 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008509/0.7123, allocations: 386.9 kB / 0.6611 GB, free: 2.727 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006981/0.713, allocations: 209.3 kB / 0.6613 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.7187, allocations: 2.494 MB / 0.6638 GB, free: 20 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.7187, allocations: 0 / 0.6638 GB, free: 20 kB / 494.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7187, allocations: 0 / 0.6638 GB, free: 20 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.491e-05/0.7188, allocations: 0 / 0.6638 GB, free: 20 kB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.005114/0.7239, allocations: 1.551 MB / 0.6653 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.724, allocations: 12.03 kB / 0.6653 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004591/0.7245, allocations: 118.5 kB / 0.6654 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006245/0.7251, allocations: 114.9 kB / 0.6655 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.7264, allocations: 0.5706 MB / 0.6661 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.7266, allocations: 125.3 kB / 0.6662 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.7268, allocations: 71.89 kB / 0.6662 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.7291, allocations: 1.162 MB / 0.6674 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.7292, allocations: 0 / 0.6674 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.7293, allocations: 32 kB / 0.6674 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/0.7294, allocations: 53.97 kB / 0.6675 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002343/0.7318, allocations: 1.159 MB / 0.6686 GB, free: 10.89 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008335/0.7401, allocations: 4.974 MB / 0.6735 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.742, allocations: 0.8302 MB / 0.6743 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006759/0.7427, allocations: 430.2 kB / 0.6747 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001545/0.7442, allocations: 1.626 MB / 0.6763 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.277e-05/0.7443, allocations: 51.86 kB / 0.6763 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=70): time 3.116e-06/0.7443, allocations: 0 / 0.6763 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=82): time 0.01361/0.7579, allocations: 4.129 MB / 0.6803 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.7581, allocations: 115.5 kB / 0.6805 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.7591, allocations: 0.6524 MB / 0.6811 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001585/0.7593, allocations: 45.7 kB / 0.6811 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003735/0.7597, allocations: 383.6 kB / 0.6815 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003206/0.76, allocations: 291.8 kB / 0.6818 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.7601, allocations: 20 kB / 0.6818 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001942/0.7603, allocations: 394.7 kB / 0.6822 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.7614, allocations: 497.7 kB / 0.6827 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.7626, allocations: 0.7523 MB / 0.6834 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.7638, allocations: 0.5924 MB / 0.684 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.7638, allocations: 0 / 0.684 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003724/0.7675, allocations: 1.692 MB / 0.6856 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.7676, allocations: 10.19 kB / 0.6856 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.7676, allocations: 8 kB / 0.6856 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006923/0.7746, allocations: 1.379 MB / 0.687 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007563/0.7753, allocations: 159.7 kB / 0.6871 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.7782, allocations: 1.546 MB / 0.6886 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.7795, allocations: 87.88 kB / 0.6887 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.7797, allocations: 51.98 kB / 0.6888 GB, free: 5.246 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 88 * 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: 0 * Non-linear torn systems: 1 {3 33} Notification: Performance of prepare postOptimizeDAE: time 0.0007206/0.7804, allocations: 294 kB / 0.6891 GB, free: 4.949 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002893/0.7807, allocations: 86.97 kB / 0.6891 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003658/0.7844, allocations: 1.694 MB / 0.6908 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.7844, allocations: 8 kB / 0.6908 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.7844, allocations: 3.953 kB / 0.6908 GB, free: 3.137 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.7845, allocations: 3.984 kB / 0.6908 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004616/0.7891, allocations: 2.641 MB / 0.6934 GB, free: 408 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.7891, allocations: 4.625 kB / 0.6934 GB, free: 404 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.7904, allocations: 263.6 kB / 0.6936 GB, free: 140 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.7922, allocations: 392.5 kB / 0.694 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.7924, allocations: 35.97 kB / 0.6941 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002891/0.7953, allocations: 2.277 MB / 0.6963 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.7953, allocations: 4.031 kB / 0.6963 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004106/0.7994, allocations: 2.04 MB / 0.6983 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006381/0.8, allocations: 295.9 kB / 0.6986 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.8002, allocations: 27.94 kB / 0.6986 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008095/0.801, allocations: 75.97 kB / 0.6987 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.8012, allocations: 68.83 kB / 0.6987 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.8013, allocations: 43.97 kB / 0.6988 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006805/0.802, allocations: 487 kB / 0.6992 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/0.802, allocations: 4 kB / 0.6992 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002342/0.8043, allocations: 0.6675 MB / 0.6999 GB, free: 9.539 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006391/0.8107, allocations: 3.304 MB / 0.7031 GB, free: 6.195 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002682/0.8134, allocations: 1.248 MB / 0.7043 GB, free: 4.945 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.8135, allocations: 0 / 0.7043 GB, free: 4.945 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.8152, allocations: 0.7135 MB / 0.705 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.8175, allocations: 477.9 kB / 0.7055 GB, free: 3.773 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2633/1.081, allocations: 6.736 MB / 0.7121 GB, free: 193.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007211/1.082, allocations: 1.046 MB / 0.7131 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001422/1.083, allocations: 369.3 kB / 0.7134 GB, free: 193.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/1.084, allocations: 333.2 kB / 0.7137 GB, free: 193.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.262e-06/1.084, allocations: 0 / 0.7137 GB, free: 193.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07383/1.157, allocations: 40.84 MB / 0.7536 GB, free: 168 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/1.158, allocations: 280.6 kB / 0.7539 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.17/4.328, allocations: 0 / 0.7539 GB, free: 167.7 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_res.mat does not exist to compare? outputFormat=mat