Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValves.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.WaterComponents.TestValves,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestValves,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValves",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.000955/0.0009549, allocations: 183.1 kB / 8.134 MB, free: 2.211 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.094/1.094, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0009282/0.0009282, allocations: 91.36 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3262/0.3262, allocations: 48.75 MB / 358.4 MB, free: 53.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1073/0.4336, allocations: 66.37 MB / 424.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.5433, allocations: 60.25 MB / 485.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.679/5.222, allocations: 2.865 GB / 3.339 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/5.223, allocations: 77.59 kB / 3.339 GB, free: 152.1 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 1.125/6.348, allocations: 430.5 MB / 3.759 GB, free: 55.18 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/6.348, allocations: 9.406 kB / 3.759 GB, free: 55.18 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005241/6.348, allocations: 131.1 kB / 3.759 GB, free: 55.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/6.349, allocations: 0.6262 MB / 3.76 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/6.349, allocations: 23.34 kB / 3.76 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.43e-05/6.349, allocations: 30.81 kB / 3.76 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001064/6.35, allocations: 0.7462 MB / 3.761 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/6.351, allocations: 0.6003 MB / 3.761 GB, free: 54.63 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/6.351, allocations: 0.9375 kB / 3.761 GB, free: 54.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.532e-05/6.351, allocations: 3.906 kB / 3.761 GB, free: 54.63 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/6.351, allocations: 13.09 kB / 3.761 GB, free: 54.63 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/6.354, allocations: 3.123 MB / 3.764 GB, free: 52.48 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003967/6.354, allocations: 283.5 kB / 3.765 GB, free: 52.46 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/6.354, allocations: 158.3 kB / 3.765 GB, free: 52.45 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05309/6.407, allocations: 32.01 MB / 3.796 GB, free: 33.06 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/6.408, allocations: 38.03 kB / 3.796 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=31): time 2.565e-06/6.408, allocations: 0 / 3.796 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31): time 0.003145/6.411, allocations: 0.7598 MB / 3.797 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/6.411, allocations: 55.38 kB / 3.797 GB, free: 32.89 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005297/6.411, allocations: 392.2 kB / 3.797 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.948e-05/6.411, allocations: 25.7 kB / 3.797 GB, free: 32.74 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/6.411, allocations: 256.8 kB / 3.798 GB, free: 32.61 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.003e-05/6.412, allocations: 102.3 kB / 3.798 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/6.412, allocations: 3.969 kB / 3.798 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.607e-05/6.412, allocations: 373 kB / 3.798 GB, free: 32.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/6.412, allocations: 113.7 kB / 3.798 GB, free: 32.22 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/6.412, allocations: 167.8 kB / 3.798 GB, free: 32.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005479/6.413, allocations: 161.2 kB / 3.798 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/6.413, allocations: 0 / 3.798 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003639/6.416, allocations: 0.9018 MB / 3.799 GB, free: 32.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/6.416, allocations: 0.5253 MB / 3.8 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/6.416, allocations: 3.906 kB / 3.8 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006378/6.423, allocations: 0.9944 MB / 3.801 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/6.423, allocations: 62.56 kB / 3.801 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/6.425, allocations: 1.108 MB / 3.802 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/6.426, allocations: 65.7 kB / 3.802 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/6.426, allocations: 18.36 kB / 3.802 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.315e-06/6.426, allocations: 7.469 kB / 3.802 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008761/6.427, allocations: 363.2 kB / 3.802 GB, free: 30.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/6.427, allocations: 3.531 kB / 3.802 GB, free: 30.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003233/6.427, allocations: 86.55 kB / 3.803 GB, free: 30.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004027/6.427, allocations: 94.86 kB / 3.803 GB, free: 30.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/6.429, allocations: 1.629 MB / 3.804 GB, free: 29.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006245/6.429, allocations: 55.23 kB / 3.804 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/6.429, allocations: 17.28 kB / 3.804 GB, free: 29.61 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: SourceP2.flange.m_flow:VARIABLE(flow=true min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real SourceP1.flange.m_flow:VARIABLE(flow=true min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (V5.fluidState.phase,V4.fluidState.phase,V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 {6 17} Notification: Performance of prepare postOptimizeDAE: time 0.0001968/6.43, allocations: 119.2 kB / 3.804 GB, free: 29.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004309/6.43, allocations: 161.6 kB / 3.805 GB, free: 29.46 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002965/6.433, allocations: 2.27 MB / 3.807 GB, free: 29.28 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/6.433, allocations: 16.92 kB / 3.807 GB, free: 29.28 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/6.433, allocations: 0 / 3.807 GB, free: 29.28 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/6.433, allocations: 9.625 kB / 3.807 GB, free: 29.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008733/6.434, allocations: 0.8488 MB / 3.808 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/6.434, allocations: 0 / 3.808 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/6.434, allocations: 53.36 kB / 3.808 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004191/6.438, allocations: 2.731 MB / 3.81 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/6.438, allocations: 11.3 kB / 3.81 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/6.441, allocations: 2.15 MB / 3.812 GB, free: 28.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/6.441, allocations: 3.906 kB / 3.812 GB, free: 28.38 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002019/6.443, allocations: 1.705 MB / 3.814 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002135/6.445, allocations: 2.149 MB / 3.816 GB, free: 27.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/6.445, allocations: 155.9 kB / 3.816 GB, free: 27.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/6.445, allocations: 0 / 3.816 GB, free: 27.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/6.445, allocations: 48.56 kB / 3.816 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/6.446, allocations: 32.7 kB / 3.816 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/6.446, allocations: 19.39 kB / 3.816 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002628/6.446, allocations: 306 kB / 3.817 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005208/6.451, allocations: 1.369 MB / 3.818 GB, free: 27.05 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 {5 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.006453/6.458, allocations: 1.761 MB / 3.82 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001809/6.459, allocations: 1.087 MB / 3.821 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/6.459, allocations: 0.625 kB / 3.821 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008477/6.46, allocations: 0.768 MB / 3.822 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/6.462, allocations: 270.1 kB / 3.822 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/6.464, allocations: 1.337 MB / 3.823 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000439/6.464, allocations: 1.049 MB / 3.824 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of SimCode: time 7.61e-07/6.464, allocations: 0 / 3.824 GB, free: 25.5 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestValves_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestValves.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1)