Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.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.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006081/0.006081, allocations: 167 kB / 15.13 MB, free: 6.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0008992/0.0008991, allocations: 86.3 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7599/0.7599, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000328/0.000328, allocations: 11.94 kB / 485.4 MB, free: 1.941 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.3814, allocations: 66.28 MB / 0.5387 GB, free: 45.14 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2136/0.595, allocations: 207.1 MB / 0.741 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.3528/0.9478, allocations: 23.1 MB / 0.7635 GB, free: 6.031 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002609/0.9505, allocations: 33.97 kB / 0.7636 GB, free: 6.031 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004424/0.9549, allocations: 1.4 MB / 0.7649 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.009612/0.9646, allocations: 2.314 MB / 0.7672 GB, free: 5.887 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005748/0.9704, allocations: 1.252 MB / 0.7684 GB, free: 5.844 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.00545/0.9758, allocations: 3.897 MB / 0.7722 GB, free: 5.844 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001865/0.9777, allocations: 0.8631 MB / 0.7731 GB, free: 21.71 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003028/0.9808, allocations: 1.107 MB / 0.7742 GB, free: 21.71 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003622/0.9844, allocations: 1.719 MB / 0.7758 GB, free: 21.7 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003735/0.9848, allocations: 99.44 kB / 0.7759 GB, free: 21.7 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007684/0.9925, allocations: 2.797 MB / 0.7787 GB, free: 21.63 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.9936, allocations: 375.5 kB / 0.779 GB, free: 21.63 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002293/0.9959, allocations: 491.6 kB / 0.7795 GB, free: 21.6 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.00829/1.004, allocations: 3.097 MB / 0.7825 GB, free: 21.35 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/1.004, allocations: 1.062 kB / 0.7825 GB, free: 21.35 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.985e-06/1.004, allocations: 4 kB / 0.7825 GB, free: 21.35 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001094/1.004, allocations: 0 / 0.7825 GB, free: 21.35 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.007465/1.012, allocations: 2.52 MB / 0.785 GB, free: 20.09 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/1.012, allocations: 10.78 kB / 0.785 GB, free: 20.09 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005657/1.013, allocations: 272.1 kB / 0.7852 GB, free: 20.04 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005944/1.013, allocations: 243.5 kB / 0.7855 GB, free: 19.92 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002004/1.015, allocations: 1.078 MB / 0.7865 GB, free: 19.56 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/1.015, allocations: 154 kB / 0.7867 GB, free: 19.55 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003614/1.016, allocations: 199.8 kB / 0.7869 GB, free: 19.55 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004626/1.02, allocations: 2.32 MB / 0.7891 GB, free: 19.45 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.228e-05/1.02, allocations: 4.969 kB / 0.7891 GB, free: 19.44 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/1.021, allocations: 72.75 kB / 0.7892 GB, free: 19.44 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001665/1.021, allocations: 81.62 kB / 0.7893 GB, free: 19.44 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005144/1.026, allocations: 2.256 MB / 0.7915 GB, free: 19.42 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01306/1.039, allocations: 10.2 MB / 0.8014 GB, free: 13.94 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003099/1.042, allocations: 2.104 MB / 0.8035 GB, free: 13.86 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001648/1.044, allocations: 1.1 MB / 0.8046 GB, free: 13.83 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007685/1.052, allocations: 6.641 MB / 0.8111 GB, free: 9.289 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001748/1.053, allocations: 1.102 MB / 0.8121 GB, free: 9.195 MB / 0.573 GB Notification: Performance of pre-optimization done (n=199): time 5.501e-06/1.053, allocations: 0 / 0.8121 GB, free: 9.195 MB / 0.573 GB Notification: Performance of matching and sorting (n=204): time 0.01305/1.066, allocations: 6.494 MB / 0.8185 GB, free: 7.5 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/1.067, allocations: 101.4 kB / 0.8186 GB, free: 7.406 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/1.068, allocations: 0.8472 MB / 0.8194 GB, free: 7.254 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001855/1.068, allocations: 59.36 kB / 0.8195 GB, free: 7.223 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005613/1.069, allocations: 0.7173 MB / 0.8202 GB, free: 6.902 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004381/1.069, allocations: 0.675 MB / 0.8208 GB, free: 6.402 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.069e-05/1.069, allocations: 33.47 kB / 0.8209 GB, free: 6.402 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001446/1.069, allocations: 375.5 kB / 0.8212 GB, free: 6.074 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/1.07, allocations: 0.7248 MB / 0.8219 GB, free: 5.988 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/1.072, allocations: 0.8799 MB / 0.8228 GB, free: 5.797 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/1.073, allocations: 0.8891 MB / 0.8236 GB, free: 5.688 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/1.073, allocations: 0 / 0.8236 GB, free: 5.688 MB / 0.573 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004372/1.078, allocations: 2.463 MB / 0.826 GB, free: 5.211 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 6.182e-05/1.078, allocations: 60.16 kB / 0.8261 GB, free: 5.148 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/1.078, allocations: 5.938 kB / 0.8261 GB, free: 5.148 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/1.079, allocations: 457.4 kB / 0.8265 GB, free: 5.035 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/1.08, allocations: 326.3 kB / 0.8269 GB, free: 4.98 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006797/1.087, allocations: 5.939 MB / 0.8327 GB, free: 1.891 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/1.089, allocations: 135.6 kB / 0.8328 GB, free: 1.852 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000229/1.089, allocations: 71.69 kB / 0.8329 GB, free: 1.844 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: flowResistance2.inlet.m_flow:VARIABLE(flow=true unit = "kg/s" fixed = true ) "mass flow rate" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$whenCondition2,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001181/1.09, allocations: 453.7 kB / 0.8333 GB, free: 1.707 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003236/1.091, allocations: 152.7 kB / 0.8334 GB, free: 1.625 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005941/1.097, allocations: 2.883 MB / 0.8363 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/1.097, allocations: 26.25 kB / 0.8363 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/1.097, allocations: 6.562 kB / 0.8363 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.799e-05/1.097, allocations: 11.95 kB / 0.8363 GB, free: 1.031 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00833/1.105, allocations: 5.271 MB / 0.8414 GB, free: 15.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/1.105, allocations: 3.656 kB / 0.8414 GB, free: 15.56 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/1.106, allocations: 342.1 kB / 0.8418 GB, free: 15.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/1.108, allocations: 474.1 kB / 0.8422 GB, free: 15.36 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001639/1.108, allocations: 71.8 kB / 0.8423 GB, free: 15.35 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006765/1.115, allocations: 5.958 MB / 0.8481 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.115, allocations: 4.062 kB / 0.8481 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006757/1.121, allocations: 3.824 MB / 0.8518 GB, free: 8.887 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/1.123, allocations: 462.2 kB / 0.8523 GB, free: 8.559 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/1.123, allocations: 46.5 kB / 0.8523 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/1.124, allocations: 136 kB / 0.8525 GB, free: 8.441 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/1.124, allocations: 188.4 kB / 0.8526 GB, free: 8.285 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/1.125, allocations: 77.7 kB / 0.8527 GB, free: 8.227 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007556/1.125, allocations: 0.5737 MB / 0.8533 GB, free: 7.789 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.3e-07/1.125, allocations: 4 kB / 0.8533 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003135/1.128, allocations: 0.8764 MB / 0.8541 GB, free: 7.031 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,flowResistance3.inlet.m_flow,flowResistance6.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,pulse.T_start,pulse.count,$whenCondition2,pulse1.T_start,pulse1.count) * Number of discrete states: 2 (pulse1.count,pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008286/1.137, allocations: 5.252 MB / 0.8593 GB, free: 3.25 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004592/1.141, allocations: 2.535 MB / 0.8617 GB, free: 1.449 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/1.141, allocations: 4 kB / 0.8617 GB, free: 1.445 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002749/1.144, allocations: 1.609 MB / 0.8633 GB, free: 320 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/1.147, allocations: 0.4992 MB / 0.8638 GB, free: 15.95 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01893/1.166, allocations: 11.26 MB / 0.8748 GB, free: 6.75 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/1.167, allocations: 1.441 MB / 0.8762 GB, free: 5.309 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001583/1.169, allocations: 372.6 kB / 0.8766 GB, free: 4.965 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009751/1.17, allocations: 0.7799 MB / 0.8773 GB, free: 4.773 MB / 0.6042 GB Notification: Performance of SimCode: time 9.32e-07/1.17, allocations: 0 / 0.8773 GB, free: 4.773 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09124/1.261, allocations: 55.45 MB / 0.9315 GB, free: 13.79 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/1.261, allocations: 218.2 kB / 0.9317 GB, free: 13.55 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.704/4.966, allocations: 8 kB / 0.9317 GB, free: 13.54 MB / 0.6667 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)