Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00101/0.00101, allocations: 193.2 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 244.1 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007792/0.0007792, allocations: 104.2 kB / 296.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2913/0.2913, allocations: 44.83 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002438/0.0002439, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2828, allocations: 62.95 MB / 0.5165 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.239/5.522, allocations: 2.828 GB / 3.344 GB, free: 158.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/5.523, allocations: 77.84 kB / 3.345 GB, free: 158.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.313/7.836, allocations: 0.7026 GB / 4.047 GB, free: 34.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.873e-06/7.836, allocations: 3.125 kB / 4.047 GB, free: 34.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001841/7.836, allocations: 33.06 kB / 4.047 GB, free: 34.88 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.01282/7.849, allocations: 2.904 MB / 4.05 GB, free: 33.21 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/7.849, allocations: 13.78 kB / 4.05 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003898/7.853, allocations: 482.3 kB / 4.051 GB, free: 33.09 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02832/7.881, allocations: 15.46 MB / 4.066 GB, free: 29.28 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002295/7.882, allocations: 144.2 kB / 4.066 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005763/7.882, allocations: 100.5 kB / 4.066 GB, free: 29.15 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004658/7.887, allocations: 1.902 MB / 4.068 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/7.887, allocations: 6.938 kB / 4.068 GB, free: 28.26 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001625/7.887, allocations: 44.92 kB / 4.068 GB, free: 28.23 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-05/7.887, allocations: 73.55 kB / 4.068 GB, free: 28.23 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003652/7.891, allocations: 1.786 MB / 4.07 GB, free: 27.63 MB / 0.5417 GB 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.0104/7.901, allocations: 8.531 MB / 4.078 GB, free: 21.17 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003051/7.904, allocations: 1.404 MB / 4.079 GB, free: 20.49 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008951/7.905, allocations: 0.527 MB / 4.08 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.483/8.388, allocations: 70.24 MB / 4.148 GB, free: 62.97 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002588/8.391, allocations: 0.8934 MB / 4.149 GB, free: 62.84 MB / 0.573 GB Notification: Performance of pre-optimization done (n=82): time 4.458e-06/8.391, allocations: 0 / 4.149 GB, free: 62.84 MB / 0.573 GB Notification: Performance of matching and sorting (n=86): time 0.01143/8.403, allocations: 4.649 MB / 4.154 GB, free: 61.82 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/8.403, allocations: 401.9 kB / 4.154 GB, free: 61.35 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/8.404, allocations: 1.041 MB / 4.155 GB, free: 61.19 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 8.941e-05/8.404, allocations: 43.33 kB / 4.155 GB, free: 61.16 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004247/8.405, allocations: 0.5745 MB / 4.156 GB, free: 60.95 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/8.405, allocations: 302.5 kB / 4.156 GB, free: 60.8 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.34e-05/8.405, allocations: 28.75 kB / 4.156 GB, free: 60.8 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.196e-05/8.405, allocations: 357.1 kB / 4.156 GB, free: 60.49 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/8.406, allocations: 0.5358 MB / 4.157 GB, free: 60.49 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/8.407, allocations: 1.017 MB / 4.158 GB, free: 59.93 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002319/8.41, allocations: 1.544 MB / 4.159 GB, free: 59.43 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/8.41, allocations: 7.938 kB / 4.159 GB, free: 59.43 MB / 0.573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.003736/8.413, allocations: 1.929 MB / 4.161 GB, free: 59.31 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003276/8.414, allocations: 0.4895 MB / 4.162 GB, free: 58.74 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/8.414, allocations: 14.19 kB / 4.162 GB, free: 58.74 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005705/8.419, allocations: 1.142 MB / 4.163 GB, free: 58.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/8.421, allocations: 249.3 kB / 4.163 GB, free: 58.73 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/8.423, allocations: 1.495 MB / 4.165 GB, free: 58.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/8.425, allocations: 130.4 kB / 4.165 GB, free: 58.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/8.425, allocations: 73.06 kB / 4.165 GB, free: 58.18 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/8.425, allocations: 6.75 kB / 4.165 GB, free: 58.18 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003486/8.428, allocations: 1.679 MB / 4.167 GB, free: 58.15 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/8.428, allocations: 12.72 kB / 4.167 GB, free: 58.15 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/8.43, allocations: 384.1 kB / 4.167 GB, free: 58.14 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009288/8.431, allocations: 281.7 kB / 4.167 GB, free: 58.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/8.432, allocations: 1.054 MB / 4.168 GB, free: 57.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/8.433, allocations: 128.3 kB / 4.168 GB, free: 57.61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/8.433, allocations: 71.22 kB / 4.168 GB, free: 57.61 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) 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 (source.medium.phase,$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,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked 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.001049/8.435, allocations: 472.5 kB / 4.169 GB, free: 57.42 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/8.435, allocations: 125.3 kB / 4.169 GB, free: 57.36 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005496/8.44, allocations: 4.057 MB / 4.173 GB, free: 57.02 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.604e-05/8.44, allocations: 42.84 kB / 4.173 GB, free: 57.02 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/8.44, allocations: 2.875 kB / 4.173 GB, free: 57.02 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/8.44, allocations: 9.203 kB / 4.173 GB, free: 57.02 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007698/8.448, allocations: 5.545 MB / 4.178 GB, free: 56.43 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/8.448, allocations: 0 / 4.178 GB, free: 56.43 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006565/8.449, allocations: 175.7 kB / 4.179 GB, free: 56.43 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005977/8.455, allocations: 1.569 MB / 4.18 GB, free: 56.37 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/8.455, allocations: 26.38 kB / 4.18 GB, free: 56.37 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001913/8.457, allocations: 2.097 MB / 4.182 GB, free: 55.31 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/8.457, allocations: 2.375 kB / 4.182 GB, free: 55.31 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006817/8.464, allocations: 3.889 MB / 4.186 GB, free: 54.87 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/8.465, allocations: 0.5247 MB / 4.186 GB, free: 54.67 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005696/8.466, allocations: 31.66 kB / 4.186 GB, free: 54.67 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/8.467, allocations: 95.23 kB / 4.187 GB, free: 54.66 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/8.467, allocations: 79.44 kB / 4.187 GB, free: 54.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.893e-05/8.468, allocations: 37.61 kB / 4.187 GB, free: 54.66 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001826/8.469, allocations: 1.046 MB / 4.188 GB, free: 54.55 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.01e-07/8.469, allocations: 0 / 4.188 GB, free: 54.55 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009508/8.479, allocations: 2.024 MB / 4.19 GB, free: 54.48 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01184/8.491, allocations: 2.295 MB / 4.192 GB, free: 54.23 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005287/8.496, allocations: 2.482 MB / 4.194 GB, free: 54.19 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/8.496, allocations: 1.719 kB / 4.194 GB, free: 54.19 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001554/8.498, allocations: 1.044 MB / 4.195 GB, free: 54.18 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/8.502, allocations: 0.6373 MB / 4.196 GB, free: 54.17 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007676/8.509, allocations: 4.487 MB / 4.2 GB, free: 52.29 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/8.51, allocations: 1.438 MB / 4.202 GB, free: 51.58 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004788/8.511, allocations: 107.9 kB / 4.202 GB, free: 51.57 MB / 0.573 GB Notification: Performance of SimCode: time 1.713e-06/8.511, allocations: 6.641 kB / 4.202 GB, free: 51.57 MB / 0.573 GB Notification: Performance of Templates: time 0.08048/8.591, allocations: 56.78 MB / 4.257 GB, free: 48.19 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/LumpedPipeInitialization/LumpedPipeInitialization.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches