Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001483/0.001488, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00117/0.001169, allocations: 94.62 kB / 267.5 MB, free: 14.04 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.3305/0.3305, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.295e-05/3.317e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.435/8.556, allocations: 2.824 GB / 3.297 GB, free: 20.03 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/8.556, allocations: 85.88 kB / 3.297 GB, free: 19.99 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.664/11.22, allocations: 466.1 MB / 3.752 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.024e-06/11.22, allocations: 0 / 3.752 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001068/11.22, allocations: 31.56 kB / 3.752 GB, free: 55.52 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.0109/11.23, allocations: 2.143 MB / 3.755 GB, free: 54.73 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/11.23, allocations: 13.25 kB / 3.755 GB, free: 54.73 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005434/11.23, allocations: 125 kB / 3.755 GB, free: 54.69 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004262/11.24, allocations: 376.1 kB / 3.755 GB, free: 54.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003421/11.24, allocations: 0.8762 MB / 3.756 GB, free: 54.39 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/11.24, allocations: 66.91 kB / 3.756 GB, free: 54.39 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003737/11.24, allocations: 80.78 kB / 3.756 GB, free: 54.39 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004658/11.24, allocations: 1.461 MB / 3.757 GB, free: 54.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.187e-05/11.24, allocations: 0 / 3.757 GB, free: 54.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/11.24, allocations: 40.5 kB / 3.758 GB, free: 54.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/11.24, allocations: 58.69 kB / 3.758 GB, free: 54.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004209/11.25, allocations: 1.249 MB / 3.759 GB, free: 54.09 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.01204/11.26, allocations: 6.566 MB / 3.765 GB, free: 49.95 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003206/11.26, allocations: 0.9317 MB / 3.766 GB, free: 49.88 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008442/11.27, allocations: 392.4 kB / 3.766 GB, free: 49.86 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1008/11.37, allocations: 32.11 MB / 3.798 GB, free: 30.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.618e-05/11.37, allocations: 39.69 kB / 3.798 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=57): time 3.987e-06/11.37, allocations: 2.688 kB / 3.798 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.009948/11.38, allocations: 2.81 MB / 3.801 GB, free: 29.77 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/11.38, allocations: 193.5 kB / 3.801 GB, free: 29.55 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/11.38, allocations: 0.6359 MB / 3.801 GB, free: 29.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001571/11.38, allocations: 43.14 kB / 3.801 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002803/11.38, allocations: 426.4 kB / 3.802 GB, free: 29.13 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/11.38, allocations: 211.3 kB / 3.802 GB, free: 29 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.337e-05/11.38, allocations: 12.75 kB / 3.802 GB, free: 29 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.153e-05/11.38, allocations: 340.6 kB / 3.802 GB, free: 28.69 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008398/11.38, allocations: 346.8 kB / 3.803 GB, free: 28.69 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009354/11.38, allocations: 0.5471 MB / 3.803 GB, free: 28.46 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009237/11.38, allocations: 416.4 kB / 3.804 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/11.38, allocations: 0 / 3.804 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00281/11.38, allocations: 1.16 MB / 3.805 GB, free: 28.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005231/11.38, allocations: 2.274 MB / 3.807 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/11.38, allocations: 3.719 kB / 3.807 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005166/11.39, allocations: 0.6486 MB / 3.808 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/11.39, allocations: 167.3 kB / 3.808 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/11.39, allocations: 1.259 MB / 3.809 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/11.39, allocations: 110.3 kB / 3.809 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/11.4, allocations: 37.48 kB / 3.809 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/11.4, allocations: 3.812 kB / 3.809 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003105/11.4, allocations: 1.069 MB / 3.81 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/11.4, allocations: 7.062 kB / 3.81 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002481/11.4, allocations: 385.9 kB / 3.811 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/11.4, allocations: 170.9 kB / 3.811 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/11.4, allocations: 1.057 MB / 3.812 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/11.4, allocations: 106.7 kB / 3.812 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/11.41, allocations: 35.78 kB / 3.812 GB, free: 24.91 MB / 0.5105 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,source.medium.phase,pipe.statesFM[2].phase,sink.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.000379/11.41, allocations: 156.3 kB / 3.812 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003582/11.41, allocations: 86.56 kB / 3.812 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005183/11.41, allocations: 3.232 MB / 3.815 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.854e-05/11.41, allocations: 35.36 kB / 3.815 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/11.41, allocations: 7.891 kB / 3.815 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00368/11.41, allocations: 2.688 MB / 3.818 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007696/11.42, allocations: 4.493 MB / 3.822 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/11.42, allocations: 3.953 kB / 3.822 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00131/11.42, allocations: 175.9 kB / 3.823 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005225/11.42, allocations: 85.03 kB / 3.823 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-05/11.42, allocations: 24.5 kB / 3.823 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004606/11.43, allocations: 0.6496 MB / 3.823 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/11.43, allocations: 0 / 3.823 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004572/11.43, allocations: 2.739 MB / 3.826 GB, free: 22.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/11.43, allocations: 463.6 kB / 3.826 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/11.43, allocations: 16.03 kB / 3.826 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/11.43, allocations: 100.2 kB / 3.827 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/11.43, allocations: 64.02 kB / 3.827 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.952e-05/11.43, allocations: 23.16 kB / 3.827 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001719/11.43, allocations: 0.7897 MB / 3.827 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.92e-07/11.43, allocations: 0 / 3.827 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009293/11.44, allocations: 1.739 MB / 3.829 GB, free: 21.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.01745/11.46, allocations: 5.292 MB / 3.834 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003973/11.47, allocations: 1.652 MB / 3.836 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/11.47, allocations: 0 / 3.836 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001712/11.47, allocations: 0.8439 MB / 3.837 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004338/11.47, allocations: 470.5 kB / 3.837 GB, free: 20.22 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/11.48, allocations: 3.217 MB / 3.84 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000922/11.48, allocations: 1.339 MB / 3.842 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/11.49, allocations: 0.5635 MB / 3.842 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of SimCode: time 1.693e-06/11.49, allocations: 0 / 3.842 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.354/15.84, allocations: 52.15 MB / 3.893 GB, free: 10.01 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat