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.001016/0.001016, 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.234/1.234, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009136/0.0009137, allocations: 85.92 kB / 292.1 MB, free: 5.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1893/0.1893, allocations: 45.16 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.133e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 63.24 MB / 0.5115 GB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.893/5.996, allocations: 2.831 GB / 3.342 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/5.997, allocations: 79.95 kB / 3.342 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.984/7.98, allocations: 0.5824 GB / 3.925 GB, free: 49.32 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.453e-06/7.98, allocations: 0 / 3.925 GB, free: 49.32 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001149/7.98, allocations: 43.72 kB / 3.925 GB, free: 49.31 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.008728/7.989, allocations: 2.865 MB / 3.928 GB, free: 47.68 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/7.989, allocations: 11.12 kB / 3.928 GB, free: 47.68 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002479/7.99, allocations: 193.5 kB / 3.928 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003341/7.993, allocations: 0.5391 MB / 3.928 GB, free: 47.44 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/7.996, allocations: 1.438 MB / 3.93 GB, free: 46.75 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.711e-05/7.996, allocations: 117.3 kB / 3.93 GB, free: 46.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/7.996, allocations: 126 kB / 3.93 GB, free: 46.66 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003712/8, allocations: 2.281 MB / 3.932 GB, free: 45.66 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/8, allocations: 3.844 kB / 3.932 GB, free: 45.66 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/8, allocations: 52.47 kB / 3.932 GB, free: 45.63 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/8, allocations: 103.4 kB / 3.932 GB, free: 45.61 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003252/8.003, allocations: 1.974 MB / 3.934 GB, free: 44.99 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.009891/8.013, allocations: 9.79 MB / 3.944 GB, free: 37.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002414/8.016, allocations: 1.346 MB / 3.945 GB, free: 36.27 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007037/8.017, allocations: 0.6344 MB / 3.946 GB, free: 35.7 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03946/8.056, allocations: 27.09 MB / 3.972 GB, free: 8.477 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00231/8.058, allocations: 1.055 MB / 3.973 GB, free: 7.652 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 3.878e-06/8.058, allocations: 3.75 kB / 3.973 GB, free: 7.652 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.00914/8.068, allocations: 4.473 MB / 3.978 GB, free: 3.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/8.068, allocations: 278 kB / 3.978 GB, free: 2.938 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/8.069, allocations: 1.024 MB / 3.979 GB, free: 1.902 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.671e-05/8.069, allocations: 41.7 kB / 3.979 GB, free: 1.855 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003556/8.069, allocations: 0.6438 MB / 3.979 GB, free: 1.207 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/8.069, allocations: 362.7 kB / 3.98 GB, free: 0.8555 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-05/8.069, allocations: 24 kB / 3.98 GB, free: 0.832 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.941e-05/8.07, allocations: 353.9 kB / 3.98 GB, free: 492 kB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008163/8.07, allocations: 0.6184 MB / 3.981 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/8.071, allocations: 0.9125 MB / 3.982 GB, free: 14.83 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/8.072, allocations: 0.7521 MB / 3.982 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/8.073, allocations: 4 kB / 3.982 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002841/8.075, allocations: 1.885 MB / 3.984 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008912/8.076, allocations: 2.763 MB / 3.987 GB, free: 9.211 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/8.076, allocations: 8 kB / 3.987 GB, free: 9.203 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004333/8.077, allocations: 133.6 kB / 3.987 GB, free: 9.066 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/8.078, allocations: 315.6 kB / 3.987 GB, free: 8.758 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007434/8.079, allocations: 1.253 MB / 3.989 GB, free: 7.453 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/8.08, allocations: 155.9 kB / 3.989 GB, free: 7.301 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/8.08, allocations: 67.97 kB / 3.989 GB, free: 7.234 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/8.08, allocations: 5.094 kB / 3.989 GB, free: 7.23 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002566/8.083, allocations: 1.701 MB / 3.99 GB, free: 5.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/8.083, allocations: 8.719 kB / 3.99 GB, free: 5.512 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003651/8.083, allocations: 137.6 kB / 3.991 GB, free: 5.371 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/8.084, allocations: 315.5 kB / 3.991 GB, free: 5.062 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007116/8.085, allocations: 1.249 MB / 3.992 GB, free: 3.762 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/8.086, allocations: 155.8 kB / 3.992 GB, free: 3.609 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/8.086, allocations: 71.97 kB / 3.992 GB, free: 3.539 MB / 0.5573 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 () * 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.0003133/8.087, allocations: 212.1 kB / 3.993 GB, free: 3.32 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/8.087, allocations: 138.3 kB / 3.993 GB, free: 3.184 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3263/8.413, allocations: 4.74 MB / 3.997 GB, free: 68.17 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.146e-05/8.413, allocations: 50.48 kB / 3.997 GB, free: 68.17 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/8.413, allocations: 4.719 kB / 3.997 GB, free: 68.17 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003846/8.417, allocations: 3.963 MB / 4.001 GB, free: 67.72 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007793/8.425, allocations: 6.765 MB / 4.008 GB, free: 67.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/8.425, allocations: 0 / 4.008 GB, free: 67.26 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009285/8.426, allocations: 254.8 kB / 4.008 GB, free: 67.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00058/8.426, allocations: 180.2 kB / 4.008 GB, free: 67.25 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.284e-05/8.427, allocations: 39.97 kB / 4.008 GB, free: 67.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005337/8.427, allocations: 1.287 MB / 4.01 GB, free: 66.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/8.427, allocations: 3.938 kB / 4.01 GB, free: 66.21 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005097/8.432, allocations: 4.225 MB / 4.014 GB, free: 65.92 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/8.433, allocations: 0.56 MB / 4.014 GB, free: 65.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/8.434, allocations: 30.8 kB / 4.014 GB, free: 65.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009879/8.435, allocations: 127.8 kB / 4.014 GB, free: 65.79 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/8.435, allocations: 94.38 kB / 4.014 GB, free: 65.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/8.435, allocations: 42.95 kB / 4.015 GB, free: 65.79 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001613/8.437, allocations: 0.9799 MB / 4.015 GB, free: 65.68 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/8.437, allocations: 0 / 4.015 GB, free: 65.68 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008428/8.445, allocations: 2.233 MB / 4.018 GB, free: 65.68 MB / 0.5573 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) * 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.01432/8.459, allocations: 7.063 MB / 4.025 GB, free: 64.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004325/8.464, allocations: 3.083 MB / 4.028 GB, free: 64.46 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/8.464, allocations: 3 kB / 4.028 GB, free: 64.46 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001476/8.465, allocations: 1.427 MB / 4.029 GB, free: 64.39 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/8.468, allocations: 0.6378 MB / 4.03 GB, free: 64.38 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008758/8.477, allocations: 4.938 MB / 4.034 GB, free: 63.54 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008607/8.478, allocations: 1.721 MB / 4.036 GB, free: 62.81 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002731/8.481, allocations: 1.728 MB / 4.038 GB, free: 62.79 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000876/8.481, allocations: 0.8309 MB / 4.039 GB, free: 62.79 MB / 0.5573 GB Notification: Performance of SimCode: time 8.91e-07/8.481, allocations: 3.656 kB / 4.039 GB, free: 62.79 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1151/8.597, allocations: 89.5 MB / 4.126 GB, free: 58.54 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/8.597, allocations: 213.5 kB / 4.126 GB, free: 58.32 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.452/13.05, allocations: 0 / 4.126 GB, free: 58.32 MB / 0.5573 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