Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 107.5 kB / 281.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2684/0.2684, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.014e-05/2.016e-05, allocations: 224 / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1835, allocations: 61.92 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.68/8.863, allocations: 2.826 GB / 3.321 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/8.864, allocations: 77.42 kB / 3.321 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.691/11.55, allocations: 0.745 GB / 4.066 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.693e-06/11.55, allocations: 0 / 4.066 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001253/11.55, allocations: 32 kB / 4.066 GB, free: 9.961 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01253/11.57, allocations: 2.762 MB / 4.069 GB, free: 7.164 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.138e-05/11.57, allocations: 15.98 kB / 4.069 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003822/11.57, allocations: 482.2 kB / 4.069 GB, free: 6.676 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003163/11.57, allocations: 1.132 MB / 4.07 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/11.57, allocations: 113.4 kB / 4.07 GB, free: 5.395 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/11.57, allocations: 56 kB / 4.07 GB, free: 5.34 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0024/11.58, allocations: 1.335 MB / 4.072 GB, free: 4.004 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002397/11.58, allocations: 1.466 MB / 4.073 GB, free: 2.422 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/11.58, allocations: 4 kB / 4.073 GB, free: 2.418 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/11.58, allocations: 4 kB / 4.073 GB, free: 2.414 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/11.58, allocations: 85.91 kB / 4.073 GB, free: 2.332 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or 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.6476/12.23, allocations: 135.2 MB / 4.205 GB, free: 17.14 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/12.23, allocations: 0.9184 MB / 4.206 GB, free: 16.93 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004754/12.23, allocations: 379.2 kB / 4.206 GB, free: 16.91 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03042/12.26, allocations: 16.69 MB / 4.223 GB, free: 22.13 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008518/12.26, allocations: 0.497 MB / 4.223 GB, free: 22.02 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 2.494e-06/12.26, allocations: 0 / 4.223 GB, free: 22.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=70): time 0.008044/12.27, allocations: 3.12 MB / 4.226 GB, free: 21.29 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/12.27, allocations: 344.8 kB / 4.227 GB, free: 20.89 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/12.27, allocations: 0.8466 MB / 4.227 GB, free: 20.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.503e-05/12.27, allocations: 25.7 kB / 4.227 GB, free: 20.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/12.27, allocations: 0.6244 MB / 4.228 GB, free: 20.44 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/12.27, allocations: 243.7 kB / 4.228 GB, free: 20.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.157e-05/12.27, allocations: 0 / 4.228 GB, free: 20.32 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001305/12.27, allocations: 356.6 kB / 4.229 GB, free: 20.02 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006253/12.27, allocations: 467.6 kB / 4.229 GB, free: 20.02 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000765/12.27, allocations: 0.9229 MB / 4.23 GB, free: 19.45 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00263/12.27, allocations: 0.9745 MB / 4.231 GB, free: 19.41 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/12.27, allocations: 9.766 kB / 4.231 GB, free: 19.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004111/12.28, allocations: 2.013 MB / 4.233 GB, free: 19.28 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001526/12.28, allocations: 5.408 MB / 4.238 GB, free: 13.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/12.28, allocations: 14.53 kB / 4.238 GB, free: 13.61 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/12.28, allocations: 0.5961 MB / 4.239 GB, free: 13.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000874/12.28, allocations: 251.2 kB / 4.239 GB, free: 13.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/12.29, allocations: 1.618 MB / 4.241 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/12.29, allocations: 116 kB / 4.241 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/12.29, allocations: 70.98 kB / 4.241 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/12.29, allocations: 7.594 kB / 4.241 GB, free: 13.04 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003635/12.29, allocations: 1.655 MB / 4.242 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/12.29, allocations: 15.78 kB / 4.242 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/12.29, allocations: 335 kB / 4.243 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009372/12.29, allocations: 275.9 kB / 4.243 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/12.29, allocations: 1.044 MB / 4.244 GB, free: 12.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/12.3, allocations: 106.8 kB / 4.244 GB, free: 12.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/12.3, allocations: 75.17 kB / 4.244 GB, free: 12.43 MB / 0.6042 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 35} Notification: Performance of prepare postOptimizeDAE: time 0.0004613/12.3, allocations: 152 kB / 4.244 GB, free: 12.32 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002392/12.3, allocations: 1.056 MB / 4.245 GB, free: 12.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/12.3, allocations: 112 kB / 4.245 GB, free: 12.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003613/12.3, allocations: 2.896 MB / 4.248 GB, free: 11.91 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-05/12.3, allocations: 41.17 kB / 4.248 GB, free: 11.91 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/12.3, allocations: 1.031 kB / 4.248 GB, free: 11.91 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/12.3, allocations: 3.797 kB / 4.248 GB, free: 11.91 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005439/12.31, allocations: 4.576 MB / 4.253 GB, free: 11.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/12.31, allocations: 0 / 4.253 GB, free: 11.22 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005389/12.31, allocations: 132.5 kB / 4.253 GB, free: 11.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00457/12.31, allocations: 1.526 MB / 4.254 GB, free: 11.13 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/12.31, allocations: 15.89 kB / 4.254 GB, free: 11.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/12.32, allocations: 2.27 MB / 4.257 GB, free: 10.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/12.32, allocations: 0 / 4.257 GB, free: 10.07 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003922/12.32, allocations: 3.319 MB / 4.26 GB, free: 9.672 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006762/12.32, allocations: 350.5 kB / 4.26 GB, free: 9.496 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/12.32, allocations: 13.84 kB / 4.26 GB, free: 9.492 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000809/12.32, allocations: 71.47 kB / 4.26 GB, free: 9.484 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/12.32, allocations: 61.84 kB / 4.26 GB, free: 9.484 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.007e-05/12.32, allocations: 25.97 kB / 4.26 GB, free: 9.484 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001206/12.32, allocations: 0.6089 MB / 4.261 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.5e-07/12.32, allocations: 4 kB / 4.261 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.006947/12.33, allocations: 1.926 MB / 4.263 GB, free: 25.37 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 1 * 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 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01434/12.34, allocations: 6.084 MB / 4.269 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.003975/12.35, allocations: 2.089 MB / 4.271 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/12.35, allocations: 0 / 4.271 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.00111/12.35, allocations: 0.8114 MB / 4.272 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/12.35, allocations: 471 kB / 4.272 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009794/12.36, allocations: 3.179 MB / 4.275 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009602/12.36, allocations: 1.344 MB / 4.276 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002299/12.36, allocations: 1.207 MB / 4.278 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006058/12.37, allocations: 0.5444 MB / 4.278 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of SimCode: time 1.853e-06/12.37, allocations: 0 / 4.278 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4918/12.86, allocations: 69.77 MB / 4.346 GB, free: 128.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/12.86, allocations: 189.1 kB / 4.347 GB, free: 128.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.344/17.2, allocations: 0 / 4.347 GB, free: 128.3 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat