Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.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.TestCoeffValve,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoeffValve,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve",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.001216/0.001216, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.119/1.119, 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.0009005/0.0009005, allocations: 99.47 kB / 261.8 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.3261/0.3261, allocations: 48.75 MB / 358.4 MB, free: 53.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1079/0.434, allocations: 66.37 MB / 424.8 MB, free: 8.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.5318, allocations: 60.26 MB / 485.1 MB, free: 11.67 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.306/4.838, allocations: 2.865 GB / 3.338 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/4.838, allocations: 78 kB / 3.338 GB, free: 152.4 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 1.11/5.948, allocations: 459.2 MB / 3.787 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/5.948, allocations: 10.69 kB / 3.787 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004053/5.949, allocations: 124.4 kB / 3.787 GB, free: 54.97 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008163/5.95, allocations: 0.555 MB / 3.787 GB, free: 54.69 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/5.95, allocations: 20.52 kB / 3.787 GB, free: 54.69 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/5.95, allocations: 28.84 kB / 3.788 GB, free: 54.69 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004553/5.95, allocations: 301.1 kB / 3.788 GB, free: 54.69 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005904/5.951, allocations: 0.6256 MB / 3.788 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/5.951, allocations: 1.688 kB / 3.788 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/5.951, allocations: 9.656 kB / 3.788 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/5.951, allocations: 13.06 kB / 3.788 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.224/6.175, allocations: 131.2 MB / 3.917 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 7.811e-05/6.175, allocations: 92.48 kB / 3.917 GB, free: 14.29 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.345e-05/6.175, allocations: 39.42 kB / 3.917 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/6.175, allocations: 4 kB / 3.917 GB, free: 14.25 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/6.175, allocations: 35.36 kB / 3.917 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=4): time 2.375e-06/6.175, allocations: 0 / 3.917 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of matching and sorting (n=4): time 0.0008026/6.176, allocations: 225.2 kB / 3.917 GB, free: 14.06 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/6.176, allocations: 132.5 kB / 3.917 GB, free: 13.9 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004058/6.176, allocations: 438.6 kB / 3.917 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/6.177, allocations: 25.7 kB / 3.917 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/6.177, allocations: 313.8 kB / 3.918 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/6.177, allocations: 10.84 kB / 3.918 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/6.177, allocations: 0 / 3.918 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001273/6.177, allocations: 368.8 kB / 3.918 GB, free: 13 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.372e-05/6.177, allocations: 43.89 kB / 3.918 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.878e-05/6.177, allocations: 125.4 kB / 3.918 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/6.177, allocations: 87.06 kB / 3.918 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/6.177, allocations: 4 kB / 3.918 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001082/6.178, allocations: 433.4 kB / 3.919 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003384/6.179, allocations: 1.045 MB / 3.92 GB, free: 11.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/6.179, allocations: 4 kB / 3.92 GB, free: 11.43 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/6.179, allocations: 8 kB / 3.92 GB, free: 11.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/6.179, allocations: 51.11 kB / 3.92 GB, free: 11.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/6.179, allocations: 6.812 kB / 3.92 GB, free: 11.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/6.18, allocations: 32.08 kB / 3.92 GB, free: 11.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/6.18, allocations: 15.94 kB / 3.92 GB, free: 11.35 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.72e-06/6.18, allocations: 8 kB / 3.92 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003681/6.18, allocations: 136.8 kB / 3.92 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-06/6.18, allocations: 0 / 3.92 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.258e-06/6.18, allocations: 8 kB / 3.92 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/6.18, allocations: 52.98 kB / 3.92 GB, free: 11.22 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-06/6.18, allocations: 4 kB / 3.92 GB, free: 11.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/6.18, allocations: 27.8 kB / 3.92 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/6.18, allocations: 13.39 kB / 3.92 GB, free: 11.18 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (ValveLiq4.fluidState.phase,ValveLiq3.fluidState.phase,ValveLiq2.fluidState.phase,ValveLiq1.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.14e-05/6.181, allocations: 112.3 kB / 3.92 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000335/6.181, allocations: 139.2 kB / 3.92 GB, free: 10.98 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002115/6.181, allocations: 136.9 kB / 3.921 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/6.181, allocations: 3.797 kB / 3.921 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/6.181, allocations: 10.75 kB / 3.921 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/6.181, allocations: 0 / 3.921 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006096/6.182, allocations: 0.5376 MB / 3.921 GB, free: 26.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/6.182, allocations: 0 / 3.921 GB, free: 26.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.662e-05/6.182, allocations: 11.75 kB / 3.921 GB, free: 26.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/6.182, allocations: 3.938 kB / 3.921 GB, free: 26.49 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/6.182, allocations: 4 kB / 3.921 GB, free: 26.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/6.182, allocations: 3.281 kB / 3.921 GB, free: 26.49 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/6.182, allocations: 3.234 kB / 3.921 GB, free: 26.49 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004014/6.182, allocations: 479.2 kB / 3.922 GB, free: 26.04 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005765/6.183, allocations: 0.8906 MB / 3.922 GB, free: 25.22 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/6.183, allocations: 149.3 kB / 3.923 GB, free: 25.07 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.951e-05/6.183, allocations: 7.688 kB / 3.923 GB, free: 25.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/6.183, allocations: 11.09 kB / 3.923 GB, free: 25.06 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/6.183, allocations: 11.64 kB / 3.923 GB, free: 25.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/6.183, allocations: 4 kB / 3.923 GB, free: 25.05 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0002835/6.184, allocations: 346.8 kB / 3.923 GB, free: 24.82 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004781/6.188, allocations: 1.347 MB / 3.924 GB, free: 23.78 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004704/6.193, allocations: 1.826 MB / 3.926 GB, free: 22.39 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0002758/6.193, allocations: 186.5 kB / 3.926 GB, free: 22.28 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/6.193, allocations: 256 / 3.926 GB, free: 22.28 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 2.114e-05/6.194, allocations: 21.97 kB / 3.926 GB, free: 22.27 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/6.195, allocations: 219.1 kB / 3.926 GB, free: 22.15 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009355/6.196, allocations: 0.5976 MB / 3.927 GB, free: 21.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/6.196, allocations: 0.9438 MB / 3.928 GB, free: 20.73 MB / 0.573 GB Notification: Performance of SimCode: time 2.61e-07/6.196, allocations: 0 / 3.928 GB, free: 20.73 MB / 0.573 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestCoeffValve.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoeffValve.pipe 2>&1)