Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.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: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001278, allocations: 108 kB / 15.99 MB, free: 5.891 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.001298/0.001298, allocations: 191.8 kB / 16.91 MB, free: 5.742 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.467/1.467, allocations: 222.9 MB / 240.6 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8019/0.8019, allocations: 93.72 MB / 384.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003599/0.003599, allocations: 77.81 kB / 463.5 MB, free: 22.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1673, allocations: 68.27 MB / 0.5194 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.4577/0.6251, allocations: 142.1 MB / 0.6581 GB, free: 4.512 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004888/0.63, allocations: 3.626 MB / 0.6617 GB, free: 1.574 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00045/0.6305, allocations: 17.5 kB / 0.6617 GB, free: 1.566 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006148/0.6311, allocations: 152.3 kB / 0.6618 GB, free: 1.445 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008955/0.6321, allocations: 358.1 kB / 0.6622 GB, free: 1.16 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007199/0.6328, allocations: 267 kB / 0.6624 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005731/0.6334, allocations: 0.5248 MB / 0.6629 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.6336, allocations: 90.44 kB / 0.663 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.634, allocations: 250.4 kB / 0.6633 GB, free: 476 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.6343, allocations: 234.2 kB / 0.6635 GB, free: 332 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.6344, allocations: 28.44 kB / 0.6635 GB, free: 328 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008486/0.6352, allocations: 494 kB / 0.664 GB, free: 100 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.6354, allocations: 73.69 kB / 0.664 GB, free: 36 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.6356, allocations: 177 kB / 0.6642 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.6361, allocations: 395.6 kB / 0.6646 GB, free: 15.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.6361, allocations: 7.266 kB / 0.6646 GB, free: 15.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6362, allocations: 7.938 kB / 0.6646 GB, free: 15.67 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.6362, allocations: 0 / 0.6646 GB, free: 15.67 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001359/0.6375, allocations: 0.7289 MB / 0.6653 GB, free: 15.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.6376, allocations: 10.38 kB / 0.6653 GB, free: 15.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.131e-05/0.6377, allocations: 44.53 kB / 0.6654 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004872/0.6382, allocations: 372.3 kB / 0.6657 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.6382, allocations: 17.06 kB / 0.6657 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/0.6383, allocations: 26.69 kB / 0.6658 GB, free: 14.63 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005233/0.6388, allocations: 262.9 kB / 0.666 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.6388, allocations: 0 / 0.666 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.6388, allocations: 8 kB / 0.666 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.6389, allocations: 11.42 kB / 0.666 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004727/0.6393, allocations: 222.5 kB / 0.6662 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.6409, allocations: 1.097 MB / 0.6673 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005245/0.6414, allocations: 222 kB / 0.6675 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.6416, allocations: 108.7 kB / 0.6676 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/0.6427, allocations: 0.9941 MB / 0.6686 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004135/0.6431, allocations: 150 kB / 0.6687 GB, free: 11.97 MB / 494.1 MB Notification: Performance of pre-optimization done (n=23): time 1.763e-06/0.6431, allocations: 0 / 0.6687 GB, free: 11.97 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001146/0.6443, allocations: 464.8 kB / 0.6692 GB, free: 11.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.6443, allocations: 57.78 kB / 0.6692 GB, free: 11.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000385/0.6447, allocations: 345.7 kB / 0.6696 GB, free: 11.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/0.6448, allocations: 32.3 kB / 0.6696 GB, free: 11.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.6449, allocations: 201.7 kB / 0.6698 GB, free: 11.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.419e-05/0.645, allocations: 77.12 kB / 0.6699 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.6451, allocations: 46.84 kB / 0.6699 GB, free: 11.06 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.6453, allocations: 346.7 kB / 0.6702 GB, free: 10.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.6455, allocations: 83.03 kB / 0.6703 GB, free: 10.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.6458, allocations: 111 kB / 0.6704 GB, free: 10.61 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004432/0.6462, allocations: 221.1 kB / 0.6706 GB, free: 10.47 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.6462, allocations: 0 / 0.6706 GB, free: 10.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006927/0.6469, allocations: 353.7 kB / 0.671 GB, free: 10.26 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.647, allocations: 34.55 kB / 0.671 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.647, allocations: 0 / 0.671 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002265/0.6472, allocations: 40.55 kB / 0.6711 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.6474, allocations: 49.38 kB / 0.6711 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.6488, allocations: 1.523 MB / 0.6726 GB, free: 8.648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.6491, allocations: 30.23 kB / 0.6726 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.6491, allocations: 11.44 kB / 0.6726 GB, free: 8.625 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001701/0.6493, allocations: 149.5 kB / 0.6728 GB, free: 8.488 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.63e-05/0.6494, allocations: 34.66 kB / 0.6728 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007688/0.6501, allocations: 345.2 kB / 0.6731 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.6502, allocations: 6.5 kB / 0.6731 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.6502, allocations: 1.844 kB / 0.6731 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.6502, allocations: 144 / 0.6731 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.6514, allocations: 0.7581 MB / 0.6739 GB, free: 7.633 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.6514, allocations: 0 / 0.6739 GB, free: 7.633 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.6516, allocations: 39.69 kB / 0.6739 GB, free: 7.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001484/0.6517, allocations: 46.66 kB / 0.674 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.6518, allocations: 8.719 kB / 0.674 GB, free: 7.586 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.6531, allocations: 1.52 MB / 0.6755 GB, free: 6.062 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.6531, allocations: 3.984 kB / 0.6755 GB, free: 6.059 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009341/0.6541, allocations: 0.4981 MB / 0.6759 GB, free: 5.723 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.6542, allocations: 118.8 kB / 0.6761 GB, free: 5.598 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.759e-05/0.6542, allocations: 6.625 kB / 0.6761 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.6545, allocations: 19.64 kB / 0.6761 GB, free: 5.582 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.864e-05/0.6546, allocations: 24.59 kB / 0.6761 GB, free: 5.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.6546, allocations: 9.578 kB / 0.6761 GB, free: 5.566 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002857/0.6549, allocations: 246.6 kB / 0.6763 GB, free: 5.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6549, allocations: 4.062 kB / 0.6764 GB, free: 5.406 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004925/0.6554, allocations: 121.9 kB / 0.6765 GB, free: 5.375 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000376/0.6558, allocations: 225.7 kB / 0.6767 GB, free: 5.223 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008643/0.6567, allocations: 397.9 kB / 0.6771 GB, free: 4.941 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.6567, allocations: 4.125 kB / 0.6771 GB, free: 4.938 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004259/0.6571, allocations: 242.2 kB / 0.6773 GB, free: 4.762 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.6578, allocations: 119.4 kB / 0.6774 GB, free: 4.707 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.6592, allocations: 0.8259 MB / 0.6782 GB, free: 4.102 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.6597, allocations: 0.7918 MB / 0.679 GB, free: 3.355 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/0.6598, allocations: 42.2 kB / 0.679 GB, free: 3.34 MB / 494.1 MB Notification: Performance of SimCode: time 3.61e-07/0.6598, allocations: 0 / 0.679 GB, free: 3.34 MB / 494.1 MB Notification: Performance of Templates: time 0.01018/0.67, allocations: 7.095 MB / 0.686 GB, free: 15.59 MB / 0.4981 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches