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.00226/0.002259, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.061/2.061, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001156/0.001156, allocations: 96.41 kB / 270.9 MB, free: 8.363 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.519/0.519, allocations: 43.56 MB / 362.7 MB, free: 51.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006328/0.0006329, allocations: 16 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1273, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.869/8.996, allocations: 2.772 GB / 3.251 GB, free: 35.51 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004132/8.997, allocations: 89.14 kB / 3.251 GB, free: 35.46 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.934/12.93, allocations: 0.6392 GB / 3.89 GB, free: 40.29 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.579e-06/12.93, allocations: 0 / 3.89 GB, free: 40.29 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001722/12.93, allocations: 39.97 kB / 3.89 GB, free: 40.29 MB / 0.5261 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.01316/12.94, allocations: 2.582 MB / 3.893 GB, free: 39.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/12.94, allocations: 10.06 kB / 3.893 GB, free: 39.3 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008325/12.95, allocations: 180.6 kB / 3.893 GB, free: 39.26 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01191/12.96, allocations: 0.9605 MB / 3.894 GB, free: 39.18 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/12.96, allocations: 0.9976 MB / 3.895 GB, free: 38.85 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/12.96, allocations: 108.6 kB / 3.895 GB, free: 38.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003361/12.96, allocations: 112 kB / 3.895 GB, free: 38.85 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009661/12.97, allocations: 2.286 MB / 3.897 GB, free: 38.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.407e-05/12.97, allocations: 9.562 kB / 3.897 GB, free: 38.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002971/12.97, allocations: 57.28 kB / 3.897 GB, free: 38.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.394e-05/12.97, allocations: 35.8 kB / 3.897 GB, free: 38.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/12.98, allocations: 2.155 MB / 3.9 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02042/13, allocations: 10.33 MB / 3.91 GB, free: 31.43 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008513/13.01, allocations: 1.654 MB / 3.911 GB, free: 31.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07669/13.09, allocations: 23.93 MB / 3.935 GB, free: 32.83 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.336e-05/13.09, allocations: 49.67 kB / 3.935 GB, free: 32.79 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=80): time 3.777e-06/13.09, allocations: 0 / 3.935 GB, free: 32.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=80): time 0.01607/13.1, allocations: 2.727 MB / 3.937 GB, free: 32.67 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/13.1, allocations: 272 kB / 3.938 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/13.11, allocations: 1.02 MB / 3.939 GB, free: 32.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002815/13.11, allocations: 43.73 kB / 3.939 GB, free: 32.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005066/13.11, allocations: 0.5964 MB / 3.939 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000306/13.11, allocations: 273.9 kB / 3.939 GB, free: 31.66 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/13.11, allocations: 26.59 kB / 3.939 GB, free: 31.66 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001702/13.11, allocations: 356 kB / 3.94 GB, free: 31.35 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002166/13.11, allocations: 498.6 kB / 3.94 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0043/13.11, allocations: 0.9168 MB / 3.941 GB, free: 30.83 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004113/13.12, allocations: 0.5828 MB / 3.942 GB, free: 30.82 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.139e-05/13.12, allocations: 9.656 kB / 3.942 GB, free: 30.82 MB / 0.5417 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.01316/13.13, allocations: 1.447 MB / 3.943 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00328/13.13, allocations: 4.882 MB / 3.948 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/13.14, allocations: 12.12 kB / 3.948 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001015/13.14, allocations: 21.03 kB / 3.948 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004649/13.14, allocations: 358.2 kB / 3.948 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003042/13.14, allocations: 28.39 kB / 3.948 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004006/13.14, allocations: 268.2 kB / 3.949 GB, free: 25.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003378/13.14, allocations: 73.33 kB / 3.949 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/13.14, allocations: 3.281 kB / 3.949 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01158/13.16, allocations: 1.368 MB / 3.95 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/13.16, allocations: 12.19 kB / 3.95 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/13.16, allocations: 20.78 kB / 3.95 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004687/13.16, allocations: 354.3 kB / 3.95 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.996e-05/13.16, allocations: 32.36 kB / 3.95 GB, free: 25.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003747/13.17, allocations: 200.4 kB / 3.951 GB, free: 25.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000582/13.17, allocations: 70.75 kB / 3.951 GB, free: 25.42 MB / 0.5417 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.00259/13.17, allocations: 390.9 kB / 3.951 GB, free: 25.22 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/13.17, allocations: 144.2 kB / 3.951 GB, free: 25.15 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01416/13.18, allocations: 6.647 MB / 3.958 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001257/13.18, allocations: 89.25 kB / 3.958 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/13.18, allocations: 0 / 3.958 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-05/13.18, allocations: 5.156 kB / 3.958 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006451/13.19, allocations: 3.257 MB / 3.961 GB, free: 23.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-05/13.19, allocations: 3.469 kB / 3.961 GB, free: 23.78 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002096/13.19, allocations: 280.2 kB / 3.961 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/13.19, allocations: 4.047 kB / 3.961 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/13.19, allocations: 26.2 kB / 3.961 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.758e-06/13.19, allocations: 2.5 kB / 3.961 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/13.19, allocations: 0 / 3.961 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00695/13.2, allocations: 2.986 MB / 3.964 GB, free: 23.28 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002271/13.2, allocations: 0.897 MB / 3.965 GB, free: 22.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007474/13.2, allocations: 26.98 kB / 3.965 GB, free: 22.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00244/13.21, allocations: 136.8 kB / 3.965 GB, free: 22.87 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004306/13.21, allocations: 104.8 kB / 3.965 GB, free: 22.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/13.21, allocations: 38.16 kB / 3.965 GB, free: 22.86 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003737/13.21, allocations: 1.614 MB / 3.967 GB, free: 22.72 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.392e-06/13.21, allocations: 3.438 kB / 3.967 GB, free: 22.72 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01015/13.22, allocations: 1.83 MB / 3.969 GB, free: 22.52 MB / 0.5417 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.01873/13.24, allocations: 5.405 MB / 3.974 GB, free: 21.16 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008582/13.25, allocations: 2.595 MB / 3.977 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/13.25, allocations: 0 / 3.977 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003205/13.25, allocations: 1.46 MB / 3.978 GB, free: 21.07 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007891/13.26, allocations: 0.7995 MB / 3.979 GB, free: 21.01 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/13.28, allocations: 16.63 MB / 3.995 GB, free: 24.48 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001701/13.28, allocations: 1.856 MB / 3.997 GB, free: 23.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001995/13.29, allocations: 1.108 MB / 3.998 GB, free: 23.69 MB / 0.5573 GB Notification: Performance of SimCode: time 1.252e-06/13.29, allocations: 3.375 kB / 3.998 GB, free: 23.69 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.135/17.42, allocations: 58.57 MB / 4.055 GB, free: 18.51 MB / 0.5573 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