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.006434/0.006434, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001517/0.001517, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7486/0.7486, allocations: 91.2 MB / 381.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 79.88 kB / 0.5164 GB, free: 4.586 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3722, allocations: 67.68 MB / 0.5825 GB, free: 13.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5909/0.9631, allocations: 225.1 MB / 0.8022 GB, free: 400 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02584/0.989, allocations: 25.02 MB / 0.8267 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003691/0.9927, allocations: 79.22 kB / 0.8268 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004958/0.9978, allocations: 1.664 MB / 0.8284 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.009383/1.007, allocations: 2.605 MB / 0.8309 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006279/1.014, allocations: 1.898 MB / 0.8328 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006589/1.02, allocations: 4.012 MB / 0.8367 GB, free: 9.832 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002024/1.022, allocations: 1.129 MB / 0.8378 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003967/1.026, allocations: 1.658 MB / 0.8394 GB, free: 8.293 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004246/1.03, allocations: 2.114 MB / 0.8415 GB, free: 6.34 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001004/1.032, allocations: 312 kB / 0.8418 GB, free: 6.035 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008946/1.04, allocations: 3.365 MB / 0.8451 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001201/1.042, allocations: 0.6542 MB / 0.8457 GB, free: 2.559 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003587/1.045, allocations: 1.51 MB / 0.8472 GB, free: 1.074 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01178/1.057, allocations: 4.799 MB / 0.8519 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/1.057, allocations: 0 / 0.8519 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.753e-06/1.057, allocations: 0 / 0.8519 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001659/1.057, allocations: 4 kB / 0.8519 GB, free: 12.51 MB / 0.6075 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.01006/1.067, allocations: 3.339 MB / 0.8551 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/1.068, allocations: 8.031 kB / 0.8551 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008374/1.068, allocations: 278.6 kB / 0.8554 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/1.07, allocations: 288.5 kB / 0.8557 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004334/1.074, allocations: 1.754 MB / 0.8574 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/1.074, allocations: 154.3 kB / 0.8575 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007209/1.075, allocations: 195.9 kB / 0.8577 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005788/1.081, allocations: 2.342 MB / 0.86 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.438e-05/1.081, allocations: 0 / 0.86 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003166/1.081, allocations: 87.77 kB / 0.8601 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/1.081, allocations: 70.69 kB / 0.8602 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004697/1.086, allocations: 2.242 MB / 0.8624 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01552/1.101, allocations: 10.23 MB / 0.8723 GB, free: 6.758 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003532/1.105, allocations: 1.907 MB / 0.8742 GB, free: 4.844 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002031/1.107, allocations: 1.07 MB / 0.8752 GB, free: 3.77 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008728/1.116, allocations: 6.601 MB / 0.8817 GB, free: 12.4 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002053/1.118, allocations: 1.064 MB / 0.8827 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=193): time 5.59e-06/1.118, allocations: 0 / 0.8827 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of matching and sorting (n=198): time 0.01457/1.133, allocations: 6.515 MB / 0.8891 GB, free: 4.637 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/1.133, allocations: 105.6 kB / 0.8892 GB, free: 4.516 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002396/1.135, allocations: 1.392 MB / 0.8906 GB, free: 3.121 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0002555/1.135, allocations: 57.7 kB / 0.8906 GB, free: 3.059 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008818/1.136, allocations: 0.926 MB / 0.8915 GB, free: 2.121 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007544/1.137, allocations: 0.6591 MB / 0.8922 GB, free: 1.469 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007053/1.138, allocations: 299.6 kB / 0.8924 GB, free: 1.172 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.000152/1.138, allocations: 301.1 kB / 0.8927 GB, free: 0.875 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/1.139, allocations: 0.6833 MB / 0.8934 GB, free: 196 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/1.141, allocations: 0.8535 MB / 0.8942 GB, free: 15.31 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007588/1.149, allocations: 2.567 MB / 0.8967 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/1.149, allocations: 0 / 0.8967 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.0057/1.154, allocations: 2.446 MB / 0.8991 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.969e-05/1.154, allocations: 60.66 kB / 0.8992 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/1.154, allocations: 8 kB / 0.8992 GB, free: 10.19 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/1.156, allocations: 465.3 kB / 0.8996 GB, free: 9.727 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/1.158, allocations: 318.8 kB / 0.8999 GB, free: 9.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008672/1.166, allocations: 6.454 MB / 0.9062 GB, free: 2.727 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/1.168, allocations: 68.05 kB / 0.9063 GB, free: 2.66 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004556/1.168, allocations: 71.97 kB / 0.9064 GB, free: 2.59 MB / 0.6544 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.001447/1.17, allocations: 482.5 kB / 0.9068 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007501/1.171, allocations: 197.5 kB / 0.907 GB, free: 1.93 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007024/1.178, allocations: 3.121 MB / 0.9101 GB, free: 14.8 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.289e-05/1.178, allocations: 24 kB / 0.9101 GB, free: 14.77 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.91e-05/1.178, allocations: 11.94 kB / 0.9101 GB, free: 14.76 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.159e-05/1.178, allocations: 12.06 kB / 0.9101 GB, free: 14.75 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/1.189, allocations: 5.231 MB / 0.9152 GB, free: 9.516 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.076e-05/1.189, allocations: 4 kB / 0.9152 GB, free: 9.512 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/1.191, allocations: 303 kB / 0.9155 GB, free: 9.23 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/1.192, allocations: 0.4886 MB / 0.916 GB, free: 8.738 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003293/1.193, allocations: 67.95 kB / 0.9161 GB, free: 8.672 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008398/1.201, allocations: 6.462 MB / 0.9224 GB, free: 1.953 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/1.201, allocations: 4.031 kB / 0.9224 GB, free: 1.949 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007924/1.209, allocations: 3.679 MB / 0.926 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/1.211, allocations: 498.3 kB / 0.9264 GB, free: 13.75 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006136/1.211, allocations: 55.84 kB / 0.9265 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/1.213, allocations: 55.95 kB / 0.9266 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004699/1.213, allocations: 169.6 kB / 0.9267 GB, free: 13.48 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002298/1.213, allocations: 71.95 kB / 0.9268 GB, free: 13.41 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00194/1.215, allocations: 0.9967 MB / 0.9278 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.51e-07/1.215, allocations: 0 / 0.9278 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003414/1.219, allocations: 0.8941 MB / 0.9286 GB, free: 11.53 MB / 0.6856 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.009747/1.228, allocations: 5.066 MB / 0.9336 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.005165/1.234, allocations: 2.415 MB / 0.9359 GB, free: 4.055 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.234, allocations: 0 / 0.9359 GB, free: 4.055 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003184/1.237, allocations: 1.539 MB / 0.9374 GB, free: 2.527 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004202/1.241, allocations: 0.6611 MB / 0.9381 GB, free: 1.887 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03387/1.275, allocations: 16.59 MB / 0.9543 GB, free: 1.098 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001759/1.277, allocations: 1.573 MB / 0.9558 GB, free: 15.49 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001875/1.279, allocations: 439 kB / 0.9562 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/1.28, allocations: 0.9718 MB / 0.9572 GB, free: 14.12 MB / 0.7169 GB Notification: Performance of SimCode: time 1.022e-06/1.28, allocations: 0 / 0.9572 GB, free: 14.12 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1334/1.414, allocations: 67.53 MB / 1.023 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.07/16.49, allocations: 3.859 kB / 1.023 GB, free: 11.03 MB / 0.7794 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)