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.0008385/0.0008386, allocations: 180.6 kB / 15.45 MB, free: 6.227 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.192/1.192, allocations: 205 MB / 221.2 MB, free: 1.848 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006437/0.0006437, allocations: 86.25 kB / 269.2 MB, free: 1.793 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4908/0.4908, allocations: 90.52 MB / 407.6 MB, free: 15.1 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002785, allocations: 8 kB / 484.3 MB, free: 3.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.0997, allocations: 65.83 MB / 0.5372 GB, free: 1.602 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4019/0.5017, allocations: 221.7 MB / 0.7538 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2957/0.7974, allocations: 24.81 MB / 0.778 GB, free: 0.8477 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003036/0.8005, allocations: 35.66 kB / 0.778 GB, free: 0.8477 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004588/0.8051, allocations: 1.472 MB / 0.7795 GB, free: 0.8086 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.007521/0.8126, allocations: 2.274 MB / 0.7817 GB, free: 0.707 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005226/0.8179, allocations: 1.633 MB / 0.7833 GB, free: 0.6523 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.006829/0.8247, allocations: 4.396 MB / 0.7876 GB, free: 0.6484 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001937/0.8267, allocations: 0.9682 MB / 0.7885 GB, free: 16.4 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003234/0.8299, allocations: 1.153 MB / 0.7896 GB, free: 16.39 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004044/0.834, allocations: 1.775 MB / 0.7914 GB, free: 16.39 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0007835/0.8348, allocations: 100.1 kB / 0.7915 GB, free: 16.39 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008685/0.8435, allocations: 3.263 MB / 0.7946 GB, free: 16.32 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0007831/0.8443, allocations: 394.4 kB / 0.795 GB, free: 16.32 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002045/0.8463, allocations: 1.115 MB / 0.7961 GB, free: 16.32 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.007323/0.8537, allocations: 4.188 MB / 0.8002 GB, free: 16.05 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.8537, allocations: 4 kB / 0.8002 GB, free: 16.05 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.695e-06/0.8537, allocations: 0 / 0.8002 GB, free: 16.05 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.561e-05/0.8537, allocations: 2.734 kB / 0.8002 GB, free: 16.05 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.00505/0.8588, allocations: 2.501 MB / 0.8027 GB, free: 14.77 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.8589, allocations: 8.031 kB / 0.8027 GB, free: 14.77 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000311/0.8592, allocations: 275.2 kB / 0.8029 GB, free: 14.73 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004508/0.8596, allocations: 244.9 kB / 0.8032 GB, free: 14.6 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.8611, allocations: 1.117 MB / 0.8042 GB, free: 14.21 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.8612, allocations: 141.1 kB / 0.8044 GB, free: 14.2 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002819/0.8615, allocations: 207.9 kB / 0.8046 GB, free: 14.2 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/0.8649, allocations: 2.345 MB / 0.8069 GB, free: 14.08 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/0.8649, allocations: 0 / 0.8069 GB, free: 14.08 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/0.8651, allocations: 80.44 kB / 0.8069 GB, free: 14.08 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.708e-05/0.8651, allocations: 74.84 kB / 0.807 GB, free: 14.08 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003718/0.8689, allocations: 2.266 MB / 0.8092 GB, free: 14.06 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009937/0.8788, allocations: 10.2 MB / 0.8192 GB, free: 8.535 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00289/0.8817, allocations: 2.125 MB / 0.8213 GB, free: 8.438 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.8832, allocations: 1.11 MB / 0.8223 GB, free: 8.406 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006503/0.8898, allocations: 6.634 MB / 0.8288 GB, free: 3.48 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001732/0.8915, allocations: 1.11 MB / 0.8299 GB, free: 3.172 MB / 0.573 GB Notification: Performance of pre-optimization done (n=199): time 3.266e-06/0.8915, allocations: 1.859 kB / 0.8299 GB, free: 3.172 MB / 0.573 GB Notification: Performance of matching and sorting (n=204): time 0.01065/0.9022, allocations: 6.517 MB / 0.8363 GB, free: 1.012 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.9023, allocations: 116.1 kB / 0.8364 GB, free: 0.9102 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009264/0.9032, allocations: 0.8382 MB / 0.8372 GB, free: 0.6445 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.9033, allocations: 62.77 kB / 0.8373 GB, free: 0.6133 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004547/0.9038, allocations: 0.71 MB / 0.838 GB, free: 224 kB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004741/0.9043, allocations: 0.6802 MB / 0.8386 GB, free: 15.73 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.853e-05/0.9044, allocations: 36.06 kB / 0.8387 GB, free: 15.73 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.9045, allocations: 370.2 kB / 0.839 GB, free: 15.4 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.9056, allocations: 0.7284 MB / 0.8397 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.9069, allocations: 0.891 MB / 0.8406 GB, free: 15.12 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006324/0.9132, allocations: 2.859 MB / 0.8434 GB, free: 14.53 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.9132, allocations: 0 / 0.8434 GB, free: 14.53 MB / 0.5886 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003873/0.9171, allocations: 2.478 MB / 0.8458 GB, free: 14.04 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.748e-05/0.9172, allocations: 62.67 kB / 0.8459 GB, free: 13.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.9172, allocations: 11.48 kB / 0.8459 GB, free: 13.96 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.9183, allocations: 461.6 kB / 0.8463 GB, free: 13.85 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.9194, allocations: 331 kB / 0.8466 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006615/0.926, allocations: 5.954 MB / 0.8524 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.9274, allocations: 135.8 kB / 0.8526 GB, free: 9.277 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.9275, allocations: 71.97 kB / 0.8526 GB, free: 9.207 MB / 0.5886 GB Warning: Assuming fixed start value for the following 1 variables: switch.tanValve.outlet.m_flow:VARIABLE(flow=true unit = "kg/s" fixed = true stateSelect=StateSelect.prefer ) "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 ($PRE.pulse.T_start,$PRE.pulse.count,$whenCondition1,pulse.T_start,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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000872/0.9284, allocations: 451.9 kB / 0.8531 GB, free: 8.773 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.9287, allocations: 142.2 kB / 0.8532 GB, free: 8.633 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005149/0.9339, allocations: 2.892 MB / 0.856 GB, free: 5.785 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.9339, allocations: 20 kB / 0.856 GB, free: 5.766 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.9339, allocations: 11.94 kB / 0.8561 GB, free: 5.754 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.9339, allocations: 11.95 kB / 0.8561 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00783/0.9418, allocations: 5.292 MB / 0.8612 GB, free: 488 kB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.9418, allocations: 4.125 kB / 0.8612 GB, free: 484 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.9429, allocations: 331.1 kB / 0.8616 GB, free: 168 kB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.9441, allocations: 476.3 kB / 0.862 GB, free: 15.69 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.9442, allocations: 71.95 kB / 0.8621 GB, free: 15.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006714/0.951, allocations: 5.97 MB / 0.8679 GB, free: 9.418 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.951, allocations: 0 / 0.8679 GB, free: 9.418 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006006/0.957, allocations: 3.842 MB / 0.8717 GB, free: 5.574 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007739/0.9578, allocations: 466.8 kB / 0.8721 GB, free: 5.098 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.958, allocations: 47.94 kB / 0.8722 GB, free: 5.051 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009834/0.959, allocations: 135.7 kB / 0.8723 GB, free: 4.918 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003331/0.9593, allocations: 180.1 kB / 0.8725 GB, free: 4.746 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.9595, allocations: 83.94 kB / 0.8725 GB, free: 4.664 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0006746/0.9601, allocations: 0.5873 MB / 0.8731 GB, free: 4.066 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9601, allocations: 0 / 0.8731 GB, free: 4.066 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002281/0.9624, allocations: 0.8785 MB / 0.874 GB, free: 3.188 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007815/0.9702, allocations: 5.271 MB / 0.8791 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.004076/0.9743, allocations: 2.548 MB / 0.8816 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.9744, allocations: 4 kB / 0.8816 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002503/0.9769, allocations: 1.624 MB / 0.8832 GB, free: 9.848 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/0.9791, allocations: 0.494 MB / 0.8837 GB, free: 9.363 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02203/1.001, allocations: 16.28 MB / 0.8996 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/1.002, allocations: 1.443 MB / 0.901 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001248/1.003, allocations: 382.5 kB / 0.9014 GB, free: 6.738 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009713/1.004, allocations: 0.7804 MB / 0.9021 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of SimCode: time 6.42e-07/1.004, allocations: 0 / 0.9021 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9136/1.918, allocations: 55.81 MB / 0.9566 GB, free: 14.56 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/1.918, allocations: 237.6 kB / 0.9568 GB, free: 14.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.55/5.468, allocations: 4 kB / 0.9568 GB, free: 14.3 MB / 0.698 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)