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.002454/0.002454, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001146/0.001146, allocations: 98.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3014/0.3014, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.903e-05/1.89e-05, allocations: 4 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.4184, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.149/8.567, allocations: 2.771 GB / 3.237 GB, free: 14.78 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/8.567, allocations: 83.77 kB / 3.237 GB, free: 14.73 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.784/12.35, allocations: 0.6309 GB / 3.868 GB, free: 39.44 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.615e-06/12.35, allocations: 1.969 kB / 3.868 GB, free: 39.44 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001726/12.35, allocations: 40.67 kB / 3.868 GB, free: 39.43 MB / 0.5108 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.01201/12.36, allocations: 2.441 MB / 3.871 GB, free: 38.41 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/12.36, allocations: 9.438 kB / 3.871 GB, free: 38.41 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01739/12.38, allocations: 0.955 MB / 3.872 GB, free: 38.32 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004494/12.39, allocations: 0.9959 MB / 3.873 GB, free: 38.01 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/12.39, allocations: 58.38 kB / 3.873 GB, free: 38.01 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004687/12.39, allocations: 70.38 kB / 3.873 GB, free: 38.01 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00544/12.39, allocations: 1.209 MB / 3.874 GB, free: 38 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005614/12.4, allocations: 1.429 MB / 3.875 GB, free: 37.57 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.616e-05/12.4, allocations: 9.234 kB / 3.875 GB, free: 37.56 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003605/12.4, allocations: 6.312 kB / 3.875 GB, free: 37.56 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.791e-05/12.4, allocations: 30.06 kB / 3.875 GB, free: 37.56 MB / 0.5108 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2324/12.63, allocations: 70.87 MB / 3.945 GB, free: 25.25 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/12.63, allocations: 0.7708 MB / 3.945 GB, free: 25.21 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008887/12.63, allocations: 372.5 kB / 3.946 GB, free: 25.2 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05512/12.69, allocations: 16.4 MB / 3.962 GB, free: 30.6 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.174e-05/12.69, allocations: 44.48 kB / 3.962 GB, free: 30.56 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=72): time 4.468e-06/12.69, allocations: 1.875 kB / 3.962 GB, free: 30.56 MB / 0.5577 GB Notification: Performance of matching and sorting (n=72): time 0.01041/12.7, allocations: 1.906 MB / 3.964 GB, free: 30.44 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001766/12.7, allocations: 268.6 kB / 3.964 GB, free: 30.13 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/12.7, allocations: 0.7207 MB / 3.965 GB, free: 29.97 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.0002515/12.7, allocations: 32.98 kB / 3.965 GB, free: 29.94 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.000514/12.7, allocations: 0.6829 MB / 3.965 GB, free: 29.52 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.000278/12.7, allocations: 234.5 kB / 3.966 GB, free: 29.37 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/12.7, allocations: 4 kB / 3.966 GB, free: 29.37 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.0001751/12.7, allocations: 357 kB / 3.966 GB, free: 29.05 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008482/12.7, allocations: 330.3 kB / 3.966 GB, free: 29.05 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/12.7, allocations: 0.7418 MB / 3.967 GB, free: 28.53 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005037/12.71, allocations: 0.7498 MB / 3.968 GB, free: 28.51 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-05/12.71, allocations: 3.844 kB / 3.968 GB, free: 28.51 MB / 0.5577 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.00721/12.72, allocations: 1.403 MB / 3.969 GB, free: 28.42 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.002143/12.72, allocations: 4.887 MB / 3.974 GB, free: 23.3 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.392e-05/12.72, allocations: 12.12 kB / 3.974 GB, free: 23.3 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.386e-05/12.72, allocations: 21.12 kB / 3.974 GB, free: 23.3 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/12.72, allocations: 356.1 kB / 3.974 GB, free: 23.29 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.471e-05/12.72, allocations: 27.7 kB / 3.974 GB, free: 23.29 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003127/12.73, allocations: 227.7 kB / 3.974 GB, free: 23.22 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/12.73, allocations: 69.14 kB / 3.975 GB, free: 23.22 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/12.73, allocations: 7.062 kB / 3.975 GB, free: 23.22 MB / 0.5577 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005523/12.73, allocations: 1.179 MB / 3.976 GB, free: 23.19 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/12.73, allocations: 13.5 kB / 3.976 GB, free: 23.19 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/12.73, allocations: 18.84 kB / 3.976 GB, free: 23.19 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002318/12.73, allocations: 362.6 kB / 3.976 GB, free: 23.18 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.87e-05/12.73, allocations: 30.83 kB / 3.976 GB, free: 23.18 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/12.74, allocations: 182.6 kB / 3.976 GB, free: 23.13 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/12.74, allocations: 66.62 kB / 3.976 GB, free: 23.13 MB / 0.5577 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.0004975/12.74, allocations: 160 kB / 3.977 GB, free: 23 MB / 0.5577 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005418/12.74, allocations: 1.023 MB / 3.978 GB, free: 22.9 MB / 0.5577 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/12.74, allocations: 114.9 kB / 3.978 GB, free: 22.84 MB / 0.5577 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008158/12.75, allocations: 4.385 MB / 3.982 GB, free: 22.1 MB / 0.5577 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.344e-05/12.75, allocations: 32 kB / 3.982 GB, free: 22.1 MB / 0.5577 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/12.75, allocations: 3.469 kB / 3.982 GB, free: 22.1 MB / 0.5577 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/12.75, allocations: 7.656 kB / 3.982 GB, free: 22.09 MB / 0.5577 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003902/12.75, allocations: 2.354 MB / 3.984 GB, free: 21.71 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-06/12.75, allocations: 0 / 3.984 GB, free: 21.71 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001748/12.76, allocations: 264 kB / 3.984 GB, free: 21.71 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/12.76, allocations: 3.062 kB / 3.984 GB, free: 21.71 MB / 0.5577 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-05/12.76, allocations: 8.938 kB / 3.985 GB, free: 21.71 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/12.76, allocations: 2.625 kB / 3.985 GB, free: 21.71 MB / 0.5577 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/12.76, allocations: 0 / 3.985 GB, free: 21.71 MB / 0.5577 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004535/12.76, allocations: 1.663 MB / 3.986 GB, free: 21.34 MB / 0.5577 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00184/12.76, allocations: 0.9734 MB / 3.987 GB, free: 21 MB / 0.5577 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004963/12.76, allocations: 4.781 kB / 3.987 GB, free: 21 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002224/12.77, allocations: 104.3 kB / 3.987 GB, free: 20.98 MB / 0.5577 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003513/12.77, allocations: 113.3 kB / 3.987 GB, free: 20.98 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/12.77, allocations: 30.73 kB / 3.987 GB, free: 20.98 MB / 0.5577 GB Notification: Performance of sorting global known variables: time 0.003566/12.77, allocations: 1.781 MB / 3.989 GB, free: 20.84 MB / 0.5577 GB Notification: Performance of sort global known variables: time 6.21e-07/12.77, allocations: 0 / 3.989 GB, free: 20.84 MB / 0.5577 GB Notification: Performance of remove unused functions: time 0.01066/12.78, allocations: 1.862 MB / 3.991 GB, free: 20.58 MB / 0.5577 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.01495/12.8, allocations: 4.254 MB / 3.995 GB, free: 19.36 MB / 0.5577 GB Notification: Performance of simCode: created initialization part: time 0.003779/12.8, allocations: 1.558 MB / 3.997 GB, free: 19.33 MB / 0.5577 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/12.8, allocations: 0 / 3.997 GB, free: 19.33 MB / 0.5577 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/12.8, allocations: 0.6131 MB / 3.997 GB, free: 19.33 MB / 0.5577 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00492/12.81, allocations: 0.5535 MB / 3.998 GB, free: 19.28 MB / 0.5577 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/12.82, allocations: 3.652 MB / 4.001 GB, free: 18.18 MB / 0.5577 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/12.82, allocations: 1.672 MB / 4.003 GB, free: 17.41 MB / 0.5577 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/12.82, allocations: 0.9826 MB / 4.004 GB, free: 17.4 MB / 0.5577 GB Notification: Performance of SimCode: time 1.192e-06/12.82, allocations: 7.438 kB / 4.004 GB, free: 17.4 MB / 0.5577 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.282/17.1, allocations: 57.23 MB / 4.06 GB, free: 82.18 MB / 0.5577 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