Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",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.003063/0.003063, allocations: 185.1 kB / 7.458 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.2 MB / 213.1 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.001003/0.001003, allocations: 97.11 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 1.068/1.068, allocations: 90.34 MB / 399.4 MB, free: 12.29 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1668/1.235, allocations: 72.4 MB / 471.8 MB, free: 3.723 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7074/1.942, allocations: 66.25 MB / 0.5254 GB, free: 28.85 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.024/2.966, allocations: 357 MB / 0.874 GB, free: 10.4 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003645/2.967, allocations: 81.02 kB / 0.8741 GB, free: 10.36 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 485 * Number of variables: 485 Notification: Performance of Generate backend data structure: time 1.808/4.775, allocations: 392.7 MB / 1.258 GB, free: 83 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/4.775, allocations: 9.406 kB / 1.258 GB, free: 83 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001647/4.777, allocations: 255.7 kB / 1.258 GB, free: 82.87 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004621/4.781, allocations: 1.074 MB / 1.259 GB, free: 82.04 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/4.782, allocations: 61.59 kB / 1.259 GB, free: 82.04 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003395/4.782, allocations: 116.2 kB / 1.259 GB, free: 82.04 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004055/4.786, allocations: 2.129 MB / 1.261 GB, free: 81.03 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003021/4.789, allocations: 1.654 MB / 1.263 GB, free: 80.17 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/4.789, allocations: 0 / 1.263 GB, free: 80.17 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/4.789, allocations: 0 / 1.263 GB, free: 80.17 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.998e-05/4.789, allocations: 55.39 kB / 1.263 GB, free: 80.16 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/4.805, allocations: 8.798 MB / 1.271 GB, free: 72.13 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003223/4.808, allocations: 1.778 MB / 1.273 GB, free: 71.37 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/4.81, allocations: 0.9721 MB / 1.274 GB, free: 70.91 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00882/4.819, allocations: 6.149 MB / 1.28 GB, free: 64.46 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001517/4.82, allocations: 0.952 MB / 1.281 GB, free: 63.5 MB / 0.573 GB Notification: Performance of pre-optimization done (n=216): time 5.681e-06/4.82, allocations: 0 / 1.281 GB, free: 63.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=216): time 0.009026/4.829, allocations: 2.525 MB / 1.283 GB, free: 60.96 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/4.829, allocations: 73.41 kB / 1.283 GB, free: 60.88 MB / 0.573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:28:3-29:92:writable] Warning: Parameter valveEqualPercentage.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:26:3-27:88:writable] Warning: Parameter valveEqualPercentage.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:24:3-25:88:writable] Warning: Parameter valveEqualPercentage.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:26:3-27:88:writable] Warning: Parameter valveParabolic.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:24:3-25:88:writable] Warning: Parameter valveParabolic.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:28:3-29:92:writable] Warning: Parameter valveLinear.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:26:3-27:88:writable] Warning: Parameter valveLinear.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:24:3-25:88:writable] Warning: Parameter valveLinear.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/4.831, allocations: 0.7244 MB / 1.284 GB, free: 60.14 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001591/4.832, allocations: 25.7 kB / 1.284 GB, free: 60.11 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006524/4.832, allocations: 0.5441 MB / 1.285 GB, free: 59.56 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009124/4.833, allocations: 0.6848 MB / 1.285 GB, free: 58.86 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/4.833, allocations: 0 / 1.285 GB, free: 58.86 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001516/4.833, allocations: 385.3 kB / 1.286 GB, free: 58.48 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/4.835, allocations: 0.6757 MB / 1.286 GB, free: 57.81 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/4.836, allocations: 0.8531 MB / 1.287 GB, free: 56.91 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006612/4.843, allocations: 1.342 MB / 1.289 GB, free: 55.58 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.166e-05/4.843, allocations: 4 kB / 1.289 GB, free: 55.58 MB / 0.573 GB Notification: Performance of matching and sorting (n=242) (initialization): time 0.01023/4.853, allocations: 2.656 MB / 1.291 GB, free: 52.92 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/4.853, allocations: 6.969 kB / 1.291 GB, free: 52.91 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/4.853, allocations: 4 kB / 1.291 GB, free: 52.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006571/4.854, allocations: 157.4 kB / 1.291 GB, free: 52.75 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/4.856, allocations: 414.7 kB / 1.292 GB, free: 52.35 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003864/4.86, allocations: 4.247 MB / 1.296 GB, free: 47.79 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002191/4.862, allocations: 160.6 kB / 1.296 GB, free: 47.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005498/4.863, allocations: 95.59 kB / 1.296 GB, free: 47.55 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007448/4.863, allocations: 134 kB / 1.296 GB, free: 47.41 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008653/4.864, allocations: 166 kB / 1.296 GB, free: 47.25 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/4.875, allocations: 3.463 MB / 1.3 GB, free: 43.78 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.863e-05/4.876, allocations: 28 kB / 1.3 GB, free: 43.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.432e-05/4.876, allocations: 7.688 kB / 1.3 GB, free: 43.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.021e-05/4.876, allocations: 22.44 kB / 1.3 GB, free: 43.73 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01502/4.891, allocations: 5.139 MB / 1.305 GB, free: 38.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/4.891, allocations: 0 / 1.305 GB, free: 38.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/4.892, allocations: 446.6 kB / 1.305 GB, free: 38.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006459/4.893, allocations: 157.4 kB / 1.305 GB, free: 37.96 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/4.893, allocations: 57.94 kB / 1.306 GB, free: 37.91 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/4.897, allocations: 4.258 MB / 1.31 GB, free: 33.33 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/4.897, allocations: 0 / 1.31 GB, free: 33.33 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0107/4.907, allocations: 3.903 MB / 1.313 GB, free: 29.32 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01257/4.92, allocations: 5.549 MB / 1.319 GB, free: 23.66 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001852/4.922, allocations: 0.5411 MB / 1.319 GB, free: 23.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006906/4.923, allocations: 11.84 kB / 1.319 GB, free: 23.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001834/4.925, allocations: 85.81 kB / 1.32 GB, free: 23.02 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003457/4.925, allocations: 161.7 kB / 1.32 GB, free: 22.86 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003826/4.925, allocations: 91.94 kB / 1.32 GB, free: 22.77 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001032/4.926, allocations: 0.532 MB / 1.32 GB, free: 22.23 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005631/4.932, allocations: 1.139 MB / 1.321 GB, free: 21.09 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valveLinear.rear.m_flow,valveParabolic.rear.m_flow,valveEqualPercentage.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (247): * Single equations (assignments): 236 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002932/4.935, allocations: 1.352 MB / 1.323 GB, free: 19.95 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004184/4.939, allocations: 2.262 MB / 1.325 GB, free: 17.63 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/4.939, allocations: 0 / 1.325 GB, free: 17.63 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002336/4.942, allocations: 1.469 MB / 1.326 GB, free: 16.14 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003325/4.945, allocations: 455.1 kB / 1.327 GB, free: 15.71 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008225/4.953, allocations: 2.731 MB / 1.329 GB, free: 13.04 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002303/4.956, allocations: 1.678 MB / 1.331 GB, free: 11.36 MB / 0.573 GB Notification: Performance of SimCode: time 2.074e-06/4.956, allocations: 0 / 1.331 GB, free: 11.36 MB / 0.573 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1)