Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_3_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.001497/0.001496, allocations: 177.6 kB / 8.004 MB, free: 1.07 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.908/1.908, allocations: 205.3 MB / 213.7 MB, free: 1.738 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.0008505/0.0008505, allocations: 82.28 kB / 261.7 MB, free: 1.684 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.2573/0.2573, allocations: 43.48 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.938e-05, allocations: 0 / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1678, allocations: 58.86 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.8/7.968, allocations: 2.771 GB / 3.237 GB, free: 94.68 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/7.969, allocations: 86.61 kB / 3.238 GB, free: 94.64 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.329/10.3, allocations: 0.6309 GB / 3.868 GB, free: 37.31 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.763e-06/10.3, allocations: 0 / 3.868 GB, free: 37.31 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000105/10.3, allocations: 45.34 kB / 3.868 GB, free: 37.3 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.01001/10.31, allocations: 2.435 MB / 3.871 GB, free: 35.96 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/10.31, allocations: 15.44 kB / 3.871 GB, free: 35.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008418/10.32, allocations: 0.9563 MB / 3.872 GB, free: 35.81 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/10.32, allocations: 0.9944 MB / 3.873 GB, free: 35.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/10.32, allocations: 52.06 kB / 3.873 GB, free: 35.24 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/10.32, allocations: 68.09 kB / 3.873 GB, free: 35.24 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002155/10.32, allocations: 1.216 MB / 3.874 GB, free: 34.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/10.32, allocations: 1.433 MB / 3.875 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/10.32, allocations: 3.938 kB / 3.875 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/10.32, allocations: 7.812 kB / 3.875 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/10.32, allocations: 32.28 kB / 3.876 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5852/10.91, allocations: 70.85 MB / 3.945 GB, free: 46.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/10.91, allocations: 0.774 MB / 3.945 GB, free: 46.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006264/10.91, allocations: 373.2 kB / 3.946 GB, free: 46.89 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03084/10.94, allocations: 16.41 MB / 3.962 GB, free: 36.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.66e-05/10.94, allocations: 50.28 kB / 3.962 GB, free: 36.81 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=72): time 3.808e-06/10.94, allocations: 1.203 kB / 3.962 GB, free: 36.81 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.007256/10.95, allocations: 1.901 MB / 3.964 GB, free: 36.75 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/10.95, allocations: 270.4 kB / 3.964 GB, free: 36.44 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/10.95, allocations: 0.7243 MB / 3.965 GB, free: 36.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001981/10.95, allocations: 25.7 kB / 3.965 GB, free: 36.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005117/10.95, allocations: 0.6741 MB / 3.965 GB, free: 35.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002995/10.95, allocations: 234.7 kB / 3.966 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.911e-05/10.95, allocations: 0 / 3.966 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001031/10.95, allocations: 350.9 kB / 3.966 GB, free: 35.56 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005839/10.95, allocations: 328.4 kB / 3.966 GB, free: 35.56 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008823/10.95, allocations: 0.7491 MB / 3.967 GB, free: 35.05 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003368/10.96, allocations: 0.7442 MB / 3.968 GB, free: 35.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.351e-05/10.96, allocations: 7.469 kB / 3.968 GB, free: 35.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.004706/10.96, allocations: 1.461 MB / 3.969 GB, free: 34.94 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001251/10.96, allocations: 4.877 MB / 3.974 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.365e-05/10.96, allocations: 16.56 kB / 3.974 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.041e-05/10.96, allocations: 19.62 kB / 3.974 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/10.96, allocations: 359.9 kB / 3.974 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.245e-05/10.96, allocations: 29.52 kB / 3.974 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/10.97, allocations: 235.2 kB / 3.975 GB, free: 29.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001733/10.97, allocations: 72.72 kB / 3.975 GB, free: 29.83 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/10.97, allocations: 3.719 kB / 3.975 GB, free: 29.83 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003519/10.97, allocations: 1.181 MB / 3.976 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.362e-05/10.97, allocations: 14.97 kB / 3.976 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.742e-05/10.97, allocations: 18.31 kB / 3.976 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/10.97, allocations: 354.7 kB / 3.976 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.25e-05/10.97, allocations: 28.56 kB / 3.976 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/10.97, allocations: 174.7 kB / 3.976 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/10.97, allocations: 71.42 kB / 3.976 GB, free: 29.79 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.0004232/10.97, allocations: 156 kB / 3.977 GB, free: 29.67 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003541/10.98, allocations: 1.027 MB / 3.978 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000412/10.98, allocations: 111.9 kB / 3.978 GB, free: 29.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005891/10.98, allocations: 4.387 MB / 3.982 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.174e-05/10.98, allocations: 30.66 kB / 3.982 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/10.98, allocations: 2.25 kB / 3.982 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/10.98, allocations: 8.078 kB / 3.982 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004194/10.99, allocations: 2.365 MB / 3.984 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/10.99, allocations: 0 / 3.984 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009218/10.99, allocations: 261.6 kB / 3.985 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.707e-05/10.99, allocations: 3.312 kB / 3.985 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-05/10.99, allocations: 9.516 kB / 3.985 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.692e-06/10.99, allocations: 3.344 kB / 3.985 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/10.99, allocations: 5.172 kB / 3.985 GB, free: 28.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003349/10.99, allocations: 1.66 MB / 3.986 GB, free: 28.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/10.99, allocations: 0.9643 MB / 3.987 GB, free: 27.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000612/10.99, allocations: 3.938 kB / 3.987 GB, free: 27.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/11, allocations: 101 kB / 3.987 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/11, allocations: 117.2 kB / 3.987 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.733e-05/11, allocations: 29.77 kB / 3.987 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002761/11, allocations: 1.778 MB / 3.989 GB, free: 27.61 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.81e-07/11, allocations: 1.031 kB / 3.989 GB, free: 27.61 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008865/11.01, allocations: 1.862 MB / 3.991 GB, free: 27.47 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: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.region,$cse37.phase,$cse37.region,$cse46.phase,$cse46.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 (88): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01343/11.02, allocations: 4.254 MB / 3.995 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003239/11.03, allocations: 1.588 MB / 3.997 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/11.03, allocations: 8.219 kB / 3.997 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008699/11.03, allocations: 0.6088 MB / 3.997 GB, free: 26.33 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0037/11.03, allocations: 0.5534 MB / 3.998 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/11.04, allocations: 3.619 MB / 4.001 GB, free: 25.35 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001586/11.04, allocations: 1.68 MB / 4.003 GB, free: 24.58 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00448/11.05, allocations: 2.223 MB / 4.005 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/11.05, allocations: 0.9667 MB / 4.006 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.293e-06/11.05, allocations: 0 / 4.006 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1456/11.2, allocations: 72.21 MB / 4.077 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/11.2, allocations: 182.1 kB / 4.077 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.287/16.48, allocations: 0 / 4.077 GB, free: 10.45 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat