Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, 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.701/1.701, 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.001297/0.001297, allocations: 95.56 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2461/0.2461, allocations: 45.15 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.782e-05/1.786e-05, allocations: 4 kB / 453.3 MB, free: 75.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1366, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.664/6.8, allocations: 2.833 GB / 3.337 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/6.801, allocations: 79.95 kB / 3.337 GB, free: 9.746 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.068/9.869, allocations: 0.803 GB / 4.14 GB, free: 46.01 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.844e-06/9.869, allocations: 0 / 4.14 GB, free: 46.01 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004137/9.869, allocations: 72.53 kB / 4.14 GB, free: 45.99 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.01815/9.888, allocations: 3.857 MB / 4.144 GB, free: 43.87 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/9.888, allocations: 8.094 kB / 4.144 GB, free: 43.87 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007327/9.895, allocations: 0.8477 MB / 4.145 GB, free: 43.66 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008238/9.903, allocations: 2.096 MB / 4.147 GB, free: 42.69 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003065/9.904, allocations: 92.5 kB / 4.147 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001269/9.905, allocations: 114.3 kB / 4.147 GB, free: 42.68 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005967/9.911, allocations: 2.543 MB / 4.15 GB, free: 41.8 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005365/9.916, allocations: 2.796 MB / 4.152 GB, free: 40.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.518e-05/9.916, allocations: 6.719 kB / 4.152 GB, free: 40.49 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/9.917, allocations: 10.19 kB / 4.152 GB, free: 40.49 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001839/9.917, allocations: 169.4 kB / 4.152 GB, free: 40.4 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.6186/10.54, allocations: 102.8 MB / 4.253 GB, free: 31.65 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/10.54, allocations: 1.637 MB / 4.254 GB, free: 31.62 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/10.54, allocations: 0.9893 MB / 4.255 GB, free: 31.61 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02948/10.57, allocations: 18.78 MB / 4.274 GB, free: 19.11 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002071/10.57, allocations: 1.185 MB / 4.275 GB, free: 18.98 MB / 0.573 GB Notification: Performance of pre-optimization done (n=147): time 3.457e-06/10.57, allocations: 3 kB / 4.275 GB, free: 18.98 MB / 0.573 GB Notification: Performance of matching and sorting (n=163): time 0.01976/10.59, allocations: 8.085 MB / 4.283 GB, free: 17.47 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.713e-05/10.59, allocations: 389.4 kB / 4.283 GB, free: 17.03 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001452/10.59, allocations: 1.133 MB / 4.284 GB, free: 16.87 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002551/10.59, allocations: 28.73 kB / 4.284 GB, free: 16.84 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008089/10.59, allocations: 0.9985 MB / 4.285 GB, free: 16.49 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005715/10.59, allocations: 0.539 MB / 4.286 GB, free: 16.21 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/10.59, allocations: 0 / 4.286 GB, free: 16.21 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001148/10.59, allocations: 387.7 kB / 4.286 GB, free: 15.91 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/10.6, allocations: 1.018 MB / 4.287 GB, free: 15.91 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/10.6, allocations: 1.472 MB / 4.289 GB, free: 15.41 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006515/10.6, allocations: 2.144 MB / 4.291 GB, free: 15.35 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.729e-05/10.6, allocations: 3.938 kB / 4.291 GB, free: 15.35 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01036/10.61, allocations: 3.857 MB / 4.294 GB, free: 15.12 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001758/10.62, allocations: 4.723 MB / 4.299 GB, free: 26.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-05/10.62, allocations: 17.77 kB / 4.299 GB, free: 26.25 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006177/10.62, allocations: 240.2 kB / 4.299 GB, free: 26.21 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/10.62, allocations: 0.5101 MB / 4.3 GB, free: 26.21 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/10.62, allocations: 2.523 MB / 4.302 GB, free: 24.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002837/10.62, allocations: 264.7 kB / 4.303 GB, free: 24.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002583/10.62, allocations: 96.53 kB / 4.303 GB, free: 24.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/10.62, allocations: 7.781 kB / 4.303 GB, free: 24.1 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008308/10.63, allocations: 3.413 MB / 4.306 GB, free: 24 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-05/10.63, allocations: 17.73 kB / 4.306 GB, free: 23.99 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005107/10.63, allocations: 239.8 kB / 4.306 GB, free: 23.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/10.63, allocations: 0.5006 MB / 4.307 GB, free: 23.96 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/10.64, allocations: 2.52 MB / 4.309 GB, free: 21.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002438/10.64, allocations: 235.1 kB / 4.309 GB, free: 21.85 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/10.64, allocations: 101.2 kB / 4.309 GB, free: 21.85 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 (246): * Single equations (assignments): 239 * 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: 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 prepare postOptimizeDAE: time 0.0006883/10.64, allocations: 203.7 kB / 4.31 GB, free: 21.71 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005848/10.65, allocations: 2.552 MB / 4.312 GB, free: 21.51 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003696/10.65, allocations: 181 kB / 4.312 GB, free: 21.42 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008833/10.65, allocations: 6.892 MB / 4.319 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.075e-05/10.65, allocations: 80.48 kB / 4.319 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/10.65, allocations: 2.156 kB / 4.319 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007006/10.66, allocations: 5.704 MB / 4.325 GB, free: 20.14 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/10.68, allocations: 9.353 MB / 4.334 GB, free: 19.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/10.68, allocations: 0 / 4.334 GB, free: 19.58 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/10.68, allocations: 360.3 kB / 4.334 GB, free: 19.58 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007999/10.68, allocations: 341.4 kB / 4.335 GB, free: 19.53 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/10.68, allocations: 40.34 kB / 4.335 GB, free: 19.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001847/10.68, allocations: 2.687 MB / 4.337 GB, free: 17.44 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/10.68, allocations: 6.469 kB / 4.337 GB, free: 17.44 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008764/10.69, allocations: 6.468 MB / 4.344 GB, free: 16.84 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/10.69, allocations: 0.7131 MB / 4.344 GB, free: 16.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005415/10.69, allocations: 20.89 kB / 4.344 GB, free: 16.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001702/10.69, allocations: 167.3 kB / 4.344 GB, free: 16.51 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002561/10.69, allocations: 138.6 kB / 4.345 GB, free: 16.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/10.69, allocations: 69.62 kB / 4.345 GB, free: 16.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001607/10.69, allocations: 1.077 MB / 4.346 GB, free: 16.39 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.71e-07/10.69, allocations: 3.531 kB / 4.346 GB, free: 16.39 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01144/10.71, allocations: 2.674 MB / 4.348 GB, free: 16.27 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.02519/10.73, allocations: 10.19 MB / 4.358 GB, free: 14.57 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009163/10.74, allocations: 4.701 MB / 4.363 GB, free: 14.32 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/10.74, allocations: 0 / 4.363 GB, free: 14.32 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0032/10.74, allocations: 2.176 MB / 4.365 GB, free: 14.25 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004726/10.75, allocations: 0.7682 MB / 4.366 GB, free: 14.21 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0182/10.77, allocations: 7.056 MB / 4.373 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001921/10.77, allocations: 2.221 MB / 4.375 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005559/10.77, allocations: 2.894 MB / 4.378 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/10.78, allocations: 1.209 MB / 4.379 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of SimCode: time 1.042e-06/10.78, allocations: 0 / 4.379 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6362/11.41, allocations: 100.6 MB / 4.477 GB, free: 95.09 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/11.41, allocations: 165.9 kB / 4.477 GB, free: 94.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.99/18.4, allocations: 0 / 4.477 GB, free: 94.9 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat