Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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: translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005368/0.005368, allocations: 98.27 kB / 15.73 MB, free: 6.004 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.001367/0.001367, allocations: 198 kB / 16.67 MB, free: 5.922 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 4.133 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7526/0.7526, allocations: 93.69 MB / 384.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002503/0.002503, allocations: 87.86 kB / 0.5204 GB, free: 5.773 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1328, allocations: 68.26 MB / 0.5871 GB, free: 1.434 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5318/0.6647, allocations: 225.1 MB / 0.8069 GB, free: 1.004 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03419/0.6989, allocations: 25.05 MB / 0.8314 GB, free: 7.875 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00247/0.7014, allocations: 79.5 kB / 0.8314 GB, free: 7.797 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004704/0.7062, allocations: 1.674 MB / 0.8331 GB, free: 6.113 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.007645/0.7139, allocations: 2.637 MB / 0.8357 GB, free: 3.461 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005319/0.7192, allocations: 1.894 MB / 0.8375 GB, free: 1.562 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.006/0.7252, allocations: 4.096 MB / 0.8415 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.7271, allocations: 1.129 MB / 0.8426 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003089/0.7302, allocations: 1.65 MB / 0.8442 GB, free: 10.63 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004085/0.7343, allocations: 2.114 MB / 0.8463 GB, free: 8.512 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0007196/0.735, allocations: 319.9 kB / 0.8466 GB, free: 8.199 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008148/0.7432, allocations: 3.361 MB / 0.8499 GB, free: 4.832 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0009273/0.7442, allocations: 0.654 MB / 0.8505 GB, free: 4.176 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002235/0.7464, allocations: 1.505 MB / 0.852 GB, free: 2.664 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.3819/1.128, allocations: 4.841 MB / 0.8567 GB, free: 17.05 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/1.128, allocations: 1.688 kB / 0.8567 GB, free: 17.05 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.305e-06/1.128, allocations: 0 / 0.8567 GB, free: 17.05 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001373/1.129, allocations: 0.5 kB / 0.8567 GB, free: 17.05 MB / 0.6856 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.009476/1.138, allocations: 3.461 MB / 0.8601 GB, free: 15.47 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/1.138, allocations: 10.16 kB / 0.8601 GB, free: 15.47 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009566/1.139, allocations: 309.8 kB / 0.8604 GB, free: 15.31 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00401/1.143, allocations: 1.803 MB / 0.8621 GB, free: 14.81 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/1.143, allocations: 147.4 kB / 0.8623 GB, free: 14.81 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003642/1.144, allocations: 206.9 kB / 0.8625 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004886/1.148, allocations: 2.339 MB / 0.8648 GB, free: 14.67 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.544e-05/1.149, allocations: 1 kB / 0.8648 GB, free: 14.67 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/1.149, allocations: 75.5 kB / 0.8648 GB, free: 14.67 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/1.149, allocations: 74.48 kB / 0.8649 GB, free: 14.67 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004128/1.153, allocations: 2.24 MB / 0.8671 GB, free: 14.65 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01295/1.166, allocations: 10.26 MB / 0.8771 GB, free: 9.277 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003295/1.169, allocations: 1.909 MB / 0.879 GB, free: 9.199 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001881/1.171, allocations: 1.069 MB / 0.88 GB, free: 9.18 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008544/1.18, allocations: 6.608 MB / 0.8865 GB, free: 20.64 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002017/1.182, allocations: 1.072 MB / 0.8875 GB, free: 20.55 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=193): time 4.619e-06/1.182, allocations: 0.75 kB / 0.8875 GB, free: 20.55 MB / 0.7012 GB Notification: Performance of matching and sorting (n=198): time 0.01484/1.197, allocations: 6.586 MB / 0.894 GB, free: 18.67 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/1.197, allocations: 101.1 kB / 0.8941 GB, free: 18.57 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002279/1.199, allocations: 1.419 MB / 0.8954 GB, free: 18.41 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0002867/1.199, allocations: 61.39 kB / 0.8955 GB, free: 18.38 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000785/1.2, allocations: 0.954 MB / 0.8964 GB, free: 18.05 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005339/1.201, allocations: 0.692 MB / 0.8971 GB, free: 17.59 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005286/1.201, allocations: 293.2 kB / 0.8974 GB, free: 17.57 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001544/1.201, allocations: 305.3 kB / 0.8977 GB, free: 17.28 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/1.203, allocations: 0.6885 MB / 0.8984 GB, free: 17.27 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/1.204, allocations: 0.8476 MB / 0.8992 GB, free: 17.18 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007068/1.211, allocations: 2.563 MB / 0.9017 GB, free: 16.95 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/1.211, allocations: 1.156 kB / 0.9017 GB, free: 16.95 MB / 0.7012 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004666/1.216, allocations: 2.457 MB / 0.9041 GB, free: 16.69 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-05/1.216, allocations: 61.72 kB / 0.9041 GB, free: 16.62 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/1.216, allocations: 3.469 kB / 0.9041 GB, free: 16.62 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/1.218, allocations: 474.5 kB / 0.9046 GB, free: 16.61 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/1.219, allocations: 322.4 kB / 0.9049 GB, free: 16.6 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008066/1.227, allocations: 6.447 MB / 0.9112 GB, free: 13.67 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002346/1.229, allocations: 63.05 kB / 0.9113 GB, free: 13.67 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/1.23, allocations: 75.03 kB / 0.9113 GB, free: 13.67 MB / 0.7012 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.00141/1.231, allocations: 486.2 kB / 0.9118 GB, free: 13.55 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004547/1.231, allocations: 218.3 kB / 0.912 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005461/1.237, allocations: 3.136 MB / 0.9151 GB, free: 13.13 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/1.237, allocations: 20.72 kB / 0.9151 GB, free: 13.13 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/1.237, allocations: 6.656 kB / 0.9151 GB, free: 13.13 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-05/1.237, allocations: 11.52 kB / 0.9151 GB, free: 13.13 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008815/1.246, allocations: 5.243 MB / 0.9202 GB, free: 12.56 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/1.246, allocations: 1.953 kB / 0.9202 GB, free: 12.56 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/1.247, allocations: 314.6 kB / 0.9205 GB, free: 12.56 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/1.249, allocations: 493.7 kB / 0.921 GB, free: 12.52 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001916/1.249, allocations: 70.94 kB / 0.9211 GB, free: 12.52 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00768/1.256, allocations: 6.455 MB / 0.9274 GB, free: 9.582 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/1.256, allocations: 6.078 kB / 0.9274 GB, free: 9.582 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006751/1.263, allocations: 3.694 MB / 0.931 GB, free: 9.074 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/1.265, allocations: 0.5001 MB / 0.9315 GB, free: 8.855 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000435/1.265, allocations: 48.69 kB / 0.9315 GB, free: 8.855 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.266, allocations: 57.95 kB / 0.9316 GB, free: 8.855 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004507/1.267, allocations: 178.6 kB / 0.9317 GB, free: 8.848 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/1.267, allocations: 74.69 kB / 0.9318 GB, free: 8.848 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001392/1.268, allocations: 1.017 MB / 0.9328 GB, free: 8.738 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.51e-07/1.268, allocations: 0 / 0.9328 GB, free: 8.738 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003316/1.272, allocations: 0.9019 MB / 0.9337 GB, free: 8.66 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.001694/1.273, allocations: 0.9389 MB / 0.9346 GB, free: 8.426 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004598/1.278, allocations: 2.429 MB / 0.937 GB, free: 7.98 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.278, allocations: 0 / 0.937 GB, free: 7.98 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002833/1.281, allocations: 1.537 MB / 0.9385 GB, free: 7.699 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003693/1.285, allocations: 0.6671 MB / 0.9391 GB, free: 7.613 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007255/1.292, allocations: 4.394 MB / 0.9434 GB, free: 5.836 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/1.293, allocations: 1.582 MB / 0.945 GB, free: 5.07 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001781/1.295, allocations: 444.1 kB / 0.9454 GB, free: 4.941 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005081/1.295, allocations: 189 kB / 0.9456 GB, free: 4.934 MB / 0.7012 GB Notification: Performance of SimCode: time 8.52e-07/1.295, allocations: 0 / 0.9456 GB, free: 4.934 MB / 0.7012 GB Notification: Performance of Templates: time 0.07855/1.374, allocations: 45.85 MB / 0.9903 GB, free: 11.33 MB / 0.7481 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches