Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001212, allocations: 184 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.2 MB / 241 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 93.23 kB / 292.1 MB, free: 10.73 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4136/0.4136, allocations: 44.22 MB / 387.5 MB, free: 38.53 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000368/0.0003681, allocations: 8 kB / 460 MB, free: 1.453 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4837/0.4841, allocations: 61.89 MB / 0.5096 GB, free: 37.77 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.966/6.45, allocations: 2.778 GB / 3.287 GB, free: 78.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/6.45, allocations: 95.91 kB / 3.287 GB, free: 78.18 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.327/8.778, allocations: 0.5861 GB / 3.873 GB, free: 46.3 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.314e-06/8.778, allocations: 0 / 3.873 GB, free: 46.3 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.298e-05/8.778, allocations: 38.39 kB / 3.873 GB, free: 46.29 MB / 0.5417 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.01178/8.789, allocations: 2.712 MB / 3.876 GB, free: 45.1 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.276e-05/8.79, allocations: 11.66 kB / 3.876 GB, free: 45.1 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007479/8.79, allocations: 169.7 kB / 3.876 GB, free: 45.05 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007094/8.797, allocations: 0.8778 MB / 3.877 GB, free: 44.97 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002455/8.8, allocations: 1.03 MB / 3.878 GB, free: 44.64 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/8.8, allocations: 98.39 kB / 3.878 GB, free: 44.64 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002309/8.8, allocations: 114.3 kB / 3.878 GB, free: 44.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005124/8.805, allocations: 2.213 MB / 3.88 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/8.805, allocations: 8.094 kB / 3.88 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/8.806, allocations: 51.03 kB / 3.881 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/8.806, allocations: 29.22 kB / 3.881 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00554/8.811, allocations: 2.191 MB / 3.883 GB, free: 44.26 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01158/8.823, allocations: 8.72 MB / 3.891 GB, free: 39 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006088/8.829, allocations: 2.131 MB / 3.893 GB, free: 38.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04215/8.871, allocations: 23.95 MB / 3.917 GB, free: 24.08 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.32e-05/8.871, allocations: 48.12 kB / 3.917 GB, free: 24.04 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001399/8.873, allocations: 166 kB / 3.917 GB, free: 23.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=108): time 7.895e-06/8.873, allocations: 0 / 3.917 GB, free: 23.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108): time 0.01538/8.888, allocations: 4.241 MB / 3.921 GB, free: 23.64 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.869e-05/8.888, allocations: 192.6 kB / 3.921 GB, free: 23.42 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/8.89, allocations: 0.9109 MB / 3.922 GB, free: 23.26 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002975/8.89, allocations: 48.48 kB / 3.922 GB, free: 23.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004821/8.891, allocations: 0.5617 MB / 3.923 GB, free: 23 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004181/8.891, allocations: 377.6 kB / 3.923 GB, free: 22.76 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/8.891, allocations: 22.72 kB / 3.923 GB, free: 22.76 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001114/8.891, allocations: 355.9 kB / 3.923 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/8.893, allocations: 0.6465 MB / 3.924 GB, free: 22.45 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/8.895, allocations: 0.9633 MB / 3.925 GB, free: 22.08 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/8.896, allocations: 0.7195 MB / 3.926 GB, free: 22.04 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.342e-05/8.896, allocations: 2.938 kB / 3.926 GB, free: 22.04 MB / 0.5417 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004253/8.9, allocations: 1.969 MB / 3.928 GB, free: 21.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001496/8.902, allocations: 3.149 MB / 3.931 GB, free: 34.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/8.902, allocations: 10.61 kB / 3.931 GB, free: 34.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006863/8.909, allocations: 1.171 MB / 3.932 GB, free: 34.06 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001894/8.911, allocations: 420.8 kB / 3.932 GB, free: 34.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/8.912, allocations: 0.9385 MB / 3.933 GB, free: 33.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002191/8.914, allocations: 166.8 kB / 3.933 GB, free: 33.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003488/8.915, allocations: 85.59 kB / 3.933 GB, free: 33.28 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/8.915, allocations: 0 / 3.933 GB, free: 33.28 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004135/8.919, allocations: 1.73 MB / 3.935 GB, free: 32.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/8.919, allocations: 11.77 kB / 3.935 GB, free: 32.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003507/8.919, allocations: 87.05 kB / 3.935 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/8.921, allocations: 455.1 kB / 3.936 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/8.923, allocations: 1.767 MB / 3.937 GB, free: 31.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001865/8.925, allocations: 174.8 kB / 3.938 GB, free: 31.03 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/8.925, allocations: 75.64 kB / 3.938 GB, free: 31.02 MB / 0.5573 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.001008/8.926, allocations: 387.8 kB / 3.938 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004223/8.927, allocations: 138.4 kB / 3.938 GB, free: 30.64 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008595/8.935, allocations: 7.006 MB / 3.945 GB, free: 27.52 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.314e-05/8.935, allocations: 90.52 kB / 3.945 GB, free: 27.5 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/8.935, allocations: 3.953 kB / 3.945 GB, free: 27.49 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/8.935, allocations: 6.516 kB / 3.945 GB, free: 27.49 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/8.947, allocations: 8.893 MB / 3.954 GB, free: 23.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/8.947, allocations: 0 / 3.954 GB, free: 23.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009994/8.948, allocations: 300.5 kB / 3.954 GB, free: 23.48 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006178/8.954, allocations: 2.105 MB / 3.956 GB, free: 23.27 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002017/8.954, allocations: 42.61 kB / 3.956 GB, free: 23.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/8.956, allocations: 1.623 MB / 3.958 GB, free: 22.24 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/8.956, allocations: 0 / 3.958 GB, free: 22.24 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005727/8.962, allocations: 3.839 MB / 3.961 GB, free: 20.49 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/8.963, allocations: 0.7477 MB / 3.962 GB, free: 20 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004765/8.964, allocations: 36.58 kB / 3.962 GB, free: 19.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/8.965, allocations: 157.6 kB / 3.962 GB, free: 19.93 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/8.965, allocations: 118.3 kB / 3.962 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/8.965, allocations: 54.69 kB / 3.963 GB, free: 19.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001857/8.967, allocations: 1.202 MB / 3.964 GB, free: 19.03 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.3e-07/8.967, allocations: 0 / 3.964 GB, free: 19.03 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008874/8.976, allocations: 1.848 MB / 3.965 GB, free: 17.21 MB / 0.5573 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.01689/8.993, allocations: 6.197 MB / 3.972 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008361/9.002, allocations: 3.287 MB / 3.975 GB, free: 8.949 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/9.002, allocations: 0 / 3.975 GB, free: 8.949 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003096/9.005, allocations: 1.716 MB / 3.976 GB, free: 7.398 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004477/9.009, allocations: 0.7317 MB / 3.977 GB, free: 6.863 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02042/9.03, allocations: 13.08 MB / 3.99 GB, free: 10.14 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/9.031, allocations: 1.778 MB / 3.992 GB, free: 8.707 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003396/9.035, allocations: 1.812 MB / 3.993 GB, free: 7.641 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/9.036, allocations: 1.018 MB / 3.994 GB, free: 6.711 MB / 0.573 GB Notification: Performance of SimCode: time 1.012e-06/9.036, allocations: 0 / 3.994 GB, free: 6.711 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6019/9.638, allocations: 87 MB / 4.079 GB, free: 68.86 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/9.639, allocations: 282.6 kB / 4.08 GB, free: 68.5 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.543/16.18, allocations: 0 / 4.08 GB, free: 68.5 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1)