Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.001022/0.001022, allocations: 178.3 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.833/1.833, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000964/0.000964, allocations: 86.14 kB / 261.7 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2104/0.2104, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.175e-05/2.169e-05, allocations: 4 kB / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1273, allocations: 58.86 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.673/8.8, allocations: 2.832 GB / 3.299 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/8.801, allocations: 79.47 kB / 3.299 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.998/10.8, allocations: 498.2 MB / 3.785 GB, free: 3.48 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.583e-06/10.8, allocations: 0 / 3.785 GB, free: 3.48 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001392/10.8, allocations: 47.77 kB / 3.785 GB, free: 3.438 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01468/10.81, allocations: 2.993 MB / 3.788 GB, free: 408 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/10.81, allocations: 12.03 kB / 3.788 GB, free: 396 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006214/10.82, allocations: 0.7117 MB / 3.789 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006478/10.83, allocations: 1.572 MB / 3.79 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/10.83, allocations: 87.97 kB / 3.79 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001363/10.83, allocations: 103.9 kB / 3.791 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008211/10.84, allocations: 2.838 MB / 3.793 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006895/10.84, allocations: 2.872 MB / 3.796 GB, free: 8.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.6e-05/10.84, allocations: 15.88 kB / 3.796 GB, free: 8.004 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002896/10.84, allocations: 4 kB / 3.796 GB, free: 8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002288/10.84, allocations: 167.5 kB / 3.796 GB, free: 7.836 MB / 0.5105 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.7384/11.58, allocations: 140.5 MB / 3.934 GB, free: 18.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002923/11.58, allocations: 1.572 MB / 3.935 GB, free: 18.16 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/11.59, allocations: 0.9753 MB / 3.936 GB, free: 18.16 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03484/11.62, allocations: 16.72 MB / 3.952 GB, free: 23.37 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002637/11.62, allocations: 1.145 MB / 3.953 GB, free: 23.26 MB / 0.573 GB Notification: Performance of pre-optimization done (n=139): time 6.192e-06/11.62, allocations: 4 kB / 3.953 GB, free: 23.26 MB / 0.573 GB Notification: Performance of matching and sorting (n=159): time 0.0197/11.64, allocations: 7.397 MB / 3.961 GB, free: 22.29 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/11.64, allocations: 223.7 kB / 3.961 GB, free: 22.04 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001881/11.65, allocations: 0.9275 MB / 3.962 GB, free: 21.88 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000458/11.65, allocations: 29.39 kB / 3.962 GB, free: 21.84 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008753/11.65, allocations: 0.8792 MB / 3.963 GB, free: 21.47 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006433/11.65, allocations: 0.5333 MB / 3.963 GB, free: 21.2 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/11.65, allocations: 5.031 kB / 3.963 GB, free: 21.19 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002497/11.65, allocations: 453.8 kB / 3.964 GB, free: 20.88 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/11.65, allocations: 1.128 MB / 3.965 GB, free: 20.87 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/11.65, allocations: 1.665 MB / 3.966 GB, free: 20.24 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005803/11.66, allocations: 2.006 MB / 3.968 GB, free: 20.18 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.251e-05/11.66, allocations: 5.625 kB / 3.968 GB, free: 20.18 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0103/11.67, allocations: 4.439 MB / 3.973 GB, free: 20 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002469/11.67, allocations: 6.278 MB / 3.979 GB, free: 13.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-05/11.67, allocations: 17.19 kB / 3.979 GB, free: 13.41 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009858/11.68, allocations: 2.738 MB / 3.981 GB, free: 13.31 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/11.68, allocations: 331.9 kB / 3.982 GB, free: 13.31 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006807/11.69, allocations: 4.248 MB / 3.986 GB, free: 12.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/11.69, allocations: 249.3 kB / 3.986 GB, free: 12.69 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002525/11.69, allocations: 102.1 kB / 3.986 GB, free: 12.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/11.69, allocations: 4.812 kB / 3.986 GB, free: 12.69 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00934/11.7, allocations: 3.876 MB / 3.99 GB, free: 12.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-05/11.7, allocations: 16.12 kB / 3.99 GB, free: 12.61 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007387/11.71, allocations: 2.118 MB / 3.992 GB, free: 12.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/11.71, allocations: 370.5 kB / 3.993 GB, free: 12.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005029/11.72, allocations: 3.24 MB / 3.996 GB, free: 26.28 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/11.72, allocations: 236.6 kB / 3.996 GB, free: 26.12 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/11.72, allocations: 105 kB / 3.996 GB, free: 26.04 MB / 0.5886 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: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0007513/11.72, allocations: 165.9 kB / 3.996 GB, free: 25.92 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005076/11.72, allocations: 2.463 MB / 3.999 GB, free: 24.5 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003349/11.72, allocations: 142.3 kB / 3.999 GB, free: 24.36 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007714/11.73, allocations: 5.652 MB / 4.004 GB, free: 21.33 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.737e-05/11.73, allocations: 74.83 kB / 4.004 GB, free: 21.3 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/11.73, allocations: 0 / 4.004 GB, free: 21.3 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006134/11.74, allocations: 5.118 MB / 4.009 GB, free: 18.25 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/11.75, allocations: 8.411 MB / 4.017 GB, free: 13.96 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/11.75, allocations: 0 / 4.017 GB, free: 13.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001872/11.75, allocations: 395.2 kB / 4.018 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/11.75, allocations: 420.5 kB / 4.018 GB, free: 13.43 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000205/11.75, allocations: 39.84 kB / 4.018 GB, free: 13.41 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/11.76, allocations: 3.356 MB / 4.022 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/11.76, allocations: 0 / 4.022 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009932/11.77, allocations: 6.25 MB / 4.028 GB, free: 6.965 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00192/11.77, allocations: 0.5717 MB / 4.028 GB, free: 6.586 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003716/11.77, allocations: 18.75 kB / 4.028 GB, free: 6.578 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/11.77, allocations: 166.1 kB / 4.028 GB, free: 6.469 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003478/11.77, allocations: 171.1 kB / 4.029 GB, free: 6.383 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/11.77, allocations: 59.8 kB / 4.029 GB, free: 6.344 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001041/11.77, allocations: 0.6629 MB / 4.029 GB, free: 5.934 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.11e-07/11.77, allocations: 4 kB / 4.029 GB, free: 5.93 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01242/11.79, allocations: 2.184 MB / 4.031 GB, free: 3.98 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.4365/12.22, allocations: 8.908 MB / 4.04 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0103/12.23, allocations: 4.839 MB / 4.045 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/12.23, allocations: 0 / 4.045 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003831/12.24, allocations: 2.076 MB / 4.047 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/12.24, allocations: 0.5569 MB / 4.047 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/12.26, allocations: 6.098 MB / 4.053 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/12.26, allocations: 1.919 MB / 4.055 GB, free: 127 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0042/12.26, allocations: 1.691 MB / 4.057 GB, free: 127 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/12.27, allocations: 0.9738 MB / 4.058 GB, free: 127 MB / 0.5886 GB Notification: Performance of SimCode: time 1.092e-06/12.27, allocations: 3.406 kB / 4.058 GB, free: 127 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1627/12.43, allocations: 93.24 MB / 4.149 GB, free: 122.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/12.43, allocations: 190.5 kB / 4.149 GB, free: 122.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.05/17.48, allocations: 0 / 4.149 GB, free: 122.5 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat