Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.00104, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008198/0.00082, allocations: 97.89 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2006/0.2006, allocations: 45.14 MB / 383.7 MB, free: 304 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.691e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.026/8.134, allocations: 2.838 GB / 3.343 GB, free: 8.227 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/8.135, allocations: 76.03 kB / 3.343 GB, free: 8.191 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.551/10.69, allocations: 0.4919 GB / 3.835 GB, free: 59.76 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.094e-06/10.69, allocations: 3.938 kB / 3.835 GB, free: 59.76 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002192/10.69, allocations: 44.09 kB / 3.835 GB, free: 59.75 MB / 0.5261 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.0181/10.7, allocations: 2.996 MB / 3.838 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.104e-05/10.7, allocations: 10.62 kB / 3.838 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006354/10.71, allocations: 0.7095 MB / 3.839 GB, free: 58.36 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006288/10.72, allocations: 1.581 MB / 3.84 GB, free: 57.99 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/10.72, allocations: 93.22 kB / 3.84 GB, free: 57.99 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/10.72, allocations: 108.8 kB / 3.84 GB, free: 57.98 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007353/10.73, allocations: 2.833 MB / 3.843 GB, free: 57.97 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008222/10.73, allocations: 2.874 MB / 3.846 GB, free: 57.53 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001009/10.73, allocations: 6 kB / 3.846 GB, free: 57.53 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006991/10.73, allocations: 7.875 kB / 3.846 GB, free: 57.53 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002015/10.73, allocations: 174.5 kB / 3.846 GB, free: 57.52 MB / 0.5261 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.7124/11.45, allocations: 154.5 MB / 3.997 GB, free: 90.23 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003697/11.45, allocations: 1.562 MB / 3.998 GB, free: 90.19 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001796/11.45, allocations: 0.9757 MB / 3.999 GB, free: 90.18 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03584/11.49, allocations: 18.58 MB / 4.018 GB, free: 78.09 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002644/11.49, allocations: 1.139 MB / 4.019 GB, free: 77.99 MB / 0.573 GB Notification: Performance of pre-optimization done (n=139): time 7.384e-06/11.49, allocations: 0 / 4.019 GB, free: 77.99 MB / 0.573 GB Notification: Performance of matching and sorting (n=159): time 0.02152/11.51, allocations: 7.392 MB / 4.026 GB, free: 77.11 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/11.51, allocations: 230.3 kB / 4.026 GB, free: 76.86 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/11.51, allocations: 0.9247 MB / 4.027 GB, free: 76.7 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002748/11.52, allocations: 33.78 kB / 4.027 GB, free: 76.66 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009072/11.52, allocations: 0.8816 MB / 4.028 GB, free: 76.29 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006564/11.52, allocations: 0.531 MB / 4.028 GB, free: 76.02 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/11.52, allocations: 6.469 kB / 4.028 GB, free: 76.02 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002499/11.52, allocations: 443.6 kB / 4.029 GB, free: 75.7 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001677/11.52, allocations: 1.128 MB / 4.03 GB, free: 75.7 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/11.52, allocations: 1.661 MB / 4.032 GB, free: 75.08 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004421/11.53, allocations: 1.719 MB / 4.033 GB, free: 75.05 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.243e-05/11.53, allocations: 6.828 kB / 4.033 GB, free: 75.05 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008407/11.53, allocations: 4.156 MB / 4.037 GB, free: 74.89 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001611/11.54, allocations: 6.273 MB / 4.043 GB, free: 68.37 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.107e-05/11.54, allocations: 18.31 kB / 4.043 GB, free: 68.37 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008775/11.54, allocations: 2.628 MB / 4.046 GB, free: 68.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/11.55, allocations: 343.6 kB / 4.046 GB, free: 68.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00813/11.55, allocations: 4.24 MB / 4.05 GB, free: 67.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002924/11.56, allocations: 252.5 kB / 4.051 GB, free: 67.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004656/11.56, allocations: 109.3 kB / 4.051 GB, free: 67.72 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/11.56, allocations: 4.219 kB / 4.051 GB, free: 67.72 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007952/11.57, allocations: 3.586 MB / 4.054 GB, free: 67.66 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.635e-05/11.57, allocations: 16.53 kB / 4.054 GB, free: 67.66 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007293/11.57, allocations: 2.123 MB / 4.056 GB, free: 67.63 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/11.57, allocations: 370.9 kB / 4.057 GB, free: 67.63 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004099/11.58, allocations: 3.243 MB / 4.06 GB, free: 67.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002403/11.58, allocations: 231.3 kB / 4.06 GB, free: 67.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004233/11.58, allocations: 105.5 kB / 4.06 GB, free: 67.05 MB / 0.573 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.0009453/11.58, allocations: 159.5 kB / 4.06 GB, free: 66.95 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005559/11.59, allocations: 2.465 MB / 4.063 GB, free: 66.77 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005222/11.59, allocations: 141.9 kB / 4.063 GB, free: 66.7 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008788/11.6, allocations: 5.656 MB / 4.068 GB, free: 66.3 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.858e-05/11.6, allocations: 74.39 kB / 4.069 GB, free: 66.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.89e-05/11.6, allocations: 0 / 4.069 GB, free: 66.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006837/11.6, allocations: 5.12 MB / 4.074 GB, free: 65.57 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/11.62, allocations: 8.41 MB / 4.082 GB, free: 64.91 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/11.62, allocations: 0 / 4.082 GB, free: 64.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001732/11.62, allocations: 399.9 kB / 4.082 GB, free: 64.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/11.62, allocations: 417.7 kB / 4.083 GB, free: 64.86 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002264/11.62, allocations: 45.47 kB / 4.083 GB, free: 64.85 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001905/11.62, allocations: 3.347 MB / 4.086 GB, free: 62.25 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/11.62, allocations: 5.906 kB / 4.086 GB, free: 62.25 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009831/11.63, allocations: 6.253 MB / 4.092 GB, free: 61.76 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001559/11.64, allocations: 0.5631 MB / 4.092 GB, free: 61.51 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006107/11.64, allocations: 24.42 kB / 4.093 GB, free: 61.51 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002/11.64, allocations: 169.7 kB / 4.093 GB, free: 61.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003653/11.64, allocations: 165.5 kB / 4.093 GB, free: 61.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/11.64, allocations: 62.69 kB / 4.093 GB, free: 61.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001239/11.64, allocations: 0.6564 MB / 4.094 GB, free: 61.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.51e-07/11.64, allocations: 0 / 4.094 GB, free: 61.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01427/11.65, allocations: 2.196 MB / 4.096 GB, free: 61.15 MB / 0.573 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.02267/11.68, allocations: 8.951 MB / 4.104 GB, free: 57.65 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01003/11.69, allocations: 4.838 MB / 4.109 GB, free: 56.01 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/11.69, allocations: 0.625 kB / 4.109 GB, free: 56.01 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004329/11.69, allocations: 2.078 MB / 4.111 GB, free: 55.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004779/11.7, allocations: 0.5635 MB / 4.112 GB, free: 55.08 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/11.72, allocations: 6.108 MB / 4.118 GB, free: 52.7 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/11.72, allocations: 1.922 MB / 4.12 GB, free: 51.82 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004626/11.73, allocations: 1.694 MB / 4.121 GB, free: 51.74 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002186/11.73, allocations: 0.9715 MB / 4.122 GB, free: 50.95 MB / 0.573 GB Notification: Performance of SimCode: time 1.804e-06/11.73, allocations: 0 / 4.122 GB, free: 50.95 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5384/12.27, allocations: 93.41 MB / 4.213 GB, free: 103.6 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/12.27, allocations: 188.6 kB / 4.214 GB, free: 103.4 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.027/17.29, allocations: 0 / 4.214 GB, free: 103.4 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat