Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.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.Machines.TestWaterPumpDefault,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault",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.001294/0.001294, allocations: 185.7 kB / 7.805 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.612/1.612, allocations: 205.2 MB / 213.4 MB, free: 13.89 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.001054/0.001055, allocations: 82.16 kB / 261.4 MB, free: 13.53 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.2327/0.2327, allocations: 43.49 MB / 352.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2539/0.4866, allocations: 64.96 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.8914, allocations: 58.85 MB / 476.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.732/7.623, allocations: 2.781 GB / 3.246 GB, free: 85.65 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003891/7.623, allocations: 83.95 kB / 3.246 GB, free: 85.57 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 1.829/9.452, allocations: 437.3 MB / 3.673 GB, free: 32.49 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/9.452, allocations: 11.98 kB / 3.673 GB, free: 32.48 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003351/9.456, allocations: 354.2 kB / 3.674 GB, free: 32.14 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001622/9.457, allocations: 0.566 MB / 3.674 GB, free: 31.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.416e-05/9.457, allocations: 27.91 kB / 3.674 GB, free: 31.52 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/9.458, allocations: 32 kB / 3.674 GB, free: 31.48 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001305/9.459, allocations: 0.5376 MB / 3.675 GB, free: 30.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/9.46, allocations: 0.6678 MB / 3.676 GB, free: 30.22 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/9.46, allocations: 0 / 3.676 GB, free: 30.22 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-05/9.46, allocations: 0 / 3.676 GB, free: 30.22 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.959e-05/9.46, allocations: 27.75 kB / 3.676 GB, free: 30.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.393/9.853, allocations: 44.39 MB / 3.719 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005044/9.854, allocations: 297.3 kB / 3.719 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/9.854, allocations: 199.2 kB / 3.719 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04704/9.901, allocations: 24.08 MB / 3.743 GB, free: 96.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.064e-05/9.901, allocations: 45.98 kB / 3.743 GB, free: 96.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=39): time 5.5e-06/9.901, allocations: 0 / 3.743 GB, free: 96.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.003212/9.905, allocations: 0.8009 MB / 3.744 GB, free: 96.71 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/9.905, allocations: 109.4 kB / 3.744 GB, free: 96.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006131/9.905, allocations: 408.3 kB / 3.744 GB, free: 96.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.47e-05/9.905, allocations: 29.64 kB / 3.744 GB, free: 96.45 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/9.906, allocations: 284.4 kB / 3.744 GB, free: 96.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/9.906, allocations: 143 kB / 3.745 GB, free: 96.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.352e-05/9.906, allocations: 0 / 3.745 GB, free: 96.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001442/9.906, allocations: 364.6 kB / 3.745 GB, free: 95.92 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003073/9.906, allocations: 182.3 kB / 3.745 GB, free: 95.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/9.907, allocations: 371.6 kB / 3.746 GB, free: 95.72 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/9.908, allocations: 325.8 kB / 3.746 GB, free: 95.72 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/9.908, allocations: 0 / 3.746 GB, free: 95.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002809/9.911, allocations: 1.035 MB / 3.747 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005803/9.912, allocations: 1.999 MB / 3.749 GB, free: 93.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/9.912, allocations: 7.438 kB / 3.749 GB, free: 93.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009949/9.913, allocations: 186.1 kB / 3.749 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006442/9.913, allocations: 149.5 kB / 3.749 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/9.915, allocations: 0.8908 MB / 3.75 GB, free: 93.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/9.916, allocations: 133.2 kB / 3.75 GB, free: 93.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.255e-05/9.916, allocations: 33.17 kB / 3.75 GB, free: 93.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/9.916, allocations: 3.969 kB / 3.75 GB, free: 93.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002604/9.919, allocations: 0.7335 MB / 3.751 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/9.919, allocations: 3.906 kB / 3.751 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008712/9.92, allocations: 172.3 kB / 3.751 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/9.92, allocations: 148.9 kB / 3.751 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/9.922, allocations: 0.7892 MB / 3.752 GB, free: 92.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008457/9.922, allocations: 101.6 kB / 3.752 GB, free: 92.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.098e-05/9.923, allocations: 39.97 kB / 3.752 GB, free: 92.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.000251/9.923, allocations: 125.5 kB / 3.752 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007521/9.924, allocations: 263.6 kB / 3.752 GB, free: 92.32 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/9.927, allocations: 2.464 MB / 3.755 GB, free: 92.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.778e-05/9.927, allocations: 26.45 kB / 3.755 GB, free: 92.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/9.927, allocations: 2.531 kB / 3.755 GB, free: 92.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/9.927, allocations: 7.609 kB / 3.755 GB, free: 92.13 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003814/9.931, allocations: 3.131 MB / 3.758 GB, free: 91.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/9.931, allocations: 0 / 3.758 GB, free: 91.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/9.931, allocations: 62.95 kB / 3.758 GB, free: 91.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/9.932, allocations: 0.6895 MB / 3.759 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.786e-05/9.932, allocations: 14.14 kB / 3.759 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001433/9.934, allocations: 1.257 MB / 3.76 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/9.934, allocations: 9.625 kB / 3.76 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002792/9.937, allocations: 1.955 MB / 3.762 GB, free: 90.85 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003221/9.94, allocations: 2.414 MB / 3.764 GB, free: 90.17 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004792/9.94, allocations: 265.3 kB / 3.764 GB, free: 90.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/9.941, allocations: 3.219 kB / 3.764 GB, free: 90.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005906/9.941, allocations: 64.39 kB / 3.765 GB, free: 90.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/9.941, allocations: 46.41 kB / 3.765 GB, free: 90.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.516e-05/9.941, allocations: 24.75 kB / 3.765 GB, free: 90.02 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000531/9.942, allocations: 372.6 kB / 3.765 GB, free: 89.93 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009007/9.951, allocations: 1.703 MB / 3.767 GB, free: 89.91 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.009491/9.96, allocations: 1.854 MB / 3.768 GB, free: 89.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002889/9.963, allocations: 1.337 MB / 3.77 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/9.963, allocations: 5.781 kB / 3.77 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008963/9.964, allocations: 0.898 MB / 3.771 GB, free: 89.76 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/9.966, allocations: 250.4 kB / 3.771 GB, free: 89.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/9.969, allocations: 1.568 MB / 3.772 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006401/9.969, allocations: 1.115 MB / 3.773 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of SimCode: time 8.62e-07/9.969, allocations: 0 / 3.773 GB, free: 88.71 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe 2>&1)