Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.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.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",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.002342/0.002341, allocations: 181.4 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.091/2.091, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001166/0.001165, allocations: 78.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.2826/0.2826, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.444e-05/3.464e-05, allocations: 4 kB / 425.4 MB, free: 23.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 58.86 MB / 484.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.277/8.396, allocations: 2.772 GB / 3.245 GB, free: 64.55 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/8.396, allocations: 86.05 kB / 3.245 GB, free: 64.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.191/11.59, allocations: 0.5775 GB / 3.823 GB, free: 42.75 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.184e-06/11.59, allocations: 0 / 3.823 GB, free: 42.75 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001242/11.59, allocations: 37.73 kB / 3.823 GB, free: 42.74 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.0142/11.6, allocations: 2.552 MB / 3.825 GB, free: 41.59 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/11.6, allocations: 7.875 kB / 3.825 GB, free: 41.59 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005472/11.6, allocations: 171.1 kB / 3.825 GB, free: 41.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009863/11.61, allocations: 0.8687 MB / 3.826 GB, free: 41.37 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003422/11.62, allocations: 1.037 MB / 3.827 GB, free: 40.78 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/11.62, allocations: 95.33 kB / 3.827 GB, free: 40.73 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003316/11.62, allocations: 115.1 kB / 3.827 GB, free: 40.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00753/11.62, allocations: 2.177 MB / 3.83 GB, free: 39.75 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.193e-05/11.62, allocations: 7.875 kB / 3.83 GB, free: 39.75 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002655/11.62, allocations: 50.19 kB / 3.83 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.932e-05/11.62, allocations: 26.66 kB / 3.83 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007436/11.63, allocations: 1.976 MB / 3.832 GB, free: 39.12 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0186/11.65, allocations: 8.717 MB / 3.84 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007937/11.66, allocations: 1.903 MB / 3.842 GB, free: 32.16 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001469/11.66, allocations: 0.5256 MB / 3.842 GB, free: 31.94 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07354/11.73, allocations: 24.01 MB / 3.866 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/11.73, allocations: 47.47 kB / 3.866 GB, free: 16.49 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001497/11.73, allocations: 164.6 kB / 3.866 GB, free: 16.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 4.389e-06/11.73, allocations: 3.938 kB / 3.866 GB, free: 16.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108): time 0.0105/11.75, allocations: 2.46 MB / 3.869 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.697e-05/11.75, allocations: 195.4 kB / 3.869 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00165/11.75, allocations: 0.9043 MB / 3.87 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002312/11.75, allocations: 48.83 kB / 3.87 GB, free: 15.03 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004114/11.75, allocations: 0.5519 MB / 3.87 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003518/11.75, allocations: 359.8 kB / 3.871 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/11.75, allocations: 31.88 kB / 3.871 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001067/11.75, allocations: 359.9 kB / 3.871 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/11.75, allocations: 461.5 kB / 3.871 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/11.75, allocations: 0.771 MB / 3.872 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/11.75, allocations: 0.5312 MB / 3.873 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/11.75, allocations: 0 / 3.873 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00407/11.76, allocations: 1.498 MB / 3.874 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001136/11.76, allocations: 3.139 MB / 3.877 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/11.76, allocations: 13.39 kB / 3.877 GB, free: 25.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01208/11.77, allocations: 1.164 MB / 3.878 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003269/11.77, allocations: 422.4 kB / 3.879 GB, free: 24.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/11.78, allocations: 0.9204 MB / 3.88 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/11.78, allocations: 171.5 kB / 3.88 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/11.78, allocations: 81.61 kB / 3.88 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/11.78, allocations: 3.875 kB / 3.88 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003992/11.78, allocations: 1.34 MB / 3.881 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/11.78, allocations: 7.375 kB / 3.881 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004455/11.78, allocations: 84.81 kB / 3.881 GB, free: 23.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003491/11.79, allocations: 461.6 kB / 3.882 GB, free: 23.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003045/11.79, allocations: 1.754 MB / 3.883 GB, free: 22.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/11.79, allocations: 169.4 kB / 3.884 GB, free: 21.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003617/11.79, allocations: 83.25 kB / 3.884 GB, free: 21.95 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.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 (148): * Single equations (assignments): 147 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0005635/11.79, allocations: 182.7 kB / 3.884 GB, free: 21.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000486/11.79, allocations: 139.5 kB / 3.884 GB, free: 21.71 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/11.8, allocations: 6.689 MB / 3.89 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001122/11.81, allocations: 86.69 kB / 3.891 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/11.81, allocations: 0 / 3.891 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.465e-05/11.81, allocations: 6.703 kB / 3.891 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0169/11.82, allocations: 8.565 MB / 3.899 GB, free: 8.289 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.617e-05/11.82, allocations: 4 kB / 3.899 GB, free: 8.285 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002307/11.82, allocations: 304.4 kB / 3.899 GB, free: 8.043 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01179/11.84, allocations: 2.293 MB / 3.901 GB, free: 6.199 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003665/11.84, allocations: 39.7 kB / 3.901 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/11.84, allocations: 1.608 MB / 3.903 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/11.84, allocations: 4 kB / 3.903 GB, free: 4.621 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007826/11.85, allocations: 3.51 MB / 3.906 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002041/11.85, allocations: 0.7471 MB / 3.907 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005238/11.85, allocations: 32 kB / 3.907 GB, free: 0.6875 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002438/11.85, allocations: 153.1 kB / 3.907 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003747/11.85, allocations: 122.8 kB / 3.908 GB, free: 0.4961 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000172/11.85, allocations: 51.45 kB / 3.908 GB, free: 464 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005292/11.86, allocations: 1.322 MB / 3.909 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.684e-06/11.86, allocations: 0 / 3.909 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0105/11.87, allocations: 1.84 MB / 3.911 GB, free: 13.85 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 51 ($cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.region,$cse59.phase,$cse59.region,$cse63.phase,$cse63.region,$cse67.phase,$cse67.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.02138/11.89, allocations: 5.87 MB / 3.916 GB, free: 8.699 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008005/11.9, allocations: 2.726 MB / 3.919 GB, free: 6.141 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/11.9, allocations: 0 / 3.919 GB, free: 6.141 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003525/11.9, allocations: 1.544 MB / 3.921 GB, free: 4.676 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007792/11.91, allocations: 0.7376 MB / 3.921 GB, free: 4.133 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4251/12.34, allocations: 4.776 MB / 3.926 GB, free: 72.28 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001931/12.34, allocations: 1.772 MB / 3.928 GB, free: 71.54 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001961/12.34, allocations: 1.023 MB / 3.929 GB, free: 71.54 MB / 0.5417 GB Notification: Performance of SimCode: time 1.873e-06/12.34, allocations: 0 / 3.929 GB, free: 71.54 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.211/16.55, allocations: 68.34 MB / 3.995 GB, free: 67.75 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat