Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.Switch,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 198 kB / 16.14 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7257/0.7257, allocations: 89.53 MB / 379.5 MB, free: 11.3 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 76.89 kB / 457.7 MB, free: 23.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1481, allocations: 67.32 MB / 0.5127 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.479/0.6271, allocations: 224.7 MB / 0.7321 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02627/0.6535, allocations: 25.29 MB / 0.7568 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002607/0.6561, allocations: 35.88 kB / 0.7569 GB, free: 9.184 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003638/0.6598, allocations: 1.497 MB / 0.7583 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006005/0.6658, allocations: 2.339 MB / 0.7606 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004793/0.6706, allocations: 1.651 MB / 0.7622 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.005936/0.6766, allocations: 4.557 MB / 0.7667 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.6782, allocations: 1 MB / 0.7676 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002617/0.6808, allocations: 1.335 MB / 0.7689 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002948/0.6838, allocations: 2.009 MB / 0.7709 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004131/0.6842, allocations: 176 kB / 0.7711 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007073/0.6913, allocations: 3.228 MB / 0.7742 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006356/0.692, allocations: 0.5018 MB / 0.7747 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001761/0.6938, allocations: 1.306 MB / 0.776 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006476/0.7002, allocations: 4.387 MB / 0.7803 GB, free: 1.074 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.7003, allocations: 4 kB / 0.7803 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.032e-06/0.7003, allocations: 0 / 0.7803 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.338e-05/0.7003, allocations: 0 / 0.7803 GB, free: 1.07 MB / 0.5762 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.006027/0.7063, allocations: 3.077 MB / 0.7833 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.7064, allocations: 12.03 kB / 0.7833 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002994/0.7067, allocations: 274.7 kB / 0.7836 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004327/0.7071, allocations: 257.8 kB / 0.7838 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.7088, allocations: 1.247 MB / 0.785 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.023e-05/0.7089, allocations: 144.2 kB / 0.7852 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002765/0.7092, allocations: 212.4 kB / 0.7854 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003686/0.7129, allocations: 2.336 MB / 0.7876 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/0.7129, allocations: 3.938 kB / 0.7876 GB, free: 9.359 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000157/0.7131, allocations: 80 kB / 0.7877 GB, free: 9.281 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.64e-05/0.7132, allocations: 70.69 kB / 0.7878 GB, free: 9.211 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003494/0.7167, allocations: 2.237 MB / 0.79 GB, free: 6.969 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.7292, allocations: 10.18 MB / 0.7999 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003426/0.7327, allocations: 1.907 MB / 0.8018 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.7344, allocations: 1.065 MB / 0.8028 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008129/0.7425, allocations: 6.61 MB / 0.8093 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001877/0.7444, allocations: 1.064 MB / 0.8103 GB, free: 356 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 3.106e-06/0.7444, allocations: 0 / 0.8103 GB, free: 356 kB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.01196/0.7564, allocations: 6.383 MB / 0.8165 GB, free: 9.754 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.46e-05/0.7565, allocations: 103 kB / 0.8166 GB, free: 9.637 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.7579, allocations: 1.129 MB / 0.8177 GB, free: 8.5 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.758, allocations: 61.7 kB / 0.8178 GB, free: 8.434 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006469/0.7587, allocations: 0.7872 MB / 0.8186 GB, free: 7.637 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004928/0.7592, allocations: 0.6584 MB / 0.8192 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004494/0.7596, allocations: 299.5 kB / 0.8195 GB, free: 6.672 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.963e-05/0.7597, allocations: 305.1 kB / 0.8198 GB, free: 6.371 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.761, allocations: 0.6872 MB / 0.8205 GB, free: 5.684 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.7623, allocations: 0.8488 MB / 0.8213 GB, free: 4.809 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006625/0.769, allocations: 2.563 MB / 0.8238 GB, free: 2.191 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.769, allocations: 4 kB / 0.8238 GB, free: 2.188 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.1873/0.9563, allocations: 2.412 MB / 0.8262 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.033e-05/0.9564, allocations: 60.48 kB / 0.8262 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.9564, allocations: 4.266 kB / 0.8262 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/0.9579, allocations: 472.1 kB / 0.8267 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.9595, allocations: 322.1 kB / 0.827 GB, free: 242.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006375/0.9658, allocations: 5.943 MB / 0.8328 GB, free: 239.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.9673, allocations: 128.2 kB / 0.8329 GB, free: 239 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.9675, allocations: 74.66 kB / 0.833 GB, free: 239 MB / 0.6231 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 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1,pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (173): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.000782/0.9683, allocations: 457.2 kB / 0.8334 GB, free: 238.7 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/0.9686, allocations: 170.5 kB / 0.8336 GB, free: 238.7 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/0.9735, allocations: 3.115 MB / 0.8366 GB, free: 237.4 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.9736, allocations: 20.94 kB / 0.8366 GB, free: 237.4 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.9736, allocations: 6.438 kB / 0.8366 GB, free: 237.4 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/0.9736, allocations: 12.77 kB / 0.8367 GB, free: 237.4 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008595/0.9822, allocations: 5.156 MB / 0.8417 GB, free: 235 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.9823, allocations: 4.484 kB / 0.8417 GB, free: 235 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.9834, allocations: 308.6 kB / 0.842 GB, free: 235 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001447/0.9849, allocations: 490.4 kB / 0.8425 GB, free: 234.8 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001546/0.9851, allocations: 70.2 kB / 0.8425 GB, free: 234.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00657/0.9916, allocations: 5.965 MB / 0.8483 GB, free: 230.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.9917, allocations: 4.953 kB / 0.8483 GB, free: 230.5 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006814/0.9985, allocations: 3.633 MB / 0.8519 GB, free: 228.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.9996, allocations: 473.2 kB / 0.8523 GB, free: 228.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002771/0.9999, allocations: 50.27 kB / 0.8524 GB, free: 228.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/1.001, allocations: 130 kB / 0.8525 GB, free: 228.4 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004788/1.002, allocations: 165.8 kB / 0.8527 GB, free: 228.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001654/1.002, allocations: 76.5 kB / 0.8528 GB, free: 228.3 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001163/1.003, allocations: 0.8242 MB / 0.8536 GB, free: 228 MB / 0.6231 GB Notification: Performance of sort global known variables: time 7.11e-07/1.003, allocations: 3.938 kB / 0.8536 GB, free: 228 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003199/1.006, allocations: 0.9028 MB / 0.8544 GB, free: 227.8 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (170): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.007574/1.014, allocations: 5.02 MB / 0.8593 GB, free: 225.5 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003726/1.018, allocations: 2.416 MB / 0.8617 GB, free: 224.3 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/1.018, allocations: 3.938 kB / 0.8617 GB, free: 224.3 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002282/1.02, allocations: 1.538 MB / 0.8632 GB, free: 223.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002725/1.023, allocations: 0.5932 MB / 0.8638 GB, free: 223.4 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02039/1.043, allocations: 17.92 MB / 0.8813 GB, free: 209.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006914/1.044, allocations: 1.486 MB / 0.8827 GB, free: 208 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001283/1.045, allocations: 404.2 kB / 0.8831 GB, free: 207.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008398/1.046, allocations: 0.8468 MB / 0.8839 GB, free: 206.7 MB / 0.6231 GB Notification: Performance of SimCode: time 5.31e-07/1.046, allocations: 4 kB / 0.884 GB, free: 206.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.066/1.112, allocations: 60.79 MB / 0.9433 GB, free: 146.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/1.112, allocations: 222.8 kB / 0.9435 GB, free: 146.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.169/4.282, allocations: 3.938 kB / 0.9435 GB, free: 146.1 MB / 0.6231 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_Switch.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)