Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.Undirected.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005723/0.005722, allocations: 103.7 kB / 15.74 MB, free: 6.043 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.001475/0.001475, allocations: 201.8 kB / 16.68 MB, free: 5.965 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.597/1.597, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7365/0.7365, allocations: 93.71 MB / 384.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002433/0.002433, allocations: 83.88 kB / 0.5204 GB, free: 5.824 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1313, allocations: 68.26 MB / 0.5871 GB, free: 1.488 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.3303/0.4617, allocations: 44.95 MB / 0.631 GB, free: 9.676 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01995/0.4817, allocations: 12.3 MB / 0.643 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00292/0.4846, allocations: 61.22 kB / 0.6431 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003867/0.4886, allocations: 1.154 MB / 0.6442 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00807/0.4967, allocations: 2.052 MB / 0.6462 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004586/0.5013, allocations: 1.182 MB / 0.6473 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005565/0.5069, allocations: 2.801 MB / 0.6501 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.508, allocations: 480.9 kB / 0.6505 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003615/0.5116, allocations: 1.313 MB / 0.6518 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002396/0.5141, allocations: 1.101 MB / 0.6529 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004557/0.5145, allocations: 137.9 kB / 0.653 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004534/0.5191, allocations: 1.146 MB / 0.6542 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008021/0.5199, allocations: 434.5 kB / 0.6546 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001877/0.5218, allocations: 0.9673 MB / 0.6555 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.007783/0.5296, allocations: 2.895 MB / 0.6583 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.5297, allocations: 0 / 0.6583 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.024e-06/0.5297, allocations: 0 / 0.6583 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001169/0.5298, allocations: 4 kB / 0.6583 GB, free: 6.633 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.006545/0.5364, allocations: 2.552 MB / 0.6608 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.5364, allocations: 8.406 kB / 0.6608 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007028/0.5372, allocations: 239.2 kB / 0.6611 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00327/0.5404, allocations: 1.362 MB / 0.6624 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.5406, allocations: 103 kB / 0.6625 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002601/0.5409, allocations: 130.1 kB / 0.6626 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003204/0.5441, allocations: 1.486 MB / 0.6641 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/0.5441, allocations: 1.375 kB / 0.6641 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.5443, allocations: 59 kB / 0.6641 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.762e-05/0.5443, allocations: 35.61 kB / 0.6642 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002973/0.5473, allocations: 1.554 MB / 0.6657 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/0.5578, allocations: 6.266 MB / 0.6718 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/0.5605, allocations: 1.297 MB / 0.6731 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001277/0.5618, allocations: 0.6711 MB / 0.6737 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006986/0.5688, allocations: 4.597 MB / 0.6782 GB, free: 4.074 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001452/0.5703, allocations: 0.6731 MB / 0.6789 GB, free: 3.395 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=139): time 4.468e-06/0.5703, allocations: 0 / 0.6789 GB, free: 3.395 MB / 0.5137 GB Notification: Performance of matching and sorting (n=139): time 0.004981/0.5753, allocations: 2.129 MB / 0.6809 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.5754, allocations: 72.7 kB / 0.681 GB, free: 1.133 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002004/0.5774, allocations: 1.297 MB / 0.6823 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001846/0.5776, allocations: 53.7 kB / 0.6823 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007058/0.5783, allocations: 0.6953 MB / 0.683 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005243/0.5788, allocations: 499.7 kB / 0.6835 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004273/0.5793, allocations: 254.8 kB / 0.6837 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.5795, allocations: 349.9 kB / 0.6841 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.5805, allocations: 466.4 kB / 0.6845 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.5817, allocations: 0.6123 MB / 0.6851 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002357/0.5841, allocations: 1.163 MB / 0.6862 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.5841, allocations: 0 / 0.6862 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003581/0.5877, allocations: 1.546 MB / 0.6878 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.489e-05/0.5878, allocations: 37.7 kB / 0.6878 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.5878, allocations: 4 kB / 0.6878 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004852/0.5883, allocations: 113.6 kB / 0.6879 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.5894, allocations: 275.6 kB / 0.6882 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003322/0.5928, allocations: 3.235 MB / 0.6913 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.5941, allocations: 123.1 kB / 0.6914 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002164/0.5944, allocations: 59.97 kB / 0.6915 GB, free: 5.945 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * 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 {(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.0008941/0.5953, allocations: 393.3 kB / 0.6919 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/0.5958, allocations: 178.8 kB / 0.692 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00483/0.6006, allocations: 2.287 MB / 0.6943 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-05/0.6007, allocations: 16 kB / 0.6943 GB, free: 3.121 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.6007, allocations: 3.938 kB / 0.6943 GB, free: 3.117 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-05/0.6007, allocations: 11.97 kB / 0.6943 GB, free: 3.105 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007252/0.608, allocations: 3.453 MB / 0.6977 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.608, allocations: 4 kB / 0.6977 GB, free: 15.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.6091, allocations: 279.6 kB / 0.698 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004481/0.6096, allocations: 117.7 kB / 0.6981 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.6097, allocations: 47.97 kB / 0.6981 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003295/0.613, allocations: 3.227 MB / 0.7013 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.613, allocations: 0 / 0.7013 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005234/0.6183, allocations: 2.394 MB / 0.7036 GB, free: 9.184 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.6194, allocations: 483.2 kB / 0.7041 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/0.6197, allocations: 32 kB / 0.7041 GB, free: 8.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007238/0.6205, allocations: 43.97 kB / 0.7041 GB, free: 8.617 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002819/0.6208, allocations: 125.1 kB / 0.7043 GB, free: 8.492 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/0.6209, allocations: 63.97 kB / 0.7043 GB, free: 8.43 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001419/0.6223, allocations: 0.9152 MB / 0.7052 GB, free: 7.52 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.8e-07/0.6223, allocations: 0 / 0.7052 GB, free: 7.52 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00209/0.6244, allocations: 0.608 MB / 0.7058 GB, free: 6.91 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(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.002367/0.6268, allocations: 0.8353 MB / 0.7066 GB, free: 6.211 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003602/0.6304, allocations: 1.574 MB / 0.7082 GB, free: 4.598 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.6305, allocations: 0.75 kB / 0.7082 GB, free: 4.598 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00193/0.6324, allocations: 0.9964 MB / 0.7091 GB, free: 3.578 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0028/0.6352, allocations: 0.4992 MB / 0.7096 GB, free: 3.094 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00673/0.642, allocations: 3.213 MB / 0.7128 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/0.6434, allocations: 1.345 MB / 0.7141 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001526/0.6449, allocations: 401 kB / 0.7144 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005483/0.6455, allocations: 199.4 kB / 0.7146 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of SimCode: time 7.82e-07/0.6455, allocations: 0 / 0.7146 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of Templates: time 0.05751/0.703, allocations: 29.66 MB / 0.7436 GB, free: 428 kB / 0.5762 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches