Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007974/0.0007974, allocations: 97.73 kB / 286.7 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1872/0.1872, allocations: 45.14 MB / 383.8 MB, free: 308 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/1.991e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09822, allocations: 63.24 MB / 0.5044 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.743/6.841, allocations: 2.83 GB / 3.335 GB, free: 83.73 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/6.842, allocations: 83.61 kB / 3.335 GB, free: 83.66 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.875/9.717, allocations: 0.5772 GB / 3.912 GB, free: 53.47 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.156e-06/9.717, allocations: 0 / 3.912 GB, free: 53.47 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003913/9.717, allocations: 46.89 kB / 3.912 GB, free: 53.46 MB / 0.5417 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.0186/9.736, allocations: 2.861 MB / 3.915 GB, free: 51.98 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/9.736, allocations: 11.25 kB / 3.915 GB, free: 51.98 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004804/9.741, allocations: 0.5361 MB / 3.915 GB, free: 51.89 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005016/9.746, allocations: 1.436 MB / 3.917 GB, free: 51.53 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/9.746, allocations: 61.94 kB / 3.917 GB, free: 51.52 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006196/9.746, allocations: 69.25 kB / 3.917 GB, free: 51.52 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003574/9.75, allocations: 1.563 MB / 3.918 GB, free: 51.52 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00413/9.754, allocations: 1.779 MB / 3.92 GB, free: 51.14 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.268e-05/9.754, allocations: 7.781 kB / 3.92 GB, free: 51.14 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000328/9.755, allocations: 7 kB / 3.92 GB, free: 51.14 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/9.755, allocations: 101.8 kB / 3.92 GB, free: 51.13 MB / 0.5417 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.2013/9.956, allocations: 97.49 MB / 4.015 GB, free: 31.53 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002649/9.959, allocations: 0.9228 MB / 4.016 GB, free: 31.04 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/9.96, allocations: 0.5721 MB / 4.017 GB, free: 30.73 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0405/10, allocations: 18.76 MB / 4.035 GB, free: 12.17 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002086/10, allocations: 0.7257 MB / 4.036 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=88): time 1.001e-05/10, allocations: 0 / 4.036 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96): time 0.01617/10.02, allocations: 4.76 MB / 4.04 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002528/10.02, allocations: 385.6 kB / 4.041 GB, free: 8.016 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/10.02, allocations: 0.7952 MB / 4.042 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002214/10.02, allocations: 29.7 kB / 4.042 GB, free: 7.453 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008741/10.02, allocations: 0.6771 MB / 4.042 GB, free: 7.047 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004291/10.02, allocations: 321.7 kB / 4.043 GB, free: 6.793 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/10.02, allocations: 4 kB / 4.043 GB, free: 6.789 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002298/10.02, allocations: 356.8 kB / 4.043 GB, free: 6.473 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/10.02, allocations: 0.6 MB / 4.044 GB, free: 6.16 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/10.03, allocations: 0.8963 MB / 4.044 GB, free: 5.41 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004143/10.03, allocations: 1.181 MB / 4.046 GB, free: 4.508 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/10.03, allocations: 11.89 kB / 4.046 GB, free: 4.496 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.006157/10.04, allocations: 2.214 MB / 4.048 GB, free: 2.68 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.5774/10.61, allocations: 2.736 MB / 4.05 GB, free: 101 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/10.61, allocations: 10.97 kB / 4.05 GB, free: 101 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008488/10.61, allocations: 123.7 kB / 4.051 GB, free: 101 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/10.62, allocations: 314.6 kB / 4.051 GB, free: 101 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/10.62, allocations: 1.267 MB / 4.052 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/10.62, allocations: 169.8 kB / 4.052 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/10.62, allocations: 65.45 kB / 4.052 GB, free: 100 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/10.62, allocations: 10.03 kB / 4.052 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00532/10.63, allocations: 1.963 MB / 4.054 GB, free: 99.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/10.63, allocations: 10.42 kB / 4.054 GB, free: 99.97 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002854/10.63, allocations: 126.2 kB / 4.054 GB, free: 99.95 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/10.63, allocations: 313.7 kB / 4.055 GB, free: 99.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007992/10.63, allocations: 1.26 MB / 4.056 GB, free: 98.92 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/10.63, allocations: 150.7 kB / 4.056 GB, free: 98.92 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/10.63, allocations: 59.36 kB / 4.056 GB, free: 98.92 MB / 0.5886 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,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete 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.0004716/10.63, allocations: 180.9 kB / 4.056 GB, free: 98.78 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003367/10.63, allocations: 1.48 MB / 4.058 GB, free: 98.73 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/10.63, allocations: 124.1 kB / 4.058 GB, free: 98.73 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005212/10.64, allocations: 3.805 MB / 4.062 GB, free: 98.47 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.1e-05/10.64, allocations: 47.22 kB / 4.062 GB, free: 98.47 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/10.64, allocations: 2.422 kB / 4.062 GB, free: 98.47 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004839/10.64, allocations: 3.017 MB / 4.065 GB, free: 98.1 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/10.65, allocations: 5.341 MB / 4.07 GB, free: 97.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/10.65, allocations: 2.156 kB / 4.07 GB, free: 97.71 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/10.66, allocations: 203.2 kB / 4.07 GB, free: 97.71 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005981/10.66, allocations: 174.2 kB / 4.07 GB, free: 97.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/10.66, allocations: 26.83 kB / 4.07 GB, free: 97.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/10.66, allocations: 1.344 MB / 4.071 GB, free: 96.65 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/10.66, allocations: 1 kB / 4.071 GB, free: 96.65 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00743/10.67, allocations: 3.69 MB / 4.075 GB, free: 96.18 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001471/10.67, allocations: 0.4957 MB / 4.076 GB, free: 95.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/10.67, allocations: 11.89 kB / 4.076 GB, free: 95.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/10.67, allocations: 98.84 kB / 4.076 GB, free: 95.98 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/10.67, allocations: 78.14 kB / 4.076 GB, free: 95.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/10.67, allocations: 39.72 kB / 4.076 GB, free: 95.98 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001773/10.67, allocations: 0.8519 MB / 4.077 GB, free: 95.87 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2e-07/10.67, allocations: 3.469 kB / 4.077 GB, free: 95.87 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01073/10.68, allocations: 2.151 MB / 4.079 GB, free: 95.87 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 26 ($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,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * 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.02259/10.7, allocations: 6.914 MB / 4.085 GB, free: 94.52 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008128/10.71, allocations: 2.827 MB / 4.088 GB, free: 94.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/10.71, allocations: 0 / 4.088 GB, free: 94.29 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002699/10.71, allocations: 1.207 MB / 4.089 GB, free: 94.22 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004188/10.72, allocations: 0.5009 MB / 4.09 GB, free: 94.22 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/10.73, allocations: 4.403 MB / 4.094 GB, free: 93.24 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001964/10.74, allocations: 1.636 MB / 4.096 GB, free: 92.5 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.004352/10.74, allocations: 1.785 MB / 4.097 GB, free: 92.49 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001299/10.74, allocations: 0.7368 MB / 4.098 GB, free: 92.48 MB / 0.5886 GB Notification: Performance of SimCode: time 1.953e-06/10.74, allocations: 0 / 4.098 GB, free: 92.48 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1615/10.9, allocations: 73.15 MB / 4.17 GB, free: 89.19 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/10.9, allocations: 173.6 kB / 4.17 GB, free: 89 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.154/16.06, allocations: 0 / 4.17 GB, free: 89 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat