Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001957/0.001957, allocations: 176.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.663/1.663, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 100 kB / 292.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.5017/0.5017, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004033, allocations: 8 kB / 460 MB, free: 1.387 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5635/0.564, allocations: 61.9 MB / 0.5096 GB, free: 38.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.737/7.301, allocations: 2.777 GB / 3.287 GB, free: 77.85 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/7.301, allocations: 93.52 kB / 3.287 GB, free: 77.77 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.336/9.638, allocations: 0.6464 GB / 3.933 GB, free: 35.69 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.385e-06/9.638, allocations: 0 / 3.933 GB, free: 35.69 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001732/9.638, allocations: 48.97 kB / 3.933 GB, free: 35.68 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01108/9.649, allocations: 2.568 MB / 3.936 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/9.649, allocations: 10.69 kB / 3.936 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008138/9.65, allocations: 186.4 kB / 3.936 GB, free: 34.13 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00843/9.658, allocations: 0.9504 MB / 3.937 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002793/9.661, allocations: 1.003 MB / 3.938 GB, free: 33.41 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/9.661, allocations: 108.2 kB / 3.938 GB, free: 33.36 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004157/9.662, allocations: 113.8 kB / 3.938 GB, free: 33.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006277/9.668, allocations: 2.283 MB / 3.941 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.841e-05/9.668, allocations: 7.906 kB / 3.941 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/9.669, allocations: 55.66 kB / 3.941 GB, free: 32.32 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/9.669, allocations: 31.03 kB / 3.941 GB, free: 32.32 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005863/9.674, allocations: 2.149 MB / 3.943 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01334/9.688, allocations: 10.35 MB / 3.953 GB, free: 23.67 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004668/9.693, allocations: 1.658 MB / 3.954 GB, free: 23.29 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.041/9.734, allocations: 23.93 MB / 3.978 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.522e-05/9.734, allocations: 47.22 kB / 3.978 GB, free: 1.004 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=80): time 3.827e-06/9.734, allocations: 0 / 3.978 GB, free: 1.004 MB / 0.5417 GB Notification: Performance of matching and sorting (n=80): time 0.01105/9.745, allocations: 2.728 MB / 3.981 GB, free: 14.27 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002232/9.745, allocations: 277.6 kB / 3.981 GB, free: 13.93 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002694/9.748, allocations: 1.026 MB / 3.982 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002233/9.748, allocations: 41.7 kB / 3.982 GB, free: 12.86 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006184/9.749, allocations: 0.6176 MB / 3.982 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003874/9.749, allocations: 274.3 kB / 3.983 GB, free: 11.97 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.073e-05/9.749, allocations: 28 kB / 3.983 GB, free: 11.94 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001541/9.749, allocations: 345.9 kB / 3.983 GB, free: 11.6 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/9.751, allocations: 498.3 kB / 3.984 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/9.752, allocations: 0.9177 MB / 3.984 GB, free: 10 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/9.754, allocations: 0.5685 MB / 3.985 GB, free: 9.441 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/9.754, allocations: 4 kB / 3.985 GB, free: 9.438 MB / 0.5573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003735/9.758, allocations: 1.534 MB / 3.986 GB, free: 7.898 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001988/9.76, allocations: 4.915 MB / 3.991 GB, free: 2.645 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/9.76, allocations: 12 kB / 3.991 GB, free: 2.633 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.001e-05/9.76, allocations: 27.88 kB / 3.991 GB, free: 2.605 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/9.761, allocations: 363.5 kB / 3.992 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.793e-05/9.761, allocations: 27.81 kB / 3.992 GB, free: 2.223 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/9.763, allocations: 270.2 kB / 3.992 GB, free: 1.957 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001681/9.763, allocations: 68.06 kB / 3.992 GB, free: 1.891 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/9.763, allocations: 4 kB / 3.992 GB, free: 1.887 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003299/9.767, allocations: 1.379 MB / 3.993 GB, free: 0.5117 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/9.767, allocations: 12 kB / 3.993 GB, free: 0.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.911e-05/9.767, allocations: 20 kB / 3.993 GB, free: 492 kB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/9.768, allocations: 355.8 kB / 3.994 GB, free: 136 kB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.332e-05/9.768, allocations: 27.92 kB / 3.994 GB, free: 108 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3569/10.12, allocations: 231.3 kB / 3.994 GB, free: 58.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003283/10.13, allocations: 69.17 kB / 3.994 GB, free: 58.77 MB / 0.5573 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 () * Number of clocked 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.001102/10.13, allocations: 389.3 kB / 3.994 GB, free: 58.58 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004566/10.13, allocations: 142.1 kB / 3.995 GB, free: 58.58 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007699/10.13, allocations: 6.644 MB / 4.001 GB, free: 57.97 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.459e-05/10.13, allocations: 87.02 kB / 4.001 GB, free: 57.97 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/10.13, allocations: 0 / 4.001 GB, free: 57.97 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/10.13, allocations: 10.47 kB / 4.001 GB, free: 57.97 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004287/10.14, allocations: 3.256 MB / 4.004 GB, free: 57.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/10.14, allocations: 0 / 4.004 GB, free: 57.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000921/10.14, allocations: 275.6 kB / 4.005 GB, free: 57.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/10.14, allocations: 8.688 kB / 4.005 GB, free: 57.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/10.14, allocations: 22.77 kB / 4.005 GB, free: 57.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.702e-06/10.14, allocations: 5.312 kB / 4.005 GB, free: 57.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/10.14, allocations: 0 / 4.005 GB, free: 57.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004002/10.14, allocations: 2.99 MB / 4.008 GB, free: 57.14 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/10.15, allocations: 0.8934 MB / 4.008 GB, free: 56.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/10.15, allocations: 28.44 kB / 4.008 GB, free: 56.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/10.15, allocations: 132 kB / 4.009 GB, free: 56.74 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/10.15, allocations: 102.8 kB / 4.009 GB, free: 56.74 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.29e-05/10.15, allocations: 45.17 kB / 4.009 GB, free: 56.74 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002079/10.15, allocations: 1.613 MB / 4.01 GB, free: 56.59 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.6e-07/10.15, allocations: 0 / 4.01 GB, free: 56.59 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007969/10.16, allocations: 1.834 MB / 4.012 GB, free: 56.51 MB / 0.5573 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 () * Number of clocked 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.01232/10.17, allocations: 5.406 MB / 4.017 GB, free: 55.43 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004925/10.17, allocations: 2.592 MB / 4.02 GB, free: 55.39 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/10.17, allocations: 6.219 kB / 4.02 GB, free: 55.39 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001732/10.18, allocations: 1.465 MB / 4.021 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005014/10.18, allocations: 0.7873 MB / 4.022 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01711/10.2, allocations: 16.57 MB / 4.038 GB, free: 43.13 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/10.2, allocations: 1.861 MB / 4.04 GB, free: 42.39 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003409/10.2, allocations: 2.115 MB / 4.042 GB, free: 42.37 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/10.2, allocations: 1.102 MB / 4.043 GB, free: 42.36 MB / 0.5573 GB Notification: Performance of SimCode: time 1.473e-06/10.2, allocations: 1.906 kB / 4.043 GB, free: 42.36 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1568/10.36, allocations: 88.5 MB / 4.13 GB, free: 38.31 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002133/10.36, allocations: 244 kB / 4.13 GB, free: 38.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.251/16.61, allocations: 2.297 kB / 4.13 GB, free: 38.07 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat