Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002127/0.002127, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001187/0.001186, allocations: 84.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3069/0.3069, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.547e-05/2.56e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4405/0.4406, allocations: 58.85 MB / 477.2 MB, free: 5.289 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.476/8.917, allocations: 2.827 GB / 3.293 GB, free: 103.2 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/8.917, allocations: 76.48 kB / 3.293 GB, free: 103.2 MB / 0.4952 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 4.323/13.24, allocations: 0.7964 GB / 4.089 GB, free: 36.96 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.866e-06/13.24, allocations: 2.188 kB / 4.089 GB, free: 36.96 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003353/13.24, allocations: 65.45 kB / 4.089 GB, free: 36.95 MB / 0.5265 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.01789/13.26, allocations: 3.862 MB / 4.093 GB, free: 35.15 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/13.26, allocations: 10.59 kB / 4.093 GB, free: 35.15 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009027/13.27, allocations: 0.8394 MB / 4.094 GB, free: 35.02 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00955/13.28, allocations: 2.085 MB / 4.096 GB, free: 34.56 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003487/13.28, allocations: 95.5 kB / 4.096 GB, free: 34.56 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001288/13.28, allocations: 116.9 kB / 4.096 GB, free: 34.56 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008096/13.29, allocations: 2.539 MB / 4.099 GB, free: 34.55 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008104/13.3, allocations: 2.801 MB / 4.101 GB, free: 34 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-05/13.3, allocations: 11.47 kB / 4.101 GB, free: 34 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004076/13.3, allocations: 3.406 kB / 4.101 GB, free: 34 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003234/13.3, allocations: 160 kB / 4.102 GB, free: 34 MB / 0.5265 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.3574/13.65, allocations: 93.91 MB / 4.193 GB, free: 23.47 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004114/13.66, allocations: 1.641 MB / 4.195 GB, free: 23.44 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/13.66, allocations: 0.988 MB / 4.196 GB, free: 23.43 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05498/13.71, allocations: 16.94 MB / 4.212 GB, free: 12.42 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003062/13.72, allocations: 1.177 MB / 4.214 GB, free: 12.29 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=147): time 8.636e-06/13.72, allocations: 0 / 4.214 GB, free: 12.29 MB / 0.5733 GB Notification: Performance of matching and sorting (n=163): time 0.04173/13.76, allocations: 8.093 MB / 4.221 GB, free: 26.58 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002558/13.76, allocations: 383.1 kB / 4.222 GB, free: 26.14 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/13.76, allocations: 1.128 MB / 4.223 GB, free: 25.96 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0006463/13.76, allocations: 25.7 kB / 4.223 GB, free: 25.93 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.001252/13.76, allocations: 0.9689 MB / 4.224 GB, free: 25.41 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.001007/13.77, allocations: 0.5411 MB / 4.224 GB, free: 25.05 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002669/13.77, allocations: 0 / 4.224 GB, free: 25.05 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0002599/13.77, allocations: 394.8 kB / 4.225 GB, free: 24.74 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/13.77, allocations: 1.022 MB / 4.226 GB, free: 24.73 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002958/13.77, allocations: 1.477 MB / 4.227 GB, free: 24.22 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02344/13.8, allocations: 3.321 MB / 4.231 GB, free: 23.04 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.679e-05/13.8, allocations: 0 / 4.231 GB, free: 23.04 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0309/13.83, allocations: 5.48 MB / 4.236 GB, free: 19.94 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.002132/13.83, allocations: 4.654 MB / 4.24 GB, free: 15.04 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.366e-05/13.83, allocations: 12 kB / 4.24 GB, free: 15.02 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0129/13.84, allocations: 2.034 MB / 4.242 GB, free: 13.79 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/13.84, allocations: 312.5 kB / 4.243 GB, free: 13.56 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009888/13.85, allocations: 3.676 MB / 4.246 GB, free: 11.45 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004344/13.86, allocations: 260.6 kB / 4.247 GB, free: 11.26 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000621/13.86, allocations: 103.3 kB / 4.247 GB, free: 11.19 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/13.86, allocations: 4 kB / 4.247 GB, free: 11.19 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02824/13.89, allocations: 4.973 MB / 4.251 GB, free: 8.402 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.567e-05/13.89, allocations: 12 kB / 4.252 GB, free: 8.391 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009725/13.9, allocations: 1.509 MB / 4.253 GB, free: 7.484 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002777/13.9, allocations: 357.2 kB / 4.253 GB, free: 7.223 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005938/13.91, allocations: 2.666 MB / 4.256 GB, free: 5.613 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003585/13.91, allocations: 240.5 kB / 4.256 GB, free: 5.438 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006385/13.91, allocations: 94.23 kB / 4.256 GB, free: 5.371 MB / 0.589 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.0008404/13.91, allocations: 200 kB / 4.256 GB, free: 5.199 MB / 0.589 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01078/13.92, allocations: 2.559 MB / 4.259 GB, free: 3.684 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/13.92, allocations: 182 kB / 4.259 GB, free: 3.504 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.457/14.38, allocations: 6.89 MB / 4.266 GB, free: 96.95 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001347/14.38, allocations: 80.52 kB / 4.266 GB, free: 96.95 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/14.38, allocations: 5.438 kB / 4.266 GB, free: 96.95 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01392/14.39, allocations: 5.697 MB / 4.271 GB, free: 96.28 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02475/14.42, allocations: 9.347 MB / 4.281 GB, free: 95.84 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/14.42, allocations: 1.375 kB / 4.281 GB, free: 95.84 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00327/14.42, allocations: 360.5 kB / 4.281 GB, free: 95.84 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/14.42, allocations: 341.1 kB / 4.281 GB, free: 95.81 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005354/14.42, allocations: 40.52 kB / 4.281 GB, free: 95.81 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/14.43, allocations: 2.683 MB / 4.284 GB, free: 93.75 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/14.43, allocations: 3.344 kB / 4.284 GB, free: 93.75 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01692/14.44, allocations: 6.478 MB / 4.29 GB, free: 93.32 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002553/14.45, allocations: 0.7087 MB / 4.291 GB, free: 93.19 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008728/14.45, allocations: 17.86 kB / 4.291 GB, free: 93.19 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003472/14.45, allocations: 164.5 kB / 4.291 GB, free: 93.18 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006833/14.45, allocations: 141.5 kB / 4.291 GB, free: 93.18 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002741/14.45, allocations: 67.11 kB / 4.291 GB, free: 93.18 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002527/14.45, allocations: 1.08 MB / 4.292 GB, free: 93.07 MB / 0.589 GB Notification: Performance of sort global known variables: time 1.112e-06/14.45, allocations: 1.203 kB / 4.292 GB, free: 93.07 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01398/14.47, allocations: 2.663 MB / 4.295 GB, free: 93.07 MB / 0.589 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.03346/14.5, allocations: 10.14 MB / 4.305 GB, free: 91.65 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01297/14.51, allocations: 4.72 MB / 4.31 GB, free: 91.39 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/14.51, allocations: 1.75 kB / 4.31 GB, free: 91.39 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.005609/14.52, allocations: 2.164 MB / 4.312 GB, free: 91.32 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007671/14.53, allocations: 0.7776 MB / 4.312 GB, free: 91.3 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/14.55, allocations: 7.04 MB / 4.319 GB, free: 90.01 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002302/14.55, allocations: 2.174 MB / 4.321 GB, free: 89.26 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002668/14.56, allocations: 1.225 MB / 4.323 GB, free: 89.25 MB / 0.589 GB Notification: Performance of SimCode: time 1.874e-06/14.56, allocations: 1.031 kB / 4.323 GB, free: 89.25 MB / 0.589 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.003/19.56, allocations: 108 MB / 4.428 GB, free: 70.93 MB / 0.589 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat