Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",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.002732/0.002732, allocations: 181.7 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.204/2.204, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001128/0.001128, allocations: 90.7 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.2833/0.2833, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.581e-05/3.588e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1259, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.213/8.339, allocations: 2.772 GB / 3.245 GB, free: 70.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/8.34, allocations: 86.61 kB / 3.245 GB, free: 70.46 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.349/11.69, allocations: 0.6368 GB / 3.882 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.014e-06/11.69, allocations: 0 / 3.882 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002049/11.69, allocations: 39.12 kB / 3.882 GB, free: 23.87 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01196/11.7, allocations: 2.441 MB / 3.884 GB, free: 21.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/11.7, allocations: 8.031 kB / 3.884 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005949/11.7, allocations: 177.5 kB / 3.884 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01164/11.71, allocations: 0.9585 MB / 3.885 GB, free: 20.27 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003404/11.72, allocations: 0.9925 MB / 3.886 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/11.72, allocations: 106.3 kB / 3.886 GB, free: 19.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002531/11.72, allocations: 116 kB / 3.887 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007685/11.72, allocations: 2.267 MB / 3.889 GB, free: 16.61 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.985e-05/11.72, allocations: 7.844 kB / 3.889 GB, free: 16.61 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002392/11.73, allocations: 56 kB / 3.889 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/11.73, allocations: 28 kB / 3.889 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007215/11.73, allocations: 1.986 MB / 3.891 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/11.75, allocations: 10.34 MB / 3.901 GB, free: 3.531 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006285/11.76, allocations: 1.564 MB / 3.902 GB, free: 1.988 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009985/11.76, allocations: 415.1 kB / 3.903 GB, free: 1.582 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5166/12.27, allocations: 24.01 MB / 3.926 GB, free: 45.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.501e-05/12.27, allocations: 48.2 kB / 3.926 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=80): time 4.409e-06/12.27, allocations: 0 / 3.926 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=80): time 0.01083/12.29, allocations: 2.307 MB / 3.929 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/12.29, allocations: 275 kB / 3.929 GB, free: 45.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/12.29, allocations: 0.9752 MB / 3.93 GB, free: 44.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002574/12.29, allocations: 42.08 kB / 3.93 GB, free: 44.92 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006267/12.29, allocations: 0.5976 MB / 3.93 GB, free: 44.65 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003662/12.29, allocations: 281.6 kB / 3.931 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/12.29, allocations: 21.53 kB / 3.931 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001228/12.29, allocations: 356.6 kB / 3.931 GB, free: 44.21 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/12.29, allocations: 342.4 kB / 3.931 GB, free: 44.21 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/12.29, allocations: 0.7727 MB / 3.932 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/12.29, allocations: 433.8 kB / 3.932 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.441e-05/12.29, allocations: 6.281 kB / 3.932 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003535/12.3, allocations: 1.159 MB / 3.934 GB, free: 43.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001195/12.3, allocations: 4.876 MB / 3.938 GB, free: 38.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.263e-05/12.3, allocations: 13.62 kB / 3.938 GB, free: 38.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.584e-05/12.3, allocations: 26.17 kB / 3.938 GB, free: 38.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002775/12.3, allocations: 360.8 kB / 3.939 GB, free: 38.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.682e-05/12.3, allocations: 24.47 kB / 3.939 GB, free: 38.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003071/12.3, allocations: 272.5 kB / 3.939 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002249/12.3, allocations: 73.08 kB / 3.939 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/12.3, allocations: 5.531 kB / 3.939 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003212/12.31, allocations: 1.078 MB / 3.94 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.09e-05/12.31, allocations: 15.97 kB / 3.94 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.27e-05/12.31, allocations: 20.66 kB / 3.94 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/12.31, allocations: 348.5 kB / 3.941 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.156e-05/12.31, allocations: 30.97 kB / 3.941 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/12.31, allocations: 196.8 kB / 3.941 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002208/12.31, allocations: 69.42 kB / 3.941 GB, free: 38.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 143 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005918/12.31, allocations: 190.9 kB / 3.941 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005981/12.31, allocations: 144.9 kB / 3.941 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/12.33, allocations: 6.408 MB / 3.947 GB, free: 37.59 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001256/12.33, allocations: 83.67 kB / 3.947 GB, free: 37.59 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/12.33, allocations: 0 / 3.947 GB, free: 37.59 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.234e-05/12.33, allocations: 5.391 kB / 3.947 GB, free: 37.59 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006049/12.33, allocations: 3.266 MB / 3.951 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.298e-05/12.33, allocations: 5.344 kB / 3.951 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/12.33, allocations: 276.1 kB / 3.951 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.695e-05/12.33, allocations: 3.938 kB / 3.951 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.704e-05/12.33, allocations: 21.81 kB / 3.951 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.408e-06/12.33, allocations: 7 kB / 3.951 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/12.33, allocations: 3.844 kB / 3.951 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/12.34, allocations: 2.734 MB / 3.954 GB, free: 36.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00216/12.34, allocations: 0.9053 MB / 3.955 GB, free: 36.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000526/12.34, allocations: 15.56 kB / 3.955 GB, free: 36.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002101/12.34, allocations: 139.8 kB / 3.955 GB, free: 36.24 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/12.34, allocations: 97.83 kB / 3.955 GB, free: 36.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/12.34, allocations: 44.22 kB / 3.955 GB, free: 36.24 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003276/12.35, allocations: 1.561 MB / 3.956 GB, free: 36.08 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.02e-07/12.35, allocations: 0 / 3.956 GB, free: 36.08 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01005/12.36, allocations: 1.835 MB / 3.958 GB, free: 36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,$cse44.phase,$cse44.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse54.phase,$cse54.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01651/12.37, allocations: 5.159 MB / 3.963 GB, free: 34.89 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005258/12.38, allocations: 2.169 MB / 3.965 GB, free: 34.85 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/12.38, allocations: 3.219 kB / 3.965 GB, free: 34.85 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00225/12.38, allocations: 1.341 MB / 3.967 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007741/12.39, allocations: 0.7949 MB / 3.967 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/12.41, allocations: 4.896 MB / 3.972 GB, free: 33.73 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/12.41, allocations: 1.854 MB / 3.974 GB, free: 32.99 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001897/12.41, allocations: 1.113 MB / 3.975 GB, free: 32.99 MB / 0.5261 GB Notification: Performance of SimCode: time 2.625e-06/12.41, allocations: 0 / 3.975 GB, free: 32.99 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.993/16.4, allocations: 62.04 MB / 4.036 GB, free: 28.11 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat