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.0009996/0.0009996, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000855/0.0008546, allocations: 86.89 kB / 292.1 MB, free: 6.012 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1716/0.1716, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.494e-05/2.496e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1, allocations: 63.25 MB / 0.5115 GB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.667/5.768, allocations: 2.833 GB / 3.345 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/5.768, allocations: 79.95 kB / 3.345 GB, free: 7.551 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.334/9.102, allocations: 0.8742 GB / 4.219 GB, free: 42.97 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.473e-06/9.102, allocations: 0 / 4.219 GB, free: 42.97 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0003/9.102, allocations: 67.42 kB / 4.219 GB, free: 42.97 MB / 0.573 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.0138/9.116, allocations: 3.867 MB / 4.223 GB, free: 42.09 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/9.116, allocations: 8.562 kB / 4.223 GB, free: 42.09 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007122/9.117, allocations: 289.5 kB / 4.223 GB, free: 42.04 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005776/9.123, allocations: 0.8428 MB / 4.224 GB, free: 41.9 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005121/9.128, allocations: 2.094 MB / 4.226 GB, free: 41.46 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/9.128, allocations: 181.3 kB / 4.226 GB, free: 41.46 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003317/9.128, allocations: 201.4 kB / 4.226 GB, free: 41.45 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006212/9.135, allocations: 3.575 MB / 4.23 GB, free: 40.9 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-05/9.135, allocations: 7.656 kB / 4.23 GB, free: 40.9 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002509/9.135, allocations: 89.86 kB / 4.23 GB, free: 40.9 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002881/9.135, allocations: 157 kB / 4.23 GB, free: 40.89 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006616/9.142, allocations: 3.174 MB / 4.233 GB, free: 40.88 MB / 0.573 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.01888/9.161, allocations: 15.21 MB / 4.248 GB, free: 31.88 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004478/9.165, allocations: 2.244 MB / 4.25 GB, free: 31.84 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/9.167, allocations: 1.059 MB / 4.251 GB, free: 31.82 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04248/9.209, allocations: 27.1 MB / 4.278 GB, free: 30.27 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004166/9.213, allocations: 1.669 MB / 4.28 GB, free: 30.19 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=155): time 4.168e-06/9.213, allocations: 1.875 kB / 4.28 GB, free: 30.19 MB / 0.5886 GB Notification: Performance of matching and sorting (n=171): time 0.01582/9.229, allocations: 7.037 MB / 4.286 GB, free: 29.27 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/9.229, allocations: 276.8 kB / 4.287 GB, free: 28.95 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002406/9.232, allocations: 1.452 MB / 4.288 GB, free: 28.77 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002056/9.232, allocations: 57.8 kB / 4.288 GB, free: 28.74 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008242/9.233, allocations: 0.9641 MB / 4.289 GB, free: 28.35 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/9.233, allocations: 0.585 MB / 4.29 GB, free: 27.98 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/9.233, allocations: 39.72 kB / 4.29 GB, free: 27.98 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001897/9.234, allocations: 389.3 kB / 4.29 GB, free: 27.67 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/9.235, allocations: 1.049 MB / 4.291 GB, free: 27.67 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/9.237, allocations: 1.51 MB / 4.293 GB, free: 27.17 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/9.239, allocations: 1.275 MB / 4.294 GB, free: 27.11 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/9.239, allocations: 4.375 kB / 4.294 GB, free: 27.11 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005273/9.244, allocations: 3.677 MB / 4.297 GB, free: 26.89 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001609/9.246, allocations: 4.806 MB / 4.302 GB, free: 21.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-05/9.246, allocations: 13.88 kB / 4.302 GB, free: 21.85 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01376/9.259, allocations: 3.028 MB / 4.305 GB, free: 21.83 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/9.261, allocations: 315.9 kB / 4.305 GB, free: 21.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004435/9.265, allocations: 3.298 MB / 4.309 GB, free: 21.26 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002555/9.268, allocations: 262.5 kB / 4.309 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003492/9.268, allocations: 109.6 kB / 4.309 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/9.268, allocations: 6.875 kB / 4.309 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005089/9.273, allocations: 3.27 MB / 4.312 GB, free: 21.15 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.742e-05/9.273, allocations: 14.67 kB / 4.312 GB, free: 21.15 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005658/9.279, allocations: 1.639 MB / 4.314 GB, free: 21.13 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/9.28, allocations: 351.2 kB / 4.314 GB, free: 21.13 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/9.284, allocations: 2.575 MB / 4.317 GB, free: 20.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002562/9.286, allocations: 265 kB / 4.317 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003526/9.286, allocations: 95.84 kB / 4.317 GB, free: 20.55 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 () * 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.000738/9.287, allocations: 261.2 kB / 4.317 GB, free: 20.41 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/9.288, allocations: 207.5 kB / 4.317 GB, free: 20.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008854/9.297, allocations: 7.748 MB / 4.325 GB, free: 19.51 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.881e-05/9.297, allocations: 91.95 kB / 4.325 GB, free: 19.51 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/9.297, allocations: 2.906 kB / 4.325 GB, free: 19.51 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006454/9.303, allocations: 6.639 MB / 4.332 GB, free: 18.65 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/9.316, allocations: 10.94 MB / 4.342 GB, free: 17.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/9.316, allocations: 0.5312 kB / 4.342 GB, free: 17.89 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/9.317, allocations: 415.2 kB / 4.343 GB, free: 17.89 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/9.318, allocations: 349.8 kB / 4.343 GB, free: 17.85 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001884/9.319, allocations: 64.11 kB / 4.343 GB, free: 17.85 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/9.32, allocations: 2.574 MB / 4.346 GB, free: 15.77 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/9.32, allocations: 0 / 4.346 GB, free: 15.77 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007425/9.327, allocations: 6.974 MB / 4.352 GB, free: 15.13 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/9.329, allocations: 0.7815 MB / 4.353 GB, free: 14.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006367/9.33, allocations: 53.72 kB / 4.353 GB, free: 14.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/9.332, allocations: 193.4 kB / 4.353 GB, free: 14.78 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/9.332, allocations: 152.3 kB / 4.353 GB, free: 14.78 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/9.332, allocations: 74.8 kB / 4.354 GB, free: 14.78 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001989/9.334, allocations: 1.291 MB / 4.355 GB, free: 14.62 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.5e-07/9.334, allocations: 0 / 4.355 GB, free: 14.62 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01173/9.346, allocations: 2.816 MB / 4.358 GB, free: 14.2 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) * 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.02186/9.368, allocations: 10.26 MB / 4.368 GB, free: 12.56 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009097/9.377, allocations: 5.114 MB / 4.373 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/9.377, allocations: 2.688 kB / 4.373 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003518/9.381, allocations: 2.374 MB / 4.375 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005445/9.386, allocations: 0.9378 MB / 4.376 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01767/9.404, allocations: 7.691 MB / 4.383 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002303/9.406, allocations: 2.313 MB / 4.386 GB, free: 7.141 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.004729/9.411, allocations: 1.956 MB / 4.387 GB, free: 7.121 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001545/9.413, allocations: 1.288 MB / 4.389 GB, free: 6.062 MB / 0.5886 GB Notification: Performance of SimCode: time 6.42e-07/9.413, allocations: 0 / 4.389 GB, free: 6.062 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5006/9.913, allocations: 131.9 MB / 4.518 GB, free: 67.96 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/9.913, allocations: 233.4 kB / 4.518 GB, free: 67.72 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.862/15.78, allocations: 0 / 4.518 GB, free: 67.72 MB / 0.6042 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