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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 182.3 kB / 8.521 MB, free: 1.734 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.146/1.146, allocations: 221.4 MB / 230.3 MB, free: 7.652 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008965/0.0008964, allocations: 90.11 kB / 281.2 MB, free: 5.465 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.1598/0.1598, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1789/0.3387, allocations: 68.04 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0961/0.4348, allocations: 61.91 MB / 0.4942 GB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.17/4.605, allocations: 2.777 GB / 3.271 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/4.605, allocations: 84.02 kB / 3.271 GB, free: 149.2 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 1.475/6.079, allocations: 0.5825 GB / 3.854 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/6.079, allocations: 17 kB / 3.854 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006862/6.086, allocations: 0.9211 MB / 3.854 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001819/6.088, allocations: 1.037 MB / 3.855 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.148e-05/6.088, allocations: 48 kB / 3.855 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/6.088, allocations: 71.98 kB / 3.856 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001948/6.09, allocations: 1.367 MB / 3.857 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/6.092, allocations: 1.361 MB / 3.858 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/6.092, allocations: 7.656 kB / 3.858 GB, free: 8.648 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/6.092, allocations: 4 kB / 3.858 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/6.092, allocations: 28 kB / 3.858 GB, free: 8.617 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2589/6.351, allocations: 45.81 MB / 3.903 GB, free: 88.46 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002215/6.354, allocations: 1.159 MB / 3.904 GB, free: 88.43 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006112/6.354, allocations: 0.492 MB / 3.905 GB, free: 88.42 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02808/6.382, allocations: 16.44 MB / 3.921 GB, free: 78.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/6.382, allocations: 43.06 kB / 3.921 GB, free: 78.34 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=103): time 3.367e-06/6.382, allocations: 0 / 3.921 GB, free: 78.34 MB / 0.5417 GB Notification: Performance of matching and sorting (n=103): time 0.0086/6.391, allocations: 2.407 MB / 3.923 GB, free: 78.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/6.391, allocations: 194.3 kB / 3.923 GB, free: 78.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008259/6.392, allocations: 0.7174 MB / 3.924 GB, free: 77.92 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.788e-05/6.392, allocations: 28.86 kB / 3.924 GB, free: 77.89 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/6.392, allocations: 461.9 kB / 3.924 GB, free: 77.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/6.392, allocations: 341.8 kB / 3.925 GB, free: 77.49 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/6.392, allocations: 0 / 3.925 GB, free: 77.49 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.114e-05/6.393, allocations: 357.3 kB / 3.925 GB, free: 77.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007207/6.393, allocations: 0.4969 MB / 3.926 GB, free: 77.18 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008414/6.394, allocations: 0.8079 MB / 3.926 GB, free: 76.86 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004276/6.398, allocations: 1.099 MB / 3.927 GB, free: 76.85 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/6.398, allocations: 3.188 kB / 3.927 GB, free: 76.85 MB / 0.5417 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.007543/6.406, allocations: 2.719 MB / 3.93 GB, free: 76.72 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004823/6.406, allocations: 3.141 MB / 3.933 GB, free: 73.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/6.406, allocations: 11.16 kB / 3.933 GB, free: 73.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003717/6.41, allocations: 0.7297 MB / 3.934 GB, free: 73.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/6.412, allocations: 433.8 kB / 3.934 GB, free: 73.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/6.414, allocations: 1.192 MB / 3.935 GB, free: 72.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/6.415, allocations: 249.5 kB / 3.936 GB, free: 72.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/6.415, allocations: 83.36 kB / 3.936 GB, free: 72.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.826e-06/6.415, allocations: 3.031 kB / 3.936 GB, free: 72.8 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004997/6.42, allocations: 1.702 MB / 3.937 GB, free: 72.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/6.42, allocations: 8.094 kB / 3.937 GB, free: 72.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/6.421, allocations: 87.16 kB / 3.938 GB, free: 72.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/6.422, allocations: 467.9 kB / 3.938 GB, free: 72.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/6.424, allocations: 1.688 MB / 3.94 GB, free: 71.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/6.426, allocations: 210.2 kB / 3.94 GB, free: 71.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/6.426, allocations: 80.22 kB / 3.94 GB, free: 71.38 MB / 0.5417 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.0003033/6.426, allocations: 147.3 kB / 3.94 GB, free: 71.27 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001764/6.428, allocations: 0.6485 MB / 3.941 GB, free: 71.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007802/6.436, allocations: 6.15 MB / 3.947 GB, free: 70.69 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.659e-05/6.436, allocations: 54.22 kB / 3.947 GB, free: 70.69 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/6.436, allocations: 0 / 3.947 GB, free: 70.69 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/6.436, allocations: 14.45 kB / 3.947 GB, free: 70.69 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008823/6.445, allocations: 7.756 MB / 3.954 GB, free: 70.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/6.445, allocations: 11.38 kB / 3.954 GB, free: 70.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008947/6.446, allocations: 273.8 kB / 3.955 GB, free: 70.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002955/6.448, allocations: 1.728 MB / 3.956 GB, free: 69.95 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.99e-05/6.449, allocations: 33.92 kB / 3.956 GB, free: 69.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002214/6.451, allocations: 1.855 MB / 3.958 GB, free: 69.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/6.451, allocations: 7.906 kB / 3.958 GB, free: 69.39 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006765/6.458, allocations: 4.65 MB / 3.963 GB, free: 68.5 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006685/6.464, allocations: 5.064 MB / 3.968 GB, free: 67.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008043/6.465, allocations: 0.653 MB / 3.968 GB, free: 67.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/6.465, allocations: 9.328 kB / 3.968 GB, free: 67.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/6.466, allocations: 120.2 kB / 3.968 GB, free: 67 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/6.467, allocations: 160.8 kB / 3.969 GB, free: 67 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-05/6.467, allocations: 58.75 kB / 3.969 GB, free: 67 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001069/6.468, allocations: 1.015 MB / 3.97 GB, free: 66.89 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007652/6.476, allocations: 2.133 MB / 3.972 GB, free: 66.82 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 33 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse30.phase,$cse30.region,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,$cse64.phase,$cse64.region,SinkP3.medium.phase,SinkP2.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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.004917/6.48, allocations: 2.112 MB / 3.974 GB, free: 66.51 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003669/6.484, allocations: 3.192 MB / 3.977 GB, free: 66.36 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/6.484, allocations: 6.75 kB / 3.977 GB, free: 66.36 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001824/6.486, allocations: 1.909 MB / 3.979 GB, free: 66.34 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002481/6.488, allocations: 0.5115 MB / 3.979 GB, free: 66.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004931/6.493, allocations: 3.695 MB / 3.983 GB, free: 65.46 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/6.495, allocations: 1.741 MB / 3.985 GB, free: 64.68 MB / 0.5417 GB Notification: Performance of SimCode: time 7.52e-07/6.495, allocations: 0 / 3.985 GB, free: 64.68 MB / 0.5417 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)