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"}) [: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 3.2.3+maint.om/package.mo): time 0.002275/0.002275, allocations: 188.8 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.676/1.676, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.001025/0.001025, allocations: 94.08 kB / 261.4 MB, free: 13.54 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.2178/0.2178, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.246/0.4638, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.8095, allocations: 58.84 MB / 476.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.738/6.548, allocations: 2.771 GB / 3.237 GB, free: 96.87 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/6.548, allocations: 87.45 kB / 3.237 GB, free: 96.79 MB / 0.4948 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 2.191/8.739, allocations: 0.576 GB / 3.813 GB, free: 45.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.736e-05/8.739, allocations: 13.88 kB / 3.813 GB, free: 45.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008336/8.747, allocations: 0.9298 MB / 3.814 GB, free: 45.52 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/8.751, allocations: 1.025 MB / 3.815 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/8.751, allocations: 47.38 kB / 3.815 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007311/8.752, allocations: 71.84 kB / 3.815 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003938/8.756, allocations: 1.365 MB / 3.816 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003999/8.76, allocations: 1.355 MB / 3.818 GB, free: 44.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.905e-05/8.76, allocations: 12.69 kB / 3.818 GB, free: 44.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002949/8.76, allocations: 3.75 kB / 3.818 GB, free: 44.82 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-05/8.76, allocations: 28.06 kB / 3.818 GB, free: 44.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1002/8.861, allocations: 45.82 MB / 3.863 GB, free: 32.48 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003531/8.864, allocations: 1.155 MB / 3.864 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/8.865, allocations: 0.4921 MB / 3.864 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04451/8.91, allocations: 16.43 MB / 3.88 GB, free: 21.69 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000126/8.91, allocations: 44.06 kB / 3.88 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=103): time 3.628e-05/8.91, allocations: 0 / 3.88 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=103): time 0.01339/8.924, allocations: 2.411 MB / 3.883 GB, free: 21.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/8.924, allocations: 194.5 kB / 3.883 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/8.926, allocations: 0.7166 MB / 3.884 GB, free: 21.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003634/8.926, allocations: 30.58 kB / 3.884 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005995/8.927, allocations: 461.2 kB / 3.884 GB, free: 20.76 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005449/8.927, allocations: 338.8 kB / 3.884 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/8.927, allocations: 0 / 3.884 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002274/8.928, allocations: 360.2 kB / 3.885 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/8.929, allocations: 0.4979 MB / 3.885 GB, free: 19.96 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/8.93, allocations: 0.8054 MB / 3.886 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005259/8.935, allocations: 1.101 MB / 3.887 GB, free: 19.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.559e-05/8.935, allocations: 1.938 kB / 3.887 GB, free: 19.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.01132/8.947, allocations: 2.723 MB / 3.89 GB, free: 17.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00164/8.948, allocations: 3.139 MB / 3.893 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.604e-05/8.948, allocations: 11.94 kB / 3.893 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003962/8.952, allocations: 0.7309 MB / 3.893 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/8.954, allocations: 444.9 kB / 3.894 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/8.957, allocations: 1.192 MB / 3.895 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002822/8.96, allocations: 246.8 kB / 3.895 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005065/8.96, allocations: 84.03 kB / 3.895 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/8.96, allocations: 4 kB / 3.895 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007259/8.968, allocations: 1.695 MB / 3.897 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.648e-05/8.968, allocations: 11.91 kB / 3.897 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004185/8.968, allocations: 79.67 kB / 3.897 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001985/8.97, allocations: 476 kB / 3.898 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/8.973, allocations: 1.691 MB / 3.899 GB, free: 8.727 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/8.975, allocations: 206 kB / 3.899 GB, free: 8.555 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003736/8.976, allocations: 82.95 kB / 3.899 GB, free: 8.488 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.0006842/8.976, allocations: 144.4 kB / 3.9 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002393/8.979, allocations: 0.6396 MB / 3.9 GB, free: 7.875 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01058/8.989, allocations: 6.17 MB / 3.906 GB, free: 2.547 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.613e-05/8.989, allocations: 58.83 kB / 3.906 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/8.989, allocations: 0 / 3.906 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.508e-05/8.989, allocations: 7.453 kB / 3.906 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/9.004, allocations: 7.772 MB / 3.914 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/9.004, allocations: 4 kB / 3.914 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/9.005, allocations: 266.9 kB / 3.914 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004484/9.009, allocations: 1.732 MB / 3.916 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001889/9.01, allocations: 35.88 kB / 3.916 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003721/9.013, allocations: 1.861 MB / 3.918 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.008e-05/9.013, allocations: 8 kB / 3.918 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01111/9.024, allocations: 4.639 MB / 3.922 GB, free: 4.207 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3683/9.393, allocations: 5.074 MB / 3.927 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/9.395, allocations: 0.635 MB / 3.928 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003059/9.395, allocations: 10.75 kB / 3.928 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/9.396, allocations: 122.1 kB / 3.928 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003104/9.397, allocations: 159.4 kB / 3.928 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/9.397, allocations: 64.41 kB / 3.928 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001447/9.398, allocations: 1.014 MB / 3.929 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01167/9.41, allocations: 2.128 MB / 3.931 GB, free: 119.4 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.01169/9.422, allocations: 2.114 MB / 3.933 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005921/9.428, allocations: 3.193 MB / 3.936 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/9.428, allocations: 7.156 kB / 3.936 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002441/9.43, allocations: 1.906 MB / 3.938 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003615/9.434, allocations: 0.515 MB / 3.939 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007755/9.442, allocations: 3.696 MB / 3.942 GB, free: 118.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/9.443, allocations: 1.744 MB / 3.944 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.372e-06/9.443, allocations: 0 / 3.944 GB, free: 117.6 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)