Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_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.001694/0.001699, allocations: 188.3 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.102/2.102, 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.001217/0.001216, allocations: 94.84 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2934/0.2934, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004853/0.0004856, allocations: 12 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1344, allocations: 58.86 MB / 490.3 MB, free: 9.227 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.06168/0.1961, allocations: 33.12 MB / 0.5112 GB, free: 8.016 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3813/0.5775, allocations: 17.19 MB / 0.528 GB, free: 11.95 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.5789, allocations: 29.81 kB / 0.528 GB, free: 11.94 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.5808, allocations: 395.2 kB / 0.5284 GB, free: 11.94 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02208/0.6029, allocations: 3.983 MB / 0.5323 GB, free: 11.89 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.6185, allocations: 2.111 MB / 0.5343 GB, free: 11.86 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003977/0.6225, allocations: 1.148 MB / 0.5354 GB, free: 11.86 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.6241, allocations: 404.7 kB / 0.5358 GB, free: 11.82 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02596/0.6501, allocations: 6.275 MB / 0.542 GB, free: 11.73 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03212/0.6823, allocations: 8.758 MB / 0.5505 GB, free: 9.836 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003236/0.6827, allocations: 33.75 kB / 0.5505 GB, free: 9.805 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02662/0.7093, allocations: 7.037 MB / 0.5574 GB, free: 4.289 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006764/0.7101, allocations: 217.9 kB / 0.5576 GB, free: 4.156 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005258/0.7106, allocations: 187.7 kB / 0.5578 GB, free: 4.035 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.7217, allocations: 3.365 MB / 0.5611 GB, free: 1.168 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.7218, allocations: 0 / 0.5611 GB, free: 1.168 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.7218, allocations: 0 / 0.5611 GB, free: 1.168 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.405e-05/0.7218, allocations: 0 / 0.5611 GB, free: 1.168 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.007238/0.7291, allocations: 1.482 MB / 0.5625 GB, free: 15.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.205e-05/0.7292, allocations: 8.031 kB / 0.5625 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004347/0.7296, allocations: 112.9 kB / 0.5627 GB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003412/0.733, allocations: 221.3 kB / 0.5629 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.735, allocations: 0.5213 MB / 0.5634 GB, free: 15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002598/0.7353, allocations: 106.1 kB / 0.5635 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002647/0.7356, allocations: 61.64 kB / 0.5635 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004489/0.7401, allocations: 1.057 MB / 0.5646 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.347e-05/0.7402, allocations: 7.188 kB / 0.5646 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001791/0.7404, allocations: 30.22 kB / 0.5646 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001295/0.7406, allocations: 40.23 kB / 0.5646 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003927/0.7445, allocations: 0.8213 MB / 0.5654 GB, free: 13.37 MB / 378.7 MB 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.01286/0.7574, allocations: 5.579 MB / 0.5709 GB, free: 8.141 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/0.7603, allocations: 0.5383 MB / 0.5714 GB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1903/0.9507, allocations: 47.87 MB / 0.6182 GB, free: 2.988 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.39e-05/0.9508, allocations: 41.19 kB / 0.6182 GB, free: 2.941 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 3.557e-06/0.9508, allocations: 0 / 0.6182 GB, free: 2.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.009966/0.9608, allocations: 2.129 MB / 0.6203 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.9609, allocations: 191.9 kB / 0.6205 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.9622, allocations: 0.6328 MB / 0.6211 GB, free: 15.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.62e-05/0.9623, allocations: 33.7 kB / 0.6211 GB, free: 15.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003919/0.9627, allocations: 426.4 kB / 0.6215 GB, free: 15.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.9629, allocations: 165 kB / 0.6217 GB, free: 15.29 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.386e-05/0.963, allocations: 16 kB / 0.6217 GB, free: 15.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.9632, allocations: 349.5 kB / 0.622 GB, free: 14.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006938/0.9639, allocations: 225.9 kB / 0.6222 GB, free: 14.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.965, allocations: 0.5854 MB / 0.6228 GB, free: 13.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008957/0.9659, allocations: 336.7 kB / 0.6231 GB, free: 13.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.9659, allocations: 4 kB / 0.6231 GB, free: 13.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002353/0.9683, allocations: 0.8602 MB / 0.624 GB, free: 12.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.9683, allocations: 12 kB / 0.624 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.277e-05/0.9684, allocations: 12 kB / 0.624 GB, free: 12.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005477/0.9739, allocations: 273.4 kB / 0.6243 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/0.9764, allocations: 285.1 kB / 0.6245 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/0.9789, allocations: 2.022 MB / 0.6265 GB, free: 10.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.9801, allocations: 62.53 kB / 0.6266 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.9803, allocations: 43.98 kB / 0.6266 GB, free: 10.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006257/0.9809, allocations: 273 kB / 0.6269 GB, free: 9.734 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.9811, allocations: 71.16 kB / 0.6269 GB, free: 9.664 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004894/0.986, allocations: 2.03 MB / 0.6289 GB, free: 7.617 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.965e-05/0.9861, allocations: 19.97 kB / 0.6289 GB, free: 7.598 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.9861, allocations: 0 / 0.6289 GB, free: 7.598 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.9862, allocations: 12.05 kB / 0.6289 GB, free: 7.586 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005852/0.992, allocations: 2.992 MB / 0.6319 GB, free: 4.539 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.9921, allocations: 2.844 kB / 0.6319 GB, free: 4.539 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/0.9939, allocations: 183.8 kB / 0.6321 GB, free: 4.359 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003037/0.997, allocations: 311.8 kB / 0.6323 GB, free: 4.051 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.371e-05/0.9971, allocations: 19.94 kB / 0.6324 GB, free: 4.031 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0026/0.9997, allocations: 2.093 MB / 0.6344 GB, free: 1.777 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.9998, allocations: 0 / 0.6344 GB, free: 1.777 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003773/1.004, allocations: 1.959 MB / 0.6363 GB, free: 15.78 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007063/1.004, allocations: 291.3 kB / 0.6366 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000181/1.005, allocations: 8 kB / 0.6366 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00086/1.005, allocations: 36.03 kB / 0.6366 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/1.006, allocations: 36.33 kB / 0.6367 GB, free: 15.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.956e-05/1.006, allocations: 16 kB / 0.6367 GB, free: 15.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00121/1.007, allocations: 0.5654 MB / 0.6372 GB, free: 14.82 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.007, allocations: 0 / 0.6372 GB, free: 14.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004598/1.011, allocations: 1.097 MB / 0.6383 GB, free: 13.73 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01172/1.023, allocations: 3.736 MB / 0.642 GB, free: 10.06 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003321/1.027, allocations: 0.8966 MB / 0.6428 GB, free: 9.168 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/1.027, allocations: 0.875 kB / 0.6428 GB, free: 9.168 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00227/1.029, allocations: 0.6359 MB / 0.6435 GB, free: 8.535 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003508/1.033, allocations: 371.4 kB / 0.6438 GB, free: 8.168 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01883/1.051, allocations: 13.66 MB / 0.6572 GB, free: 10.24 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/1.052, allocations: 1.109 MB / 0.6582 GB, free: 9.102 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008215/1.053, allocations: 383.3 kB / 0.6586 GB, free: 8.727 MB / 474.7 MB Notification: Performance of SimCode: time 2.124e-06/1.053, allocations: 8 kB / 0.6586 GB, free: 8.719 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.262/5.315, allocations: 43.4 MB / 0.701 GB, free: 13.3 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat