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.001784/0.001784, allocations: 197.5 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.399/1.399, allocations: 227.2 MB / 245 MB, free: 7.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009517/0.0009519, allocations: 98.44 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.365/0.365, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000288/0.000288, allocations: 8.219 kB / 468.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3531, allocations: 63.25 MB / 0.5193 GB, free: 43.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.722/7.076, allocations: 2.833 GB / 3.353 GB, free: 73.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/7.076, allocations: 83.38 kB / 3.353 GB, free: 73.26 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.336/10.41, allocations: 0.8132 GB / 4.166 GB, free: 36.52 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.585e-06/10.41, allocations: 7.781 kB / 4.166 GB, free: 36.52 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002867/10.41, allocations: 59.62 kB / 4.166 GB, free: 36.5 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.01808/10.43, allocations: 4.15 MB / 4.17 GB, free: 34.51 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/10.43, allocations: 7.719 kB / 4.17 GB, free: 34.51 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001384/10.43, allocations: 294.9 kB / 4.17 GB, free: 34.46 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006967/10.44, allocations: 0.8425 MB / 4.171 GB, free: 34.33 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007487/10.45, allocations: 2.113 MB / 4.173 GB, free: 33.87 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002808/10.45, allocations: 180.7 kB / 4.173 GB, free: 33.86 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/10.45, allocations: 198 kB / 4.174 GB, free: 33.86 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008468/10.46, allocations: 3.594 MB / 4.177 GB, free: 33.31 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.335e-05/10.46, allocations: 15.09 kB / 4.177 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003166/10.46, allocations: 86.12 kB / 4.177 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002034/10.46, allocations: 158 kB / 4.177 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007593/10.46, allocations: 3.305 MB / 4.181 GB, free: 33.29 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.02363/10.49, allocations: 15.2 MB / 4.195 GB, free: 24.24 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0052/10.49, allocations: 2.339 MB / 4.198 GB, free: 24.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0457/10.54, allocations: 27.03 MB / 4.224 GB, free: 22.22 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004679/10.54, allocations: 1.661 MB / 4.226 GB, free: 22.12 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 4.939e-06/10.54, allocations: 4 kB / 4.226 GB, free: 22.11 MB / 0.573 GB Notification: Performance of matching and sorting (n=171): time 0.01943/10.56, allocations: 8.313 MB / 4.234 GB, free: 21.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002034/10.56, allocations: 286 kB / 4.234 GB, free: 20.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00248/10.57, allocations: 1.463 MB / 4.236 GB, free: 20.53 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002447/10.57, allocations: 58.98 kB / 4.236 GB, free: 20.5 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008422/10.57, allocations: 0.9719 MB / 4.237 GB, free: 19.89 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000539/10.57, allocations: 0.5834 MB / 4.237 GB, free: 19.43 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/10.57, allocations: 36.72 kB / 4.237 GB, free: 19.41 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002397/10.57, allocations: 388.8 kB / 4.238 GB, free: 19.07 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001946/10.57, allocations: 1.155 MB / 4.239 GB, free: 18.68 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002109/10.57, allocations: 1.627 MB / 4.24 GB, free: 17.74 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/10.57, allocations: 1.382 MB / 4.242 GB, free: 17.18 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/10.57, allocations: 2.531 kB / 4.242 GB, free: 17.18 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006558/10.58, allocations: 3.977 MB / 4.245 GB, free: 15.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002052/10.58, allocations: 4.806 MB / 4.25 GB, free: 10.51 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-05/10.58, allocations: 10.81 kB / 4.25 GB, free: 10.51 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01557/10.6, allocations: 3.198 MB / 4.253 GB, free: 10.06 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/10.6, allocations: 307 kB / 4.254 GB, free: 10.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005359/10.6, allocations: 3.514 MB / 4.257 GB, free: 8.461 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002781/10.61, allocations: 254 kB / 4.257 GB, free: 8.402 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002404/10.61, allocations: 106.7 kB / 4.257 GB, free: 8.383 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/10.61, allocations: 6.188 kB / 4.257 GB, free: 8.383 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006128/10.61, allocations: 3.568 MB / 4.261 GB, free: 7.086 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.163e-05/10.61, allocations: 14.09 kB / 4.261 GB, free: 7.086 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006675/10.62, allocations: 1.764 MB / 4.263 GB, free: 6.773 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/10.62, allocations: 350.6 kB / 4.263 GB, free: 6.555 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003794/10.63, allocations: 2.758 MB / 4.266 GB, free: 4.168 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/10.63, allocations: 263.2 kB / 4.266 GB, free: 3.969 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002489/10.63, allocations: 108.8 kB / 4.266 GB, free: 3.871 MB / 0.573 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.0018/10.63, allocations: 0.7057 MB / 4.267 GB, free: 3.219 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005826/10.63, allocations: 213.2 kB / 4.267 GB, free: 3.012 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0114/10.64, allocations: 7.827 MB / 4.275 GB, free: 12.07 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-05/10.64, allocations: 91.06 kB / 4.275 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/10.64, allocations: 0 / 4.275 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009127/10.65, allocations: 6.731 MB / 4.281 GB, free: 5.816 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4013/11.05, allocations: 11.08 MB / 4.292 GB, free: 66.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/11.05, allocations: 3.328 kB / 4.292 GB, free: 66.18 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001681/11.06, allocations: 408.9 kB / 4.292 GB, free: 66.18 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/11.06, allocations: 383 kB / 4.293 GB, free: 66.14 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/11.06, allocations: 62.78 kB / 4.293 GB, free: 66.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/11.06, allocations: 2.574 MB / 4.295 GB, free: 64.08 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/11.06, allocations: 0.625 kB / 4.295 GB, free: 64.08 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009603/11.07, allocations: 7.312 MB / 4.302 GB, free: 63.65 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/11.07, allocations: 0.7784 MB / 4.303 GB, free: 63.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/11.07, allocations: 49.92 kB / 4.303 GB, free: 63.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/11.07, allocations: 203.5 kB / 4.303 GB, free: 63.56 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/11.07, allocations: 155.6 kB / 4.304 GB, free: 63.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/11.07, allocations: 72.42 kB / 4.304 GB, free: 63.55 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001925/11.07, allocations: 1.313 MB / 4.305 GB, free: 63.41 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/11.07, allocations: 3.344 kB / 4.305 GB, free: 63.41 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01276/11.09, allocations: 2.809 MB / 4.308 GB, free: 63.41 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.02433/11.11, allocations: 10.59 MB / 4.318 GB, free: 62.23 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01094/11.12, allocations: 5.393 MB / 4.323 GB, free: 61.92 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/11.12, allocations: 0 / 4.323 GB, free: 61.92 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003995/11.13, allocations: 2.453 MB / 4.326 GB, free: 61.84 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004974/11.13, allocations: 0.9302 MB / 4.327 GB, free: 61.83 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02722/11.16, allocations: 19.37 MB / 4.346 GB, free: 49.41 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002487/11.16, allocations: 2.303 MB / 4.348 GB, free: 48.64 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005123/11.17, allocations: 1.76 MB / 4.35 GB, free: 48.62 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0018/11.17, allocations: 1.315 MB / 4.351 GB, free: 48.61 MB / 0.5886 GB Notification: Performance of SimCode: time 1.172e-06/11.17, allocations: 0 / 4.351 GB, free: 48.61 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1812/11.35, allocations: 123.4 MB / 4.471 GB, free: 21.94 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/11.35, allocations: 255.2 kB / 4.472 GB, free: 21.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.253/17.6, allocations: 0 / 4.472 GB, free: 21.6 MB / 0.5886 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