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.002341/0.00234, allocations: 185.8 kB / 16.41 MB, free: 5.727 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.4 MB / 222.5 MB, free: 9.117 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.00117/0.00117, allocations: 88.36 kB / 270.9 MB, free: 8.371 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.5268/0.5268, allocations: 43.56 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007168/0.0007169, allocations: 12 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1443, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.777/8.921, allocations: 2.772 GB / 3.251 GB, free: 36.16 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/8.922, allocations: 89.14 kB / 3.251 GB, free: 36.11 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.193/12.11, allocations: 0.5797 GB / 3.831 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.635e-06/12.11, allocations: 0 / 3.831 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001252/12.11, allocations: 38.31 kB / 3.831 GB, free: 28.5 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.01485/12.13, allocations: 2.703 MB / 3.834 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/12.13, allocations: 15.05 kB / 3.834 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000629/12.13, allocations: 176.8 kB / 3.834 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01004/12.14, allocations: 0.8684 MB / 3.835 GB, free: 26.83 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/12.14, allocations: 1.037 MB / 3.836 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/12.14, allocations: 104.1 kB / 3.836 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003294/12.14, allocations: 111.4 kB / 3.836 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008351/12.15, allocations: 2.218 MB / 3.838 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.569e-05/12.15, allocations: 7.812 kB / 3.838 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/12.15, allocations: 58.08 kB / 3.838 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.981e-05/12.15, allocations: 26.53 kB / 3.838 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009285/12.16, allocations: 2.185 MB / 3.84 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01788/12.18, allocations: 8.719 MB / 3.849 GB, free: 16.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/12.19, allocations: 2.146 MB / 3.851 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07832/12.27, allocations: 23.94 MB / 3.874 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.224e-05/12.27, allocations: 47.56 kB / 3.874 GB, free: 5.32 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001675/12.27, allocations: 168 kB / 3.874 GB, free: 5.156 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=108): time 5.069e-06/12.27, allocations: 0 / 3.874 GB, free: 5.156 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108): time 0.0296/12.3, allocations: 4.236 MB / 3.879 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/12.3, allocations: 196.9 kB / 3.879 GB, free: 0.6562 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4229/12.72, allocations: 0.9061 MB / 3.88 GB, free: 55.27 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004215/12.72, allocations: 48.77 kB / 3.88 GB, free: 55.23 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005281/12.72, allocations: 0.5506 MB / 3.88 GB, free: 55.08 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005057/12.73, allocations: 367.8 kB / 3.881 GB, free: 54.92 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/12.73, allocations: 27.72 kB / 3.881 GB, free: 54.92 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001484/12.73, allocations: 365.1 kB / 3.881 GB, free: 54.61 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/12.73, allocations: 0.6403 MB / 3.882 GB, free: 54.61 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003415/12.73, allocations: 0.9639 MB / 3.882 GB, free: 54.28 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003237/12.74, allocations: 0.7218 MB / 3.883 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/12.74, allocations: 2.219 kB / 3.883 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.008073/12.74, allocations: 1.891 MB / 3.885 GB, free: 54.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007231/12.74, allocations: 3.147 MB / 3.888 GB, free: 50.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.062e-05/12.74, allocations: 8.953 kB / 3.888 GB, free: 50.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01318/12.76, allocations: 1.171 MB / 3.889 GB, free: 50.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003358/12.76, allocations: 416.4 kB / 3.89 GB, free: 50.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/12.76, allocations: 0.9466 MB / 3.891 GB, free: 50.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003143/12.77, allocations: 168.6 kB / 3.891 GB, free: 50.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002289/12.77, allocations: 81.92 kB / 3.891 GB, free: 50.38 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/12.77, allocations: 2.625 kB / 3.891 GB, free: 50.38 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006881/12.77, allocations: 1.726 MB / 3.892 GB, free: 50.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/12.77, allocations: 7.688 kB / 3.893 GB, free: 50.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000452/12.77, allocations: 81.34 kB / 3.893 GB, free: 50.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003516/12.78, allocations: 457.5 kB / 3.893 GB, free: 50.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002778/12.78, allocations: 1.761 MB / 3.895 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00259/12.78, allocations: 173.6 kB / 3.895 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/12.78, allocations: 74.98 kB / 3.895 GB, free: 48.96 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 () * Number of clocked 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.001143/12.78, allocations: 373.8 kB / 3.895 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005026/12.78, allocations: 144.7 kB / 3.895 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01348/12.8, allocations: 7.017 MB / 3.902 GB, free: 48.13 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.159e-05/12.8, allocations: 85.47 kB / 3.902 GB, free: 48.13 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/12.8, allocations: 0 / 3.902 GB, free: 48.13 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.113e-05/12.8, allocations: 7.859 kB / 3.902 GB, free: 48.13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01592/12.81, allocations: 8.898 MB / 3.911 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/12.81, allocations: 1.406 kB / 3.911 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/12.82, allocations: 299.2 kB / 3.911 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01083/12.83, allocations: 2.107 MB / 3.913 GB, free: 47.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000313/12.83, allocations: 41.84 kB / 3.913 GB, free: 47.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00241/12.83, allocations: 1.621 MB / 3.915 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/12.83, allocations: 1.875 kB / 3.915 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008806/12.84, allocations: 3.843 MB / 3.919 GB, free: 46.42 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/12.84, allocations: 0.7546 MB / 3.92 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004336/12.84, allocations: 28.66 kB / 3.92 GB, free: 46.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002148/12.84, allocations: 150.3 kB / 3.92 GB, free: 46.06 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003191/12.84, allocations: 117.2 kB / 3.92 GB, free: 46.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/12.84, allocations: 54.59 kB / 3.92 GB, free: 46.06 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002385/12.85, allocations: 1.207 MB / 3.921 GB, free: 45.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.21e-07/12.85, allocations: 0 / 3.921 GB, free: 45.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0108/12.86, allocations: 1.84 MB / 3.923 GB, free: 45.82 MB / 0.5261 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 () * Number of clocked 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.02348/12.88, allocations: 6.192 MB / 3.929 GB, free: 44.57 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01226/12.89, allocations: 3.289 MB / 3.932 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.729e-06/12.89, allocations: 4.812 kB / 3.932 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004615/12.9, allocations: 1.707 MB / 3.934 GB, free: 44.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007476/12.91, allocations: 0.7374 MB / 3.935 GB, free: 44.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02067/12.93, allocations: 13.13 MB / 3.947 GB, free: 35.45 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/12.93, allocations: 1.773 MB / 3.949 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001892/12.93, allocations: 1.031 MB / 3.95 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.242e-06/12.93, allocations: 0 / 3.95 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.24/17.17, allocations: 65.2 MB / 4.014 GB, free: 30.26 MB / 0.5261 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