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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00081/0.00081, allocations: 104.2 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.1899/0.1899, allocations: 45.15 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.512e-05/1.479e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.753/7.863, allocations: 2.838 GB / 3.343 GB, free: 8.371 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/7.863, allocations: 78.95 kB / 3.343 GB, free: 8.332 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.03/9.893, allocations: 0.4919 GB / 3.835 GB, free: 59.69 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.743e-06/9.893, allocations: 6.469 kB / 3.835 GB, free: 59.69 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001517/9.893, allocations: 40.09 kB / 3.835 GB, free: 59.68 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.01125/9.904, allocations: 2.999 MB / 3.838 GB, free: 58.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/9.904, allocations: 7.219 kB / 3.838 GB, free: 58.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00507/9.909, allocations: 0.7082 MB / 3.838 GB, free: 58.29 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00438/9.914, allocations: 1.579 MB / 3.84 GB, free: 57.92 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/9.914, allocations: 97.2 kB / 3.84 GB, free: 57.92 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000735/9.915, allocations: 105.7 kB / 3.84 GB, free: 57.92 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004792/9.919, allocations: 2.831 MB / 3.843 GB, free: 57.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004984/9.924, allocations: 2.877 MB / 3.846 GB, free: 57.47 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.357e-05/9.925, allocations: 6.938 kB / 3.846 GB, free: 57.47 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003386/9.925, allocations: 4.938 kB / 3.846 GB, free: 57.47 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001704/9.925, allocations: 179.3 kB / 3.846 GB, free: 57.46 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.5795/10.5, allocations: 154.5 MB / 3.997 GB, free: 90.08 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002778/10.51, allocations: 1.565 MB / 3.998 GB, free: 90.05 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/10.51, allocations: 0.9814 MB / 3.999 GB, free: 90.04 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03068/10.54, allocations: 18.57 MB / 4.017 GB, free: 77.95 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002092/10.54, allocations: 1.15 MB / 4.019 GB, free: 77.85 MB / 0.573 GB Notification: Performance of pre-optimization done (n=139): time 3.156e-06/10.54, allocations: 0 / 4.019 GB, free: 77.85 MB / 0.573 GB Notification: Performance of matching and sorting (n=159): time 0.0164/10.56, allocations: 7.389 MB / 4.026 GB, free: 76.96 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/10.56, allocations: 232.5 kB / 4.026 GB, free: 76.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/10.56, allocations: 0.9179 MB / 4.027 GB, free: 76.56 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001271/10.56, allocations: 31.55 kB / 4.027 GB, free: 76.53 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000613/10.56, allocations: 0.8859 MB / 4.028 GB, free: 76.15 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003949/10.56, allocations: 0.5341 MB / 4.028 GB, free: 75.88 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/10.56, allocations: 0 / 4.028 GB, free: 75.88 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001521/10.56, allocations: 448.1 kB / 4.029 GB, free: 75.56 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/10.56, allocations: 1.129 MB / 4.03 GB, free: 75.55 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/10.56, allocations: 1.667 MB / 4.031 GB, free: 74.94 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003874/10.57, allocations: 1.712 MB / 4.033 GB, free: 74.91 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-05/10.57, allocations: 11.55 kB / 4.033 GB, free: 74.91 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007184/10.57, allocations: 4.15 MB / 4.037 GB, free: 74.75 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001279/10.58, allocations: 6.268 MB / 4.043 GB, free: 68.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.886e-05/10.58, allocations: 16.81 kB / 4.043 GB, free: 68.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00793/10.58, allocations: 2.635 MB / 4.046 GB, free: 68.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/10.59, allocations: 336.7 kB / 4.046 GB, free: 68.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005908/10.59, allocations: 4.243 MB / 4.05 GB, free: 67.59 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002384/10.59, allocations: 251.9 kB / 4.051 GB, free: 67.58 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002844/10.59, allocations: 109.5 kB / 4.051 GB, free: 67.58 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/10.59, allocations: 3.062 kB / 4.051 GB, free: 67.58 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006802/10.6, allocations: 3.585 MB / 4.054 GB, free: 67.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.602e-05/10.6, allocations: 16.58 kB / 4.054 GB, free: 67.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006734/10.61, allocations: 2.122 MB / 4.056 GB, free: 67.49 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/10.61, allocations: 374.9 kB / 4.057 GB, free: 67.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003648/10.61, allocations: 3.242 MB / 4.06 GB, free: 66.93 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/10.61, allocations: 228.7 kB / 4.06 GB, free: 66.92 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002962/10.61, allocations: 106 kB / 4.06 GB, free: 66.92 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.0006997/10.62, allocations: 159.8 kB / 4.06 GB, free: 66.81 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004252/10.62, allocations: 139.3 kB / 4.06 GB, free: 66.74 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007536/10.62, allocations: 5.661 MB / 4.066 GB, free: 66.34 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.753e-05/10.62, allocations: 69.81 kB / 4.066 GB, free: 66.34 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/10.62, allocations: 0 / 4.066 GB, free: 66.34 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005606/10.63, allocations: 5.124 MB / 4.071 GB, free: 65.61 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/10.64, allocations: 8.411 MB / 4.079 GB, free: 64.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/10.64, allocations: 0 / 4.079 GB, free: 64.95 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/10.64, allocations: 399.2 kB / 4.08 GB, free: 64.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009698/10.64, allocations: 420.6 kB / 4.08 GB, free: 64.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/10.64, allocations: 41.62 kB / 4.08 GB, free: 64.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/10.64, allocations: 3.352 MB / 4.083 GB, free: 62.29 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/10.64, allocations: 3.344 kB / 4.083 GB, free: 62.29 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008114/10.65, allocations: 6.248 MB / 4.089 GB, free: 61.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/10.65, allocations: 0.5613 MB / 4.09 GB, free: 61.56 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004673/10.65, allocations: 16.19 kB / 4.09 GB, free: 61.56 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/10.66, allocations: 166.6 kB / 4.09 GB, free: 61.55 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002827/10.66, allocations: 169.2 kB / 4.09 GB, free: 61.55 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/10.66, allocations: 72.91 kB / 4.09 GB, free: 61.55 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0009016/10.66, allocations: 0.6578 MB / 4.091 GB, free: 61.44 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.4e-07/10.66, allocations: 0 / 4.091 GB, free: 61.44 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008436/10.67, allocations: 2.201 MB / 4.093 GB, free: 61.35 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.009729/10.68, allocations: 2.092 MB / 4.095 GB, free: 61.14 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.007591/10.68, allocations: 4.838 MB / 4.1 GB, free: 59.78 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/10.68, allocations: 3.344 kB / 4.1 GB, free: 59.78 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002857/10.69, allocations: 2.09 MB / 4.102 GB, free: 58.95 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003201/10.69, allocations: 0.5568 MB / 4.103 GB, free: 58.84 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007429/10.7, allocations: 5.073 MB / 4.107 GB, free: 56.73 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/10.7, allocations: 1.919 MB / 4.109 GB, free: 55.86 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003234/10.7, allocations: 1.687 MB / 4.111 GB, free: 55.77 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/10.7, allocations: 135 kB / 4.111 GB, free: 55.76 MB / 0.573 GB Notification: Performance of SimCode: time 1.603e-06/10.7, allocations: 0 / 4.111 GB, free: 55.76 MB / 0.573 GB Notification: Performance of Templates: time 0.09919/10.8, allocations: 71.8 MB / 4.181 GB, free: 14.07 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches