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 dev (/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: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 100.5 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001565/0.001566, allocations: 174.9 kB / 16.58 MB, free: 6.422 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.637/1.637, allocations: 223.2 MB / 240.6 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.807/0.807, allocations: 89.61 MB / 381.3 MB, free: 11.47 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003837, allocations: 14.02 kB / 460.6 MB, free: 24.3 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.188, allocations: 68.83 MB / 0.517 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.7055/0.8936, allocations: 207.6 MB / 0.7198 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03559/0.9292, allocations: 23.27 MB / 0.7425 GB, free: 4.477 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004511/0.9338, allocations: 35.94 kB / 0.7425 GB, free: 4.441 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00596/0.9398, allocations: 1.407 MB / 0.7439 GB, free: 3.027 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.9507, allocations: 2.376 MB / 0.7462 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006661/0.9574, allocations: 1.265 MB / 0.7475 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00833/0.9657, allocations: 4.053 MB / 0.7514 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003172/0.969, allocations: 0.8761 MB / 0.7523 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003973/0.973, allocations: 1.167 MB / 0.7534 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004558/0.9776, allocations: 1.791 MB / 0.7552 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001119/0.9787, allocations: 111.9 kB / 0.7553 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009549/0.9883, allocations: 2.749 MB / 0.758 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.9896, allocations: 402.1 kB / 0.7583 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001976/0.9916, allocations: 0.4966 MB / 0.7588 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008221/0.9998, allocations: 3.195 MB / 0.7619 GB, free: 480 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.9999, allocations: 0 / 0.7619 GB, free: 480 kB / 0.5606 GB Notification: Performance of FrontEnd: time 3.316e-06/0.9999, allocations: 0 / 0.7619 GB, free: 480 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001738/1, allocations: 0 / 0.7619 GB, free: 480 kB / 0.5606 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.009593/1.01, allocations: 2.679 MB / 0.7646 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/1.01, allocations: 12.03 kB / 0.7646 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/1.011, allocations: 260.8 kB / 0.7648 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003851/1.015, allocations: 1.2 MB / 0.766 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/1.015, allocations: 147.8 kB / 0.7661 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008797/1.016, allocations: 199.9 kB / 0.7663 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007556/1.024, allocations: 2.336 MB / 0.7686 GB, free: 9.496 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.876e-05/1.024, allocations: 0 / 0.7686 GB, free: 9.496 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000297/1.024, allocations: 76 kB / 0.7687 GB, free: 9.422 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/1.024, allocations: 82.62 kB / 0.7688 GB, free: 9.34 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004528/1.029, allocations: 2.249 MB / 0.7709 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01527/1.044, allocations: 10.2 MB / 0.7809 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003629/1.048, allocations: 1.942 MB / 0.7828 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002073/1.05, allocations: 1.053 MB / 0.7838 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009614/1.06, allocations: 6.614 MB / 0.7903 GB, free: 1.484 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002177/1.062, allocations: 1.064 MB / 0.7913 GB, free: 412 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=193): time 5.53e-06/1.062, allocations: 4 kB / 0.7913 GB, free: 408 kB / 0.5919 GB Notification: Performance of matching and sorting (n=198): time 0.01444/1.076, allocations: 6.415 MB / 0.7976 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/1.077, allocations: 103 kB / 0.7977 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/1.079, allocations: 1.121 MB / 0.7988 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001786/1.079, allocations: 65.69 kB / 0.7989 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001103/1.08, allocations: 0.7834 MB / 0.7996 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009212/1.081, allocations: 0.6622 MB / 0.8003 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/1.081, allocations: 36 kB / 0.8003 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000294/1.082, allocations: 369.9 kB / 0.8007 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/1.083, allocations: 0.6911 MB / 0.8013 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001769/1.085, allocations: 0.8528 MB / 0.8022 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/1.087, allocations: 0.8598 MB / 0.803 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.398e-05/1.087, allocations: 4 kB / 0.803 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006036/1.093, allocations: 2.414 MB / 0.8054 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/1.093, allocations: 63.39 kB / 0.8054 GB, free: 1.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-05/1.093, allocations: 7.938 kB / 0.8054 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/1.095, allocations: 457.4 kB / 0.8059 GB, free: 1.164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/1.096, allocations: 335.5 kB / 0.8062 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4189/1.515, allocations: 5.94 MB / 0.812 GB, free: 223.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/1.517, allocations: 137.4 kB / 0.8121 GB, free: 223.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/1.518, allocations: 72.75 kB / 0.8122 GB, free: 223.2 MB / 0.6075 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 (173): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.001118/1.519, allocations: 454 kB / 0.8126 GB, free: 222.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003331/1.519, allocations: 167.7 kB / 0.8128 GB, free: 222.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00616/1.525, allocations: 3.131 MB / 0.8158 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-05/1.525, allocations: 20.88 kB / 0.8159 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-05/1.525, allocations: 7.062 kB / 0.8159 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.26e-05/1.525, allocations: 10.67 kB / 0.8159 GB, free: 221.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008784/1.534, allocations: 5.164 MB / 0.8209 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/1.534, allocations: 7.297 kB / 0.8209 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/1.536, allocations: 313.6 kB / 0.8212 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/1.537, allocations: 498.4 kB / 0.8217 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/1.537, allocations: 69.88 kB / 0.8218 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007251/1.545, allocations: 5.946 MB / 0.8276 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.545, allocations: 6.406 kB / 0.8276 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00751/1.552, allocations: 3.65 MB / 0.8311 GB, free: 213 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0013/1.553, allocations: 482 kB / 0.8316 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003069/1.554, allocations: 49.67 kB / 0.8317 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/1.555, allocations: 138 kB / 0.8318 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004637/1.555, allocations: 173 kB / 0.8319 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002117/1.556, allocations: 75.64 kB / 0.832 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001722/1.557, allocations: 0.81 MB / 0.8328 GB, free: 212.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.81e-07/1.557, allocations: 0 / 0.8328 GB, free: 212.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.004281/1.562, allocations: 0.891 MB / 0.8337 GB, free: 212.1 MB / 0.6075 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 (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.002027/1.564, allocations: 0.9809 MB / 0.8346 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00513/1.569, allocations: 2.432 MB / 0.837 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/1.569, allocations: 0 / 0.837 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003096/1.572, allocations: 1.526 MB / 0.8385 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003612/1.576, allocations: 0.5854 MB / 0.8391 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007926/1.584, allocations: 4.877 MB / 0.8438 GB, free: 206.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009843/1.585, allocations: 1.482 MB / 0.8453 GB, free: 206.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008778/1.586, allocations: 190.1 kB / 0.8455 GB, free: 206.1 MB / 0.6075 GB Notification: Performance of SimCode: time 9.91e-07/1.586, allocations: 0 / 0.8455 GB, free: 206.1 MB / 0.6075 GB Notification: Performance of Templates: time 0.07011/1.656, allocations: 55.61 MB / 0.8998 GB, free: 155.3 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppThermofluidStream_ThermofluidStream.FlowControl.Tests.SwitchCalcHelperMain.o OMCppThermofluidStream_ThermofluidStream.FlowControl.Tests.SwitchCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermofluidStream_ThermofluidStream.FlowControl.Tests.SwitchCalcHelperMain.o] Error 1