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.008535/0.008535, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.00197/0.00197, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7192/0.7192, allocations: 91.2 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 80.16 kB / 0.5164 GB, free: 9.512 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.14, allocations: 67.68 MB / 0.5825 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.575/0.715, allocations: 225.1 MB / 0.8023 GB, free: 7.156 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03091/0.746, allocations: 25.01 MB / 0.8267 GB, free: 14.07 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003237/0.7492, allocations: 79.5 kB / 0.8267 GB, free: 14 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005416/0.7547, allocations: 1.662 MB / 0.8284 GB, free: 12.32 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.007836/0.7626, allocations: 2.606 MB / 0.8309 GB, free: 9.703 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005253/0.7679, allocations: 1.912 MB / 0.8328 GB, free: 7.785 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.00545/0.7734, allocations: 4.003 MB / 0.8367 GB, free: 3.766 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002252/0.7756, allocations: 1.131 MB / 0.8378 GB, free: 2.602 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003041/0.7787, allocations: 1.662 MB / 0.8394 GB, free: 0.9297 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3915/1.17, allocations: 2.096 MB / 0.8415 GB, free: 8.18 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0009554/1.171, allocations: 313.1 kB / 0.8418 GB, free: 8.18 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007449/1.179, allocations: 3.367 MB / 0.8451 GB, free: 8.18 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0008342/1.18, allocations: 0.6559 MB / 0.8457 GB, free: 8.18 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002179/1.182, allocations: 1.505 MB / 0.8472 GB, free: 8.18 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01089/1.193, allocations: 4.801 MB / 0.8519 GB, free: 7.98 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/1.193, allocations: 0.5 kB / 0.8519 GB, free: 7.98 MB / 0.67 GB Notification: Performance of FrontEnd: time 5.871e-06/1.193, allocations: 0.5312 kB / 0.8519 GB, free: 7.98 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0002219/1.193, allocations: 5.672 kB / 0.8519 GB, free: 7.98 MB / 0.67 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.0102/1.203, allocations: 3.343 MB / 0.8551 GB, free: 6.484 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/1.203, allocations: 9.844 kB / 0.8551 GB, free: 6.484 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003845/1.204, allocations: 277.3 kB / 0.8554 GB, free: 6.438 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007304/1.204, allocations: 291.3 kB / 0.8557 GB, free: 6.289 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003063/1.207, allocations: 1.747 MB / 0.8574 GB, free: 5.809 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/1.208, allocations: 147.1 kB / 0.8575 GB, free: 5.805 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003853/1.208, allocations: 208.3 kB / 0.8577 GB, free: 5.797 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004304/1.212, allocations: 2.336 MB / 0.86 GB, free: 5.668 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.112e-05/1.212, allocations: 1.594 kB / 0.86 GB, free: 5.668 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002487/1.213, allocations: 81.44 kB / 0.8601 GB, free: 5.668 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/1.213, allocations: 72.02 kB / 0.8601 GB, free: 5.664 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004126/1.217, allocations: 2.244 MB / 0.8623 GB, free: 5.645 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01656/1.233, allocations: 10.22 MB / 0.8723 GB, free: 16.29 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/1.237, allocations: 1.919 MB / 0.8742 GB, free: 16.21 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002229/1.239, allocations: 1.074 MB / 0.8752 GB, free: 16.18 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008808/1.248, allocations: 6.601 MB / 0.8817 GB, free: 11.65 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001795/1.25, allocations: 1.059 MB / 0.8827 GB, free: 11.56 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=193): time 4.969e-06/1.25, allocations: 0 / 0.8827 GB, free: 11.56 MB / 0.6856 GB Notification: Performance of matching and sorting (n=198): time 0.01456/1.265, allocations: 6.512 MB / 0.8891 GB, free: 9.75 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/1.265, allocations: 97.83 kB / 0.8892 GB, free: 9.656 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00216/1.267, allocations: 1.4 MB / 0.8905 GB, free: 9.492 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002736/1.267, allocations: 58.52 kB / 0.8906 GB, free: 9.461 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007238/1.268, allocations: 0.9282 MB / 0.8915 GB, free: 9.145 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006015/1.268, allocations: 0.6555 MB / 0.8921 GB, free: 8.715 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005995/1.269, allocations: 296.5 kB / 0.8924 GB, free: 8.691 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 9.388e-05/1.269, allocations: 304.4 kB / 0.8927 GB, free: 8.395 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/1.271, allocations: 0.69 MB / 0.8934 GB, free: 8.391 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/1.272, allocations: 0.8476 MB / 0.8942 GB, free: 8.301 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007432/1.279, allocations: 2.559 MB / 0.8967 GB, free: 8.074 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.032e-05/1.28, allocations: 6.844 kB / 0.8967 GB, free: 8.074 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.007147/1.287, allocations: 2.448 MB / 0.8991 GB, free: 7.812 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.287, allocations: 64.7 kB / 0.8992 GB, free: 7.75 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/1.287, allocations: 3.906 kB / 0.8992 GB, free: 7.75 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001837/1.289, allocations: 471.1 kB / 0.8996 GB, free: 7.727 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/1.29, allocations: 324.9 kB / 0.8999 GB, free: 7.727 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008807/1.299, allocations: 6.444 MB / 0.9062 GB, free: 4.801 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/1.301, allocations: 67.53 kB / 0.9063 GB, free: 4.801 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005228/1.302, allocations: 68.48 kB / 0.9064 GB, free: 4.801 MB / 0.6856 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.001533/1.303, allocations: 484 kB / 0.9068 GB, free: 4.68 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007112/1.304, allocations: 203.3 kB / 0.907 GB, free: 4.574 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006395/1.31, allocations: 3.131 MB / 0.9101 GB, free: 4.27 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/1.31, allocations: 19.5 kB / 0.9101 GB, free: 4.27 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.934e-05/1.31, allocations: 8.469 kB / 0.9101 GB, free: 4.27 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.012e-05/1.31, allocations: 11.5 kB / 0.9101 GB, free: 4.27 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/1.321, allocations: 5.231 MB / 0.9152 GB, free: 3.695 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-05/1.321, allocations: 3.531 kB / 0.9152 GB, free: 3.695 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/1.322, allocations: 311.6 kB / 0.9155 GB, free: 3.695 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001876/1.324, allocations: 499.9 kB / 0.916 GB, free: 3.66 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002388/1.325, allocations: 63.09 kB / 0.9161 GB, free: 3.66 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008138/1.333, allocations: 6.464 MB / 0.9224 GB, free: 0.7148 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.333, allocations: 6.219 kB / 0.9224 GB, free: 0.7148 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007281/1.34, allocations: 3.681 MB / 0.926 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/1.341, allocations: 496.5 kB / 0.9264 GB, free: 14.74 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005998/1.342, allocations: 47.59 kB / 0.9265 GB, free: 14.71 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/1.343, allocations: 59.14 kB / 0.9266 GB, free: 14.69 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004041/1.344, allocations: 175.4 kB / 0.9267 GB, free: 14.66 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/1.344, allocations: 73.61 kB / 0.9268 GB, free: 14.64 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001608/1.346, allocations: 0.995 MB / 0.9278 GB, free: 14.26 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.31e-07/1.346, allocations: 0 / 0.9278 GB, free: 14.26 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003574/1.349, allocations: 0.8947 MB / 0.9286 GB, free: 14.06 MB / 0.7012 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.009298/1.359, allocations: 5.055 MB / 0.9336 GB, free: 11.63 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005469/1.364, allocations: 2.419 MB / 0.9359 GB, free: 9.562 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.364, allocations: 4.062 kB / 0.9359 GB, free: 9.559 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.003321/1.367, allocations: 1.538 MB / 0.9374 GB, free: 8.195 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/1.372, allocations: 0.6603 MB / 0.9381 GB, free: 7.668 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03461/1.406, allocations: 16.59 MB / 0.9543 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001832/1.408, allocations: 1.569 MB / 0.9558 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002336/1.411, allocations: 436.7 kB / 0.9562 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/1.412, allocations: 0.9757 MB / 0.9572 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of SimCode: time 1.643e-06/1.413, allocations: 0 / 0.9572 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1222/1.535, allocations: 67.54 MB / 1.023 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/15.19, allocations: 3.859 kB / 1.023 GB, free: 1.375 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)