Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_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.001265/0.001265, allocations: 181.1 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001011/0.001011, allocations: 94.86 kB / 270.2 MB, free: 13.36 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.2475/0.2475, allocations: 43.57 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004179/0.0004176, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1497, allocations: 58.85 MB / 490.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.551/5.701, allocations: 2.772 GB / 3.251 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/5.701, allocations: 83.95 kB / 3.251 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.219/7.921, allocations: 0.5797 GB / 3.831 GB, free: 47.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.527e-06/7.921, allocations: 1.25 kB / 3.831 GB, free: 47.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002657/7.921, allocations: 35.56 kB / 3.831 GB, free: 47.89 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01439/7.936, allocations: 2.716 MB / 3.834 GB, free: 46.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/7.936, allocations: 18.7 kB / 3.834 GB, free: 46.79 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008999/7.937, allocations: 170.5 kB / 3.834 GB, free: 46.75 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007625/7.944, allocations: 0.8676 MB / 3.835 GB, free: 46.67 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003315/7.948, allocations: 1.034 MB / 3.836 GB, free: 46.34 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/7.948, allocations: 97.39 kB / 3.836 GB, free: 46.34 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005315/7.948, allocations: 118.8 kB / 3.836 GB, free: 46.34 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005832/7.954, allocations: 2.219 MB / 3.838 GB, free: 45.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/7.954, allocations: 7.062 kB / 3.838 GB, free: 45.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/7.955, allocations: 58.53 kB / 3.838 GB, free: 45.96 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/7.955, allocations: 29.22 kB / 3.838 GB, free: 45.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005362/7.96, allocations: 2.186 MB / 3.84 GB, free: 45.95 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/7.971, allocations: 8.723 MB / 3.849 GB, free: 40.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005783/7.977, allocations: 2.137 MB / 3.851 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04012/8.017, allocations: 23.93 MB / 3.874 GB, free: 25.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/8.017, allocations: 58.98 kB / 3.874 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001371/8.019, allocations: 155.1 kB / 3.874 GB, free: 25.74 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=108): time 5.05e-06/8.019, allocations: 3.656 kB / 3.874 GB, free: 25.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108): time 0.01441/8.033, allocations: 4.231 MB / 3.879 GB, free: 25.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/8.033, allocations: 197.3 kB / 3.879 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/8.035, allocations: 0.9058 MB / 3.88 GB, free: 25.04 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001715/8.035, allocations: 52.3 kB / 3.88 GB, free: 25.01 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003424/8.035, allocations: 0.565 MB / 3.88 GB, free: 24.78 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/8.035, allocations: 378.7 kB / 3.881 GB, free: 24.54 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.015e-05/8.035, allocations: 25.84 kB / 3.881 GB, free: 24.54 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.189e-05/8.036, allocations: 359.9 kB / 3.881 GB, free: 24.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/8.037, allocations: 0.642 MB / 3.882 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/8.038, allocations: 0.9673 MB / 3.883 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/8.04, allocations: 0.7196 MB / 3.883 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/8.04, allocations: 0 / 3.883 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003941/8.044, allocations: 1.967 MB / 3.885 GB, free: 23.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006739/8.044, allocations: 3.142 MB / 3.888 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/8.044, allocations: 6.25 kB / 3.888 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006658/8.051, allocations: 1.181 MB / 3.889 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/8.053, allocations: 422.6 kB / 3.89 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/8.054, allocations: 0.9298 MB / 3.891 GB, free: 19.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/8.056, allocations: 170.6 kB / 3.891 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/8.056, allocations: 84.97 kB / 3.891 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/8.056, allocations: 6.312 kB / 3.891 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003635/8.06, allocations: 1.732 MB / 3.893 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/8.06, allocations: 15.25 kB / 3.893 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/8.06, allocations: 82.77 kB / 3.893 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/8.062, allocations: 451.2 kB / 3.893 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/8.063, allocations: 1.771 MB / 3.895 GB, free: 18.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/8.065, allocations: 168.2 kB / 3.895 GB, free: 18.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/8.065, allocations: 80.44 kB / 3.895 GB, free: 18.26 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.001692/8.067, allocations: 382 kB / 3.895 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/8.067, allocations: 144.7 kB / 3.896 GB, free: 33.99 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007698/8.075, allocations: 7.011 MB / 3.902 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.591e-05/8.075, allocations: 84.61 kB / 3.903 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/8.075, allocations: 0 / 3.903 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/8.075, allocations: 10.59 kB / 3.903 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/8.085, allocations: 8.9 MB / 3.911 GB, free: 32.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/8.085, allocations: 4.062 kB / 3.911 GB, free: 32.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/8.086, allocations: 296.5 kB / 3.912 GB, free: 32.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006032/8.093, allocations: 2.111 MB / 3.914 GB, free: 32.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000231/8.093, allocations: 38.91 kB / 3.914 GB, free: 32.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/8.095, allocations: 1.617 MB / 3.915 GB, free: 31.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/8.095, allocations: 3.953 kB / 3.915 GB, free: 31.89 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005388/8.1, allocations: 3.842 MB / 3.919 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/8.101, allocations: 0.748 MB / 3.92 GB, free: 30.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/8.102, allocations: 27.44 kB / 3.92 GB, free: 30.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/8.103, allocations: 152.6 kB / 3.92 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/8.103, allocations: 121.6 kB / 3.92 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.966e-05/8.103, allocations: 52.14 kB / 3.92 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001578/8.105, allocations: 1.205 MB / 3.921 GB, free: 30.82 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/8.105, allocations: 0 / 3.921 GB, free: 30.82 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009342/8.114, allocations: 1.846 MB / 3.923 GB, free: 30.62 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 () * 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.01654/8.131, allocations: 6.196 MB / 3.929 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007966/8.139, allocations: 3.288 MB / 3.932 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.607e-06/8.139, allocations: 0 / 3.932 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002867/8.142, allocations: 1.71 MB / 3.934 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00447/8.146, allocations: 0.7269 MB / 3.935 GB, free: 28.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01984/8.166, allocations: 13.08 MB / 3.947 GB, free: 19.67 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/8.168, allocations: 1.78 MB / 3.949 GB, free: 18.89 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003665/8.172, allocations: 1.81 MB / 3.951 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/8.174, allocations: 1.016 MB / 3.952 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of SimCode: time 2.224e-06/8.174, allocations: 0 / 3.952 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5062/8.68, allocations: 86.91 MB / 4.037 GB, free: 59.99 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002558/8.68, allocations: 275 kB / 4.037 GB, free: 59.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.436/15.12, allocations: 7.188 kB / 4.037 GB, free: 59.63 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1)