Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 173.3 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.076/1.076, allocations: 177.1 MB / 203.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7078/0.7078, allocations: 118.6 MB / 378.6 MB, free: 1.5 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 483.6 MB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.098e-05/3.294e-05, allocations: 6.828 kB / 483.6 MB, free: 8.234 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.01405/0.01408, allocations: 12.84 MB / 496.4 MB, free: 15.58 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.02446, allocations: 3.914 MB / 0.4886 GB, free: 12.85 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003704/0.02816, allocations: 119.7 kB / 0.4887 GB, free: 12.78 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.03024, allocations: 375.4 kB / 0.4891 GB, free: 12.55 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006316/0.03656, allocations: 1.247 MB / 0.4903 GB, free: 11.68 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003824/0.04038, allocations: 0.7991 MB / 0.4911 GB, free: 11.24 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.006661/0.04704, allocations: 3.015 MB / 0.494 GB, free: 9.477 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.04811, allocations: 312.2 kB / 0.4943 GB, free: 9.172 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00403/0.05214, allocations: 1.612 MB / 0.4959 GB, free: 7.887 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001376/0.05352, allocations: 0.7784 MB / 0.4967 GB, free: 7.258 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003571/0.05387, allocations: 128 kB / 0.4968 GB, free: 7.133 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008991/0.05477, allocations: 301.6 kB / 0.4971 GB, free: 6.863 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000289/0.05506, allocations: 370.9 kB / 0.4974 GB, free: 6.551 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009105/0.05597, allocations: 0.6496 MB / 0.4981 GB, free: 5.949 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00246/0.05843, allocations: 1.762 MB / 0.4998 GB, free: 4.438 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.05844, allocations: 4 kB / 0.4998 GB, free: 4.434 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.05844, allocations: 0 / 0.4998 GB, free: 4.434 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.423e-05/0.05851, allocations: 4 kB / 0.4998 GB, free: 4.43 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003275/0.06179, allocations: 2.512 MB / 0.5023 GB, free: 1.867 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.06184, allocations: 12.03 kB / 0.5023 GB, free: 1.855 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006234/0.06246, allocations: 395 kB / 0.5026 GB, free: 1.469 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.06421, allocations: 1.433 MB / 0.504 GB, free: 15.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.005e-05/0.06427, allocations: 86.7 kB / 0.5041 GB, free: 15.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.06439, allocations: 132.3 kB / 0.5043 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.06557, allocations: 1.003 MB / 0.5052 GB, free: 14.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.06559, allocations: 4.125 kB / 0.5052 GB, free: 14.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.288e-05/0.06565, allocations: 51.94 kB / 0.5053 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.06568, allocations: 32 kB / 0.5053 GB, free: 14.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007943/0.06647, allocations: 0.5635 MB / 0.5059 GB, free: 14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.07035, allocations: 3.866 MB / 0.5096 GB, free: 10.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009314/0.07128, allocations: 0.7671 MB / 0.5104 GB, free: 9.266 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003438/0.07163, allocations: 294.9 kB / 0.5107 GB, free: 8.973 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00194/0.07357, allocations: 1.344 MB / 0.512 GB, free: 7.605 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/0.07361, allocations: 50.38 kB / 0.512 GB, free: 7.547 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 3.316e-06/0.07361, allocations: 0 / 0.512 GB, free: 7.547 MB / 442.7 MB Notification: Performance of matching and sorting (n=97): time 0.001769/0.07538, allocations: 1.115 MB / 0.5131 GB, free: 6.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.07542, allocations: 68.33 kB / 0.5132 GB, free: 6.332 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.07653, allocations: 1.326 MB / 0.5145 GB, free: 5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.07657, allocations: 49.64 kB / 0.5145 GB, free: 4.945 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004779/0.07705, allocations: 0.9082 MB / 0.5154 GB, free: 4.027 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.07723, allocations: 349 kB / 0.5157 GB, free: 3.684 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.07739, allocations: 180.2 kB / 0.5159 GB, free: 3.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.07753, allocations: 0.5121 MB / 0.5164 GB, free: 2.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.07776, allocations: 153.9 kB / 0.5166 GB, free: 2.828 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.07822, allocations: 0.67 MB / 0.5172 GB, free: 1.988 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000643/0.07886, allocations: 0.6032 MB / 0.5178 GB, free: 1.305 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.07887, allocations: 0 / 0.5178 GB, free: 1.305 MB / 442.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00109/0.07996, allocations: 0.9362 MB / 0.5187 GB, free: 356 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.07998, allocations: 8 kB / 0.5187 GB, free: 348 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.08, allocations: 8 kB / 0.5187 GB, free: 340 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005178/0.08051, allocations: 195.3 kB / 0.5189 GB, free: 132 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/0.08089, allocations: 191.7 kB / 0.5191 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002893/0.08378, allocations: 5.616 MB / 0.5246 GB, free: 9.957 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/0.0843, allocations: 98.06 kB / 0.5247 GB, free: 9.863 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.08436, allocations: 39.98 kB / 0.5247 GB, free: 9.824 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003245/0.08469, allocations: 216.3 kB / 0.5249 GB, free: 9.602 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001844/0.08487, allocations: 214.8 kB / 0.5251 GB, free: 9.391 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.08629, allocations: 1.318 MB / 0.5264 GB, free: 8.035 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.08629, allocations: 8 kB / 0.5264 GB, free: 8.027 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.0863, allocations: 3.938 kB / 0.5264 GB, free: 8.023 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.0863, allocations: 7.984 kB / 0.5264 GB, free: 8.016 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.0885, allocations: 1.961 MB / 0.5284 GB, free: 5.957 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.0885, allocations: 0 / 0.5284 GB, free: 5.957 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.08877, allocations: 143.7 kB / 0.5285 GB, free: 5.816 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000452/0.08922, allocations: 207.1 kB / 0.5287 GB, free: 5.602 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.197e-05/0.08927, allocations: 23.98 kB / 0.5287 GB, free: 5.578 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.0919, allocations: 5.613 MB / 0.5342 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.0919, allocations: 0 / 0.5342 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.09323, allocations: 1.216 MB / 0.5354 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/0.09357, allocations: 254.5 kB / 0.5356 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.09368, allocations: 20 kB / 0.5356 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002653/0.09394, allocations: 24.03 kB / 0.5357 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.09408, allocations: 80.84 kB / 0.5357 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.09413, allocations: 31.98 kB / 0.5358 GB, free: 13.91 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008102/0.09494, allocations: 0.8429 MB / 0.5366 GB, free: 13.05 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.09494, allocations: 0 / 0.5366 GB, free: 13.05 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000941/0.09588, allocations: 459 kB / 0.537 GB, free: 12.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003418/0.09622, allocations: 167 kB / 0.5372 GB, free: 12.43 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.09758, allocations: 1.084 MB / 0.5383 GB, free: 11.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.09758, allocations: 3.938 kB / 0.5383 GB, free: 11.28 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007049/0.09828, allocations: 0.8404 MB / 0.5391 GB, free: 10.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.1002, allocations: 0.7237 MB / 0.5398 GB, free: 9.699 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004207/0.1044, allocations: 2.883 MB / 0.5426 GB, free: 6.742 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.1046, allocations: 286.1 kB / 0.5429 GB, free: 6.441 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007492/0.1054, allocations: 274.3 kB / 0.5431 GB, free: 6.168 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.1056, allocations: 136.5 kB / 0.5433 GB, free: 6.035 MB / 474.7 MB Notification: Performance of SimCode: time 1.923e-06/0.1056, allocations: 0 / 0.5433 GB, free: 6.035 MB / 474.7 MB Notification: Performance of Templates: time 0.03591/0.1415, allocations: 27.67 MB / 0.5703 GB, free: 11.02 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.312395161949098]