Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",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.001834/0.001835, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.667/1.667, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008424/0.0008424, allocations: 90.36 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2379/0.2379, allocations: 43.49 MB / 353.2 MB, free: 268 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.108e-05/2.11e-05, allocations: 0 / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1445, allocations: 58.86 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.455/8.6, allocations: 2.824 GB / 3.29 GB, free: 45.69 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003288/8.6, allocations: 78.72 kB / 3.29 GB, free: 45.66 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.448/11.05, allocations: 461.5 MB / 3.74 GB, free: 60.77 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.036e-06/11.05, allocations: 0.9688 kB / 3.74 GB, free: 60.77 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001178/11.05, allocations: 25.66 kB / 3.74 GB, free: 60.77 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01246/11.06, allocations: 2.153 MB / 3.743 GB, free: 60.05 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/11.06, allocations: 9.375 kB / 3.743 GB, free: 60.05 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/11.06, allocations: 374.4 kB / 3.743 GB, free: 60 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002661/11.07, allocations: 0.8802 MB / 3.744 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.869e-05/11.07, allocations: 37.62 kB / 3.744 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001706/11.07, allocations: 44.28 kB / 3.744 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001944/11.07, allocations: 0.9256 MB / 3.745 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/11.07, allocations: 1.082 MB / 3.746 GB, free: 59.47 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/11.07, allocations: 9.047 kB / 3.746 GB, free: 59.47 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.213e-05/11.07, allocations: 2.719 kB / 3.746 GB, free: 59.47 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/11.07, allocations: 57.36 kB / 3.746 GB, free: 59.47 MB / 0.5105 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.2081/11.28, allocations: 101.3 MB / 3.845 GB, free: 28.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/11.28, allocations: 476 kB / 3.845 GB, free: 28.34 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005426/11.28, allocations: 274.3 kB / 3.846 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04086/11.32, allocations: 16.77 MB / 3.862 GB, free: 33.43 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.072e-05/11.32, allocations: 38.88 kB / 3.862 GB, free: 33.39 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 5.22e-06/11.32, allocations: 4.938 kB / 3.862 GB, free: 33.38 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.009504/11.33, allocations: 2.282 MB / 3.864 GB, free: 32.96 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/11.33, allocations: 132 kB / 3.864 GB, free: 32.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/11.33, allocations: 0.5594 MB / 3.865 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001213/11.33, allocations: 29.7 kB / 3.865 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004864/11.33, allocations: 473 kB / 3.865 GB, free: 32.44 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/11.33, allocations: 163.1 kB / 3.865 GB, free: 32.34 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.111e-05/11.33, allocations: 0 / 3.865 GB, free: 32.34 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003072/11.33, allocations: 382.9 kB / 3.866 GB, free: 32.02 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005983/11.34, allocations: 323.2 kB / 3.866 GB, free: 32.02 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006622/11.34, allocations: 0.526 MB / 3.867 GB, free: 31.78 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00413/11.34, allocations: 0.9429 MB / 3.868 GB, free: 31.76 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/11.34, allocations: 4.531 kB / 3.868 GB, free: 31.76 MB / 0.5573 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00598/11.35, allocations: 1.672 MB / 3.869 GB, free: 31.66 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002033/11.35, allocations: 2.282 MB / 3.871 GB, free: 29.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.559e-05/11.35, allocations: 6.375 kB / 3.871 GB, free: 29.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/11.35, allocations: 470.2 kB / 3.872 GB, free: 29.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007161/11.35, allocations: 161.9 kB / 3.872 GB, free: 29.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/11.35, allocations: 1.353 MB / 3.873 GB, free: 28.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/11.36, allocations: 118.1 kB / 3.873 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/11.36, allocations: 35.8 kB / 3.874 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/11.36, allocations: 5.875 kB / 3.874 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005211/11.36, allocations: 1.476 MB / 3.875 GB, free: 28.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/11.36, allocations: 10.09 kB / 3.875 GB, free: 28.69 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/11.36, allocations: 382.1 kB / 3.875 GB, free: 28.67 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006643/11.36, allocations: 172.8 kB / 3.875 GB, free: 28.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/11.36, allocations: 1.075 MB / 3.877 GB, free: 28.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/11.37, allocations: 101.2 kB / 3.877 GB, free: 28.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/11.37, allocations: 42.81 kB / 3.877 GB, free: 28.12 MB / 0.5573 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.0004327/11.37, allocations: 127.9 kB / 3.877 GB, free: 28.01 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002246/11.37, allocations: 0.7403 MB / 3.878 GB, free: 27.92 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/11.37, allocations: 70.72 kB / 3.878 GB, free: 27.88 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003343/11.37, allocations: 1.857 MB / 3.879 GB, free: 27.7 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.021e-05/11.37, allocations: 22.98 kB / 3.879 GB, free: 27.7 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/11.37, allocations: 0 / 3.879 GB, free: 27.7 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002518/11.37, allocations: 1.784 MB / 3.881 GB, free: 27.26 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005343/11.38, allocations: 2.844 MB / 3.884 GB, free: 26.89 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/11.38, allocations: 10.72 kB / 3.884 GB, free: 26.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/11.38, allocations: 118.3 kB / 3.884 GB, free: 26.88 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003197/11.38, allocations: 84.23 kB / 3.884 GB, free: 26.88 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.616e-05/11.38, allocations: 13.83 kB / 3.884 GB, free: 26.87 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007063/11.38, allocations: 0.6752 MB / 3.885 GB, free: 26.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/11.38, allocations: 3.844 kB / 3.885 GB, free: 26.34 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003416/11.39, allocations: 1.971 MB / 3.887 GB, free: 26 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008589/11.39, allocations: 254.2 kB / 3.887 GB, free: 25.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000379/11.39, allocations: 14.48 kB / 3.887 GB, free: 25.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009932/11.39, allocations: 72.17 kB / 3.887 GB, free: 25.83 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/11.39, allocations: 39 kB / 3.887 GB, free: 25.83 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.327e-05/11.39, allocations: 18.5 kB / 3.887 GB, free: 25.83 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0008912/11.39, allocations: 429.9 kB / 3.888 GB, free: 25.74 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/11.39, allocations: 0 / 3.888 GB, free: 25.74 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01027/11.4, allocations: 1.641 MB / 3.889 GB, free: 25.48 MB / 0.5573 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.01802/11.42, allocations: 4.745 MB / 3.894 GB, free: 23.98 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003705/11.42, allocations: 1.409 MB / 3.895 GB, free: 23.95 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/11.42, allocations: 0 / 3.895 GB, free: 23.95 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001168/11.42, allocations: 0.5815 MB / 3.896 GB, free: 23.95 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/11.42, allocations: 319.8 kB / 3.896 GB, free: 23.92 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/11.44, allocations: 2.472 MB / 3.898 GB, free: 23.13 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/11.44, allocations: 1.174 MB / 3.9 GB, free: 22.41 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002461/11.44, allocations: 1.08 MB / 3.901 GB, free: 22.38 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006921/11.44, allocations: 387.4 kB / 3.901 GB, free: 22.37 MB / 0.5573 GB Notification: Performance of SimCode: time 1.623e-06/11.44, allocations: 0 / 3.901 GB, free: 22.37 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5507/11.99, allocations: 53.92 MB / 3.954 GB, free: 106.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/11.99, allocations: 187.6 kB / 3.954 GB, free: 106.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.008/16, allocations: 0.7812 kB / 3.954 GB, free: 106.4 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat