Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 202.3 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.424/1.424, allocations: 225.6 MB / 234.8 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009669/0.0009668, allocations: 97.97 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2081/0.2081, allocations: 45.14 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.899e-05, allocations: 0 / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1203, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.355/6.475, allocations: 2.833 GB / 3.337 GB, free: 9.68 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/6.476, allocations: 78.58 kB / 3.337 GB, free: 9.641 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 3.697/10.17, allocations: 0.8043 GB / 4.142 GB, free: 45.22 MB / 0.5573 GB Notification: Performance of FrontEnd: time 5.35e-06/10.17, allocations: 3.344 kB / 4.142 GB, free: 45.22 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004472/10.17, allocations: 62.95 kB / 4.142 GB, free: 45.21 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.02476/10.2, allocations: 3.864 MB / 4.145 GB, free: 43.08 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/10.2, allocations: 10.91 kB / 4.145 GB, free: 43.08 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007306/10.21, allocations: 0.8425 MB / 4.146 GB, free: 42.87 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008258/10.21, allocations: 2.098 MB / 4.148 GB, free: 41.91 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/10.21, allocations: 97.53 kB / 4.148 GB, free: 41.89 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/10.22, allocations: 113.2 kB / 4.148 GB, free: 41.89 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006351/10.22, allocations: 2.534 MB / 4.151 GB, free: 41.02 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007695/10.23, allocations: 2.798 MB / 4.154 GB, free: 39.68 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/10.23, allocations: 11.73 kB / 4.154 GB, free: 39.67 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006765/10.23, allocations: 8 kB / 4.154 GB, free: 39.66 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000242/10.23, allocations: 160 kB / 4.154 GB, free: 39.52 MB / 0.5573 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.8388/11.07, allocations: 102.7 MB / 4.254 GB, free: 30.79 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004357/11.07, allocations: 1.639 MB / 4.256 GB, free: 30.75 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/11.08, allocations: 0.9884 MB / 4.257 GB, free: 30.74 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03541/11.11, allocations: 18.78 MB / 4.275 GB, free: 18.16 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003511/11.12, allocations: 1.18 MB / 4.276 GB, free: 18.03 MB / 0.573 GB Notification: Performance of pre-optimization done (n=147): time 8.867e-06/11.12, allocations: 3.531 kB / 4.276 GB, free: 18.03 MB / 0.573 GB Notification: Performance of matching and sorting (n=163): time 0.0315/11.15, allocations: 8.089 MB / 4.284 GB, free: 16.53 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000185/11.15, allocations: 385.5 kB / 4.284 GB, free: 16.09 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002297/11.15, allocations: 1.132 MB / 4.286 GB, free: 15.93 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004/11.15, allocations: 25.7 kB / 4.286 GB, free: 15.89 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001352/11.15, allocations: 1.004 MB / 4.287 GB, free: 15.55 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008623/11.15, allocations: 0.5324 MB / 4.287 GB, free: 15.27 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/11.15, allocations: 5.906 kB / 4.287 GB, free: 15.27 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.00021/11.15, allocations: 389 kB / 4.287 GB, free: 14.96 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0018/11.15, allocations: 1.026 MB / 4.288 GB, free: 14.96 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002282/11.16, allocations: 1.465 MB / 4.29 GB, free: 14.46 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007192/11.16, allocations: 2.143 MB / 4.292 GB, free: 14.41 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.857e-05/11.16, allocations: 3.875 kB / 4.292 GB, free: 14.41 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01073/11.17, allocations: 4.396 MB / 4.296 GB, free: 14.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002433/11.18, allocations: 4.728 MB / 4.301 GB, free: 25.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.391e-05/11.18, allocations: 18.69 kB / 4.301 GB, free: 25.33 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006803/11.18, allocations: 2.031 MB / 4.303 GB, free: 25.28 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/11.19, allocations: 305.2 kB / 4.303 GB, free: 25.28 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006271/11.19, allocations: 3.681 MB / 4.307 GB, free: 24.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003063/11.19, allocations: 268 kB / 4.307 GB, free: 24.67 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002325/11.19, allocations: 102.2 kB / 4.307 GB, free: 24.67 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/11.19, allocations: 5.594 kB / 4.307 GB, free: 24.67 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009115/11.2, allocations: 3.794 MB / 4.311 GB, free: 24.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.391e-05/11.2, allocations: 14.59 kB / 4.311 GB, free: 24.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005227/11.21, allocations: 1.546 MB / 4.312 GB, free: 24.54 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/11.21, allocations: 352.9 kB / 4.313 GB, free: 24.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003432/11.21, allocations: 2.686 MB / 4.315 GB, free: 23.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002734/11.22, allocations: 233.6 kB / 4.316 GB, free: 23.94 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002386/11.22, allocations: 99.67 kB / 4.316 GB, free: 23.94 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.0008788/11.22, allocations: 187.9 kB / 4.316 GB, free: 23.8 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006393/11.22, allocations: 2.563 MB / 4.318 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/11.22, allocations: 183.6 kB / 4.319 GB, free: 23.51 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009498/11.23, allocations: 6.879 MB / 4.325 GB, free: 22.93 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.477e-05/11.23, allocations: 86.3 kB / 4.325 GB, free: 22.93 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/11.23, allocations: 7.953 kB / 4.325 GB, free: 22.93 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007126/11.24, allocations: 5.696 MB / 4.331 GB, free: 22.23 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/11.26, allocations: 9.362 MB / 4.34 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/11.26, allocations: 0 / 4.34 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/11.26, allocations: 361.4 kB / 4.34 GB, free: 21.66 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008294/11.26, allocations: 343.5 kB / 4.341 GB, free: 21.62 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/11.26, allocations: 37.94 kB / 4.341 GB, free: 21.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001906/11.26, allocations: 2.692 MB / 4.343 GB, free: 19.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/11.26, allocations: 3.375 kB / 4.343 GB, free: 19.52 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0092/11.27, allocations: 6.464 MB / 4.35 GB, free: 18.92 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002084/11.27, allocations: 0.7066 MB / 4.35 GB, free: 18.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003982/11.27, allocations: 19.77 kB / 4.35 GB, free: 18.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/11.27, allocations: 166.3 kB / 4.351 GB, free: 18.6 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/11.27, allocations: 136.7 kB / 4.351 GB, free: 18.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/11.27, allocations: 67.11 kB / 4.351 GB, free: 18.59 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001832/11.28, allocations: 1.079 MB / 4.352 GB, free: 18.48 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.11e-07/11.28, allocations: 4 kB / 4.352 GB, free: 18.48 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01292/11.29, allocations: 2.684 MB / 4.354 GB, free: 18.35 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02909/11.32, allocations: 10.18 MB / 4.364 GB, free: 16.65 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01151/11.33, allocations: 4.763 MB / 4.369 GB, free: 16.37 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/11.33, allocations: 0 / 4.369 GB, free: 16.37 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0041/11.33, allocations: 2.173 MB / 4.371 GB, free: 16.3 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005844/11.34, allocations: 0.7777 MB / 4.372 GB, free: 16.26 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02608/11.37, allocations: 7.044 MB / 4.379 GB, free: 14.59 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004102/11.37, allocations: 2.222 MB / 4.381 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006124/11.38, allocations: 1.968 MB / 4.383 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002235/11.38, allocations: 1.195 MB / 4.384 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of SimCode: time 1.693e-06/11.38, allocations: 0 / 4.384 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8182/12.2, allocations: 110.2 MB / 4.492 GB, free: 94.44 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003212/12.2, allocations: 180.5 kB / 4.492 GB, free: 94.25 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.801/19, allocations: 0 / 4.492 GB, free: 94.25 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat