Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.001205/0.001205, allocations: 181.3 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.771/1.771, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 102.8 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2247/0.2247, allocations: 43.57 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004139/0.0004139, allocations: 8 kB / 431.5 MB, free: 19.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1322, allocations: 58.87 MB / 490.3 MB, free: 8.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.007/6.139, allocations: 2.825 GB / 3.304 GB, free: 12 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/6.139, allocations: 79.03 kB / 3.304 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.141/8.28, allocations: 0.5782 GB / 3.882 GB, free: 34.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.024e-06/8.28, allocations: 0 / 3.882 GB, free: 34.93 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002436/8.281, allocations: 46.28 kB / 3.882 GB, free: 34.89 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01254/8.293, allocations: 3.054 MB / 3.885 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/8.293, allocations: 8.031 kB / 3.885 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009151/8.294, allocations: 199 kB / 3.885 GB, free: 31.94 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00426/8.298, allocations: 0.5339 MB / 3.886 GB, free: 31.51 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004838/8.303, allocations: 1.453 MB / 3.887 GB, free: 30.34 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/8.303, allocations: 121.1 kB / 3.887 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006819/8.304, allocations: 126.7 kB / 3.887 GB, free: 30.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006031/8.31, allocations: 2.299 MB / 3.89 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.307e-05/8.31, allocations: 4 kB / 3.89 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003266/8.311, allocations: 59.67 kB / 3.89 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001448/8.311, allocations: 102.2 kB / 3.89 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004631/8.315, allocations: 2.069 MB / 3.892 GB, free: 25.59 MB / 0.5105 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.01485/8.33, allocations: 9.791 MB / 3.901 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003501/8.334, allocations: 1.413 MB / 3.903 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04808/8.382, allocations: 24.43 MB / 3.927 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003563/8.386, allocations: 1.06 MB / 3.928 GB, free: 1.191 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 5.099e-06/8.386, allocations: 0 / 3.928 GB, free: 1.191 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.3412/8.727, allocations: 5.299 MB / 3.933 GB, free: 58.32 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/8.727, allocations: 282.2 kB / 3.933 GB, free: 58.01 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/8.728, allocations: 1.032 MB / 3.934 GB, free: 57.86 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001116/8.728, allocations: 48.2 kB / 3.934 GB, free: 57.83 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004021/8.729, allocations: 0.6409 MB / 3.935 GB, free: 57.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002498/8.729, allocations: 358.3 kB / 3.935 GB, free: 57.45 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.894e-05/8.729, allocations: 25.69 kB / 3.935 GB, free: 57.45 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.161e-05/8.729, allocations: 353.9 kB / 3.936 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/8.73, allocations: 0.6953 MB / 3.936 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/8.732, allocations: 0.988 MB / 3.937 GB, free: 56.83 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/8.733, allocations: 0.8326 MB / 3.938 GB, free: 56.79 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/8.733, allocations: 1.25 kB / 3.938 GB, free: 56.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003821/8.737, allocations: 2.036 MB / 3.94 GB, free: 56.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005813/8.737, allocations: 2.758 MB / 3.943 GB, free: 53.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-05/8.737, allocations: 12.2 kB / 3.943 GB, free: 53.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005507/8.738, allocations: 145.9 kB / 3.943 GB, free: 53.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/8.739, allocations: 315.6 kB / 3.943 GB, free: 53.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006567/8.74, allocations: 1.248 MB / 3.944 GB, free: 52.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/8.741, allocations: 160.2 kB / 3.945 GB, free: 52.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/8.741, allocations: 65.27 kB / 3.945 GB, free: 52.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/8.742, allocations: 3.781 kB / 3.945 GB, free: 52.72 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003463/8.745, allocations: 1.859 MB / 3.946 GB, free: 52.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/8.745, allocations: 9.781 kB / 3.946 GB, free: 52.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004563/8.745, allocations: 138.5 kB / 3.947 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/8.747, allocations: 311.5 kB / 3.947 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007131/8.748, allocations: 1.254 MB / 3.948 GB, free: 51.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/8.749, allocations: 158.2 kB / 3.948 GB, free: 51.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/8.749, allocations: 62.53 kB / 3.948 GB, free: 51.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.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 (147): * Single equations (assignments): 142 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009685/8.75, allocations: 0.5303 MB / 3.949 GB, free: 51.38 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002357/8.75, allocations: 142.5 kB / 3.949 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006612/8.757, allocations: 4.822 MB / 3.954 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.423e-05/8.757, allocations: 57.12 kB / 3.954 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/8.757, allocations: 0 / 3.954 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004566/8.762, allocations: 4.049 MB / 3.958 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007944/8.77, allocations: 6.873 MB / 3.964 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/8.77, allocations: 0 / 3.964 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009907/8.771, allocations: 250 kB / 3.965 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007008/8.771, allocations: 192.5 kB / 3.965 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.221e-05/8.772, allocations: 43.47 kB / 3.965 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005616/8.772, allocations: 1.285 MB / 3.966 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/8.772, allocations: 0 / 3.966 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005178/8.777, allocations: 4.455 MB / 3.97 GB, free: 48.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/8.778, allocations: 0.5484 MB / 3.971 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002208/8.779, allocations: 40.28 kB / 3.971 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008952/8.779, allocations: 125.9 kB / 3.971 GB, free: 48.18 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/8.78, allocations: 92.58 kB / 3.971 GB, free: 48.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.842e-05/8.78, allocations: 47.86 kB / 3.971 GB, free: 48.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001177/8.781, allocations: 0.9966 MB / 3.972 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/8.781, allocations: 3.156 kB / 3.972 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007236/8.788, allocations: 2.21 MB / 3.974 GB, free: 48.05 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($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,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * 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 (119): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01559/8.804, allocations: 7.26 MB / 3.981 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005316/8.809, allocations: 3.24 MB / 3.985 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/8.809, allocations: 0 / 3.985 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001829/8.811, allocations: 1.485 MB / 3.986 GB, free: 46.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/8.814, allocations: 0.6355 MB / 3.987 GB, free: 46.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/8.829, allocations: 12.1 MB / 3.999 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/8.83, allocations: 1.716 MB / 4 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00278/8.833, allocations: 1.613 MB / 4.002 GB, free: 38.31 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/8.834, allocations: 0.8463 MB / 4.003 GB, free: 38.3 MB / 0.5261 GB Notification: Performance of SimCode: time 7.71e-07/8.834, allocations: 0 / 4.003 GB, free: 38.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1316/8.965, allocations: 83.8 MB / 4.084 GB, free: 28 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/8.965, allocations: 247.5 kB / 4.085 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.925/13.89, allocations: 0 / 4.085 GB, free: 27.66 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat