Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 100.8 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.1968/0.1968, allocations: 45.14 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.03e-05, allocations: 3.984 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1355, allocations: 63.24 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.972/8.108, allocations: 2.83 GB / 3.334 GB, free: 84.88 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/8.108, allocations: 76.72 kB / 3.334 GB, free: 84.81 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.117/10.23, allocations: 466.5 MB / 3.79 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.755e-06/10.23, allocations: 3.938 kB / 3.79 GB, free: 22.85 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002107/10.23, allocations: 20 kB / 3.79 GB, free: 22.83 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01241/10.24, allocations: 2.15 MB / 3.792 GB, free: 20.64 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.143e-05/10.24, allocations: 15.97 kB / 3.792 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003938/10.24, allocations: 374.4 kB / 3.792 GB, free: 20.25 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00418/10.25, allocations: 0.8793 MB / 3.793 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/10.25, allocations: 36.34 kB / 3.793 GB, free: 19.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005019/10.25, allocations: 47.86 kB / 3.793 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00236/10.25, allocations: 0.9293 MB / 3.794 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/10.25, allocations: 1.081 MB / 3.795 GB, free: 17.17 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/10.25, allocations: 4 kB / 3.795 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/10.25, allocations: 4 kB / 3.795 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/10.25, allocations: 61.91 kB / 3.795 GB, free: 17.1 MB / 0.5261 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.6739/10.93, allocations: 111.5 MB / 3.904 GB, free: 28.95 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/10.93, allocations: 480.3 kB / 3.904 GB, free: 28.92 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005691/10.93, allocations: 272.5 kB / 3.905 GB, free: 28.91 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0363/10.96, allocations: 18.62 MB / 3.923 GB, free: 32.14 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/10.96, allocations: 44.36 kB / 3.923 GB, free: 32.09 MB / 0.573 GB Notification: Performance of pre-optimization done (n=42): time 2.855e-06/10.96, allocations: 3.391 kB / 3.923 GB, free: 32.09 MB / 0.573 GB Notification: Performance of matching and sorting (n=46): time 0.007952/10.97, allocations: 2.28 MB / 3.925 GB, free: 31.71 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.988e-05/10.97, allocations: 136 kB / 3.925 GB, free: 31.55 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/10.97, allocations: 0.5635 MB / 3.926 GB, free: 31.43 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.648e-05/10.97, allocations: 30.11 kB / 3.926 GB, free: 31.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/10.97, allocations: 469.7 kB / 3.926 GB, free: 31.19 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000159/10.97, allocations: 159.8 kB / 3.926 GB, free: 31.11 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-05/10.97, allocations: 0 / 3.926 GB, free: 31.11 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001822/10.97, allocations: 380.8 kB / 3.927 GB, free: 30.8 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004737/10.98, allocations: 324.7 kB / 3.927 GB, free: 30.8 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005604/10.98, allocations: 0.5217 MB / 3.928 GB, free: 30.56 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002219/10.98, allocations: 0.6571 MB / 3.928 GB, free: 30.55 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/10.98, allocations: 0 / 3.928 GB, free: 30.55 MB / 0.573 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003374/10.98, allocations: 1.39 MB / 3.93 GB, free: 30.45 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008402/10.98, allocations: 2.269 MB / 3.932 GB, free: 28.08 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/10.98, allocations: 7.531 kB / 3.932 GB, free: 28.08 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/10.98, allocations: 474.8 kB / 3.932 GB, free: 28.06 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005645/10.98, allocations: 153.7 kB / 3.932 GB, free: 28.06 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/10.99, allocations: 1.371 MB / 3.934 GB, free: 27.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/10.99, allocations: 118.4 kB / 3.934 GB, free: 27.51 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-05/10.99, allocations: 37.12 kB / 3.934 GB, free: 27.51 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/10.99, allocations: 3.938 kB / 3.934 GB, free: 27.51 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003116/10.99, allocations: 1.193 MB / 3.935 GB, free: 27.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/10.99, allocations: 14.7 kB / 3.935 GB, free: 27.47 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/10.99, allocations: 386.5 kB / 3.935 GB, free: 27.46 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005939/10.99, allocations: 165.6 kB / 3.936 GB, free: 27.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/10.99, allocations: 1.067 MB / 3.937 GB, free: 26.93 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009572/10.99, allocations: 106.8 kB / 3.937 GB, free: 26.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.731e-05/10.99, allocations: 42.33 kB / 3.937 GB, free: 26.91 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0002681/11, allocations: 130.7 kB / 3.937 GB, free: 26.8 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00182/11, allocations: 0.7337 MB / 3.938 GB, free: 26.71 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/11, allocations: 70.28 kB / 3.938 GB, free: 26.68 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002669/11, allocations: 1.856 MB / 3.939 GB, free: 26.54 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.599e-05/11, allocations: 31.34 kB / 3.94 GB, free: 26.53 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/11, allocations: 1.312 kB / 3.94 GB, free: 26.53 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002137/11, allocations: 1.782 MB / 3.941 GB, free: 26.09 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004218/11.01, allocations: 2.849 MB / 3.944 GB, free: 25.72 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/11.01, allocations: 0 / 3.944 GB, free: 25.72 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004877/11.01, allocations: 119.7 kB / 3.944 GB, free: 25.72 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002523/11.01, allocations: 91.08 kB / 3.944 GB, free: 25.71 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/11.01, allocations: 10.06 kB / 3.944 GB, free: 25.71 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004493/11.01, allocations: 0.6778 MB / 3.945 GB, free: 25.18 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/11.01, allocations: 3.844 kB / 3.945 GB, free: 25.18 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/11.01, allocations: 1.974 MB / 3.947 GB, free: 24.85 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005569/11.01, allocations: 256.6 kB / 3.947 GB, free: 24.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/11.01, allocations: 7.375 kB / 3.947 GB, free: 24.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000729/11.01, allocations: 66.8 kB / 3.947 GB, free: 24.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/11.01, allocations: 43.16 kB / 3.947 GB, free: 24.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/11.01, allocations: 22.34 kB / 3.947 GB, free: 24.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006498/11.01, allocations: 425.9 kB / 3.948 GB, free: 24.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.41e-07/11.01, allocations: 0 / 3.948 GB, free: 24.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007829/11.02, allocations: 1.653 MB / 3.949 GB, free: 24.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01442/11.03, allocations: 4.77 MB / 3.954 GB, free: 23.35 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002601/11.04, allocations: 1.399 MB / 3.955 GB, free: 23.33 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/11.04, allocations: 8.062 kB / 3.955 GB, free: 23.33 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0008952/11.04, allocations: 0.5882 MB / 3.956 GB, free: 23.33 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00193/11.04, allocations: 315 kB / 3.956 GB, free: 23.31 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008246/11.05, allocations: 2.469 MB / 3.959 GB, free: 22.76 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008998/11.05, allocations: 1.18 MB / 3.96 GB, free: 22.03 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001938/11.05, allocations: 1.079 MB / 3.961 GB, free: 22 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005097/11.05, allocations: 392.2 kB / 3.961 GB, free: 21.99 MB / 0.573 GB Notification: Performance of SimCode: time 2.114e-06/11.05, allocations: 0 / 3.961 GB, free: 21.99 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/11.15, allocations: 53.96 MB / 4.014 GB, free: 9.898 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/11.15, allocations: 191.2 kB / 4.014 GB, free: 9.699 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.85/15, allocations: 0 / 4.014 GB, free: 9.699 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat