Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001403, allocations: 198 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.2 MB / 245 MB, free: 5.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 99.31 kB / 297.3 MB, free: 5.984 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.37/0.37, allocations: 45.23 MB / 394.6 MB, free: 31.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.000308, allocations: 8.219 kB / 468.5 MB, free: 7.613 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4151, allocations: 63.24 MB / 0.5193 GB, free: 37.47 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.768/7.183, allocations: 2.833 GB / 3.353 GB, free: 134.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/7.183, allocations: 84.42 kB / 3.353 GB, free: 134.4 MB / 0.5417 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.416/10.6, allocations: 0.8763 GB / 4.229 GB, free: 33.38 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.046e-06/10.6, allocations: 0 / 4.229 GB, free: 33.38 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003209/10.6, allocations: 63.75 kB / 4.229 GB, free: 33.38 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.017/10.62, allocations: 4.148 MB / 4.233 GB, free: 31.37 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/10.62, allocations: 11.56 kB / 4.233 GB, free: 31.37 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002053/10.62, allocations: 296.3 kB / 4.234 GB, free: 31.32 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00708/10.63, allocations: 0.8433 MB / 4.234 GB, free: 31.19 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007675/10.63, allocations: 2.113 MB / 4.236 GB, free: 30.73 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003122/10.63, allocations: 180.9 kB / 4.237 GB, free: 30.72 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/10.63, allocations: 201.8 kB / 4.237 GB, free: 30.72 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/10.65, allocations: 3.591 MB / 4.24 GB, free: 30.17 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.312e-05/10.65, allocations: 6.938 kB / 4.24 GB, free: 30.17 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003932/10.65, allocations: 88.56 kB / 4.24 GB, free: 30.17 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002411/10.65, allocations: 165.2 kB / 4.241 GB, free: 30.16 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007454/10.65, allocations: 3.299 MB / 4.244 GB, free: 30.15 MB / 0.5573 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.01889/10.67, allocations: 15.2 MB / 4.259 GB, free: 21.08 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005135/10.68, allocations: 2.341 MB / 4.261 GB, free: 21.04 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04626/10.72, allocations: 27.02 MB / 4.287 GB, free: 18.79 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004716/10.73, allocations: 1.659 MB / 4.289 GB, free: 18.68 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 5.681e-06/10.73, allocations: 0 / 4.289 GB, free: 18.68 MB / 0.573 GB Notification: Performance of matching and sorting (n=171): time 0.02176/10.75, allocations: 8.334 MB / 4.297 GB, free: 17.57 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001742/10.75, allocations: 280.6 kB / 4.297 GB, free: 17.25 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00285/10.75, allocations: 1.463 MB / 4.299 GB, free: 17.08 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002805/10.75, allocations: 59.23 kB / 4.299 GB, free: 17.05 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008283/10.75, allocations: 0.9694 MB / 4.3 GB, free: 16.57 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005146/10.76, allocations: 0.575 MB / 4.3 GB, free: 16.12 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/10.76, allocations: 38.88 kB / 4.3 GB, free: 16.09 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001929/10.76, allocations: 390.7 kB / 4.301 GB, free: 15.75 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00188/10.76, allocations: 1.161 MB / 4.302 GB, free: 15.36 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002102/10.76, allocations: 1.62 MB / 4.303 GB, free: 14.43 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00208/10.76, allocations: 1.387 MB / 4.305 GB, free: 13.87 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/10.76, allocations: 3.844 kB / 4.305 GB, free: 13.87 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006368/10.77, allocations: 3.969 MB / 4.309 GB, free: 12.38 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002016/10.77, allocations: 4.81 MB / 4.313 GB, free: 7.191 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.487e-05/10.77, allocations: 18.02 kB / 4.313 GB, free: 7.188 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0152/10.79, allocations: 3.195 MB / 4.316 GB, free: 6.734 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/10.79, allocations: 306 kB / 4.317 GB, free: 6.703 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006168/10.79, allocations: 3.505 MB / 4.32 GB, free: 19.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003025/10.8, allocations: 266.3 kB / 4.32 GB, free: 19.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004319/10.8, allocations: 99.69 kB / 4.321 GB, free: 19.41 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/10.8, allocations: 5.719 kB / 4.321 GB, free: 19.41 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006855/10.8, allocations: 3.567 MB / 4.324 GB, free: 16.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.714e-05/10.8, allocations: 15.52 kB / 4.324 GB, free: 16.32 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007067/10.81, allocations: 1.763 MB / 4.326 GB, free: 14.98 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/10.81, allocations: 345.4 kB / 4.326 GB, free: 14.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004729/10.82, allocations: 2.776 MB / 4.329 GB, free: 12.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00279/10.82, allocations: 253 kB / 4.329 GB, free: 12.09 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004619/10.82, allocations: 99.31 kB / 4.329 GB, free: 12 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,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked 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.001815/10.82, allocations: 0.7132 MB / 4.33 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000691/10.82, allocations: 209.5 kB / 4.33 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/10.83, allocations: 7.838 MB / 4.338 GB, free: 4.18 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.533e-05/10.83, allocations: 91.72 kB / 4.338 GB, free: 4.125 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/10.83, allocations: 3.938 kB / 4.338 GB, free: 4.121 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3712/11.21, allocations: 6.961 MB / 4.345 GB, free: 62.54 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01914/11.23, allocations: 11.06 MB / 4.355 GB, free: 61.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/11.23, allocations: 5.625 kB / 4.355 GB, free: 61.95 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/11.23, allocations: 407.1 kB / 4.356 GB, free: 61.95 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/11.23, allocations: 382.5 kB / 4.356 GB, free: 61.92 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002927/11.23, allocations: 69.08 kB / 4.356 GB, free: 61.92 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/11.23, allocations: 2.568 MB / 4.359 GB, free: 59.86 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/11.23, allocations: 0 / 4.359 GB, free: 59.86 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/11.24, allocations: 7.31 MB / 4.366 GB, free: 59.41 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002246/11.24, allocations: 0.7732 MB / 4.367 GB, free: 59.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006046/11.24, allocations: 49.94 kB / 4.367 GB, free: 59.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/11.25, allocations: 214.5 kB / 4.367 GB, free: 59.24 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003034/11.25, allocations: 151.5 kB / 4.367 GB, free: 59.24 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/11.25, allocations: 67.8 kB / 4.367 GB, free: 59.24 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001921/11.25, allocations: 1.311 MB / 4.368 GB, free: 59.09 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.232e-06/11.25, allocations: 0 / 4.368 GB, free: 59.09 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01141/11.26, allocations: 2.817 MB / 4.371 GB, free: 59.09 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.02724/11.29, allocations: 10.59 MB / 4.381 GB, free: 57.88 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01364/11.3, allocations: 5.38 MB / 4.387 GB, free: 57.57 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/11.3, allocations: 1.875 kB / 4.387 GB, free: 57.57 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005575/11.31, allocations: 2.452 MB / 4.389 GB, free: 57.48 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006618/11.31, allocations: 0.9331 MB / 4.39 GB, free: 57.47 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/11.34, allocations: 19.37 MB / 4.409 GB, free: 45.03 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003966/11.35, allocations: 2.309 MB / 4.411 GB, free: 44.26 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.004934/11.35, allocations: 1.761 MB / 4.413 GB, free: 44.24 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/11.35, allocations: 1.317 MB / 4.414 GB, free: 44.23 MB / 0.5886 GB Notification: Performance of SimCode: time 1.983e-06/11.35, allocations: 0 / 4.414 GB, free: 44.23 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1685/11.52, allocations: 123.4 MB / 4.535 GB, free: 13.16 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/11.52, allocations: 254.2 kB / 4.535 GB, free: 12.83 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.389/17.91, allocations: 0 / 4.535 GB, free: 12.83 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat