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) 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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01642/0.01642, allocations: 98.39 kB / 15.73 MB, free: 6.059 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.003094/0.003094, allocations: 192.8 kB / 16.67 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 2.627/2.627, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.418/1.418, allocations: 93.71 MB / 384.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003492/0.003492, allocations: 83.88 kB / 0.52 GB, free: 6.301 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3597/0.3633, allocations: 68.26 MB / 0.5866 GB, free: 1.961 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.9213/1.285, allocations: 44.95 MB / 0.6305 GB, free: 9.707 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.04132/1.326, allocations: 12.29 MB / 0.6425 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007782/1.334, allocations: 57.72 kB / 0.6426 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006384/1.341, allocations: 1.154 MB / 0.6437 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0171/1.358, allocations: 2.059 MB / 0.6457 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009203/1.367, allocations: 1.17 MB / 0.6468 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01249/1.38, allocations: 2.81 MB / 0.6496 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001274/1.381, allocations: 468.7 kB / 0.65 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008505/1.39, allocations: 1.329 MB / 0.6513 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004821/1.394, allocations: 1.093 MB / 0.6524 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.001522/1.396, allocations: 134.6 kB / 0.6525 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01183/1.408, allocations: 1.154 MB / 0.6537 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001689/1.41, allocations: 434.7 kB / 0.6541 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.005875/1.416, allocations: 0.967 MB / 0.655 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01975/1.435, allocations: 2.902 MB / 0.6579 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/1.435, allocations: 0 / 0.6579 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.447e-06/1.435, allocations: 0 / 0.6579 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001791/1.436, allocations: 0 / 0.6579 GB, free: 6.723 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.01532/1.451, allocations: 2.543 MB / 0.6603 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.912e-05/1.451, allocations: 9.969 kB / 0.6603 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000983/1.452, allocations: 192.5 kB / 0.6605 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002134/1.454, allocations: 238.4 kB / 0.6608 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008216/1.462, allocations: 1.365 MB / 0.6621 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/1.463, allocations: 98.97 kB / 0.6622 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008723/1.464, allocations: 130.8 kB / 0.6623 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006662/1.47, allocations: 1.494 MB / 0.6638 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-05/1.471, allocations: 5.031 kB / 0.6638 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/1.471, allocations: 52.12 kB / 0.6638 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.691e-05/1.471, allocations: 30.69 kB / 0.6639 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006895/1.478, allocations: 1.558 MB / 0.6654 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02014/1.498, allocations: 6.26 MB / 0.6715 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003855/1.502, allocations: 1.293 MB / 0.6728 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/1.504, allocations: 0.6886 MB / 0.6734 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01125/1.515, allocations: 4.589 MB / 0.6779 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002794/1.518, allocations: 0.677 MB / 0.6786 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=139): time 2.302e-05/1.518, allocations: 0 / 0.6786 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of matching and sorting (n=139): time 0.008309/1.527, allocations: 2.125 MB / 0.6806 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.378e-05/1.527, allocations: 72.72 kB / 0.6807 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002781/1.53, allocations: 1.305 MB / 0.682 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000295/1.53, allocations: 45.7 kB / 0.682 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001445/1.531, allocations: 0.707 MB / 0.6827 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007994/1.532, allocations: 487.7 kB / 0.6832 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009969/1.533, allocations: 250.8 kB / 0.6834 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002186/1.533, allocations: 353.9 kB / 0.6838 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001879/1.535, allocations: 466.4 kB / 0.6842 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002156/1.538, allocations: 0.624 MB / 0.6848 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003143/1.541, allocations: 1.159 MB / 0.6859 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/1.541, allocations: 0 / 0.6859 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.004981/1.546, allocations: 1.542 MB / 0.6875 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.817e-05/1.546, allocations: 41.62 kB / 0.6875 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/1.546, allocations: 0 / 0.6875 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/1.547, allocations: 113.6 kB / 0.6876 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/1.549, allocations: 275.6 kB / 0.6879 GB, free: 9.699 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005943/1.554, allocations: 3.227 MB / 0.691 GB, free: 6.188 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/1.556, allocations: 119.1 kB / 0.6911 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002166/1.557, allocations: 59.97 kB / 0.6912 GB, free: 6.012 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.001422/1.558, allocations: 391.5 kB / 0.6916 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00098/1.559, allocations: 186.8 kB / 0.6917 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008744/1.568, allocations: 2.283 MB / 0.694 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.125e-05/1.568, allocations: 23.98 kB / 0.694 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-05/1.568, allocations: 3.938 kB / 0.694 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001276/1.568, allocations: 7.969 kB / 0.694 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/1.58, allocations: 3.453 MB / 0.6974 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.58, allocations: 128 / 0.6974 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/1.582, allocations: 287.6 kB / 0.6976 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006663/1.582, allocations: 105.6 kB / 0.6977 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/1.582, allocations: 55.97 kB / 0.6978 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003993/1.586, allocations: 3.227 MB / 0.701 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.586, allocations: 4.031 kB / 0.701 GB, free: 11.67 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008493/1.595, allocations: 2.394 MB / 0.7033 GB, free: 9.238 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002074/1.597, allocations: 487.1 kB / 0.7038 GB, free: 8.742 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004099/1.598, allocations: 32 kB / 0.7038 GB, free: 8.711 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008678/1.598, allocations: 44.05 kB / 0.7038 GB, free: 8.668 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004033/1.599, allocations: 129.1 kB / 0.704 GB, free: 8.539 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/1.599, allocations: 55.97 kB / 0.704 GB, free: 8.484 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002277/1.601, allocations: 0.9151 MB / 0.7049 GB, free: 7.574 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.72e-07/1.601, allocations: 0 / 0.7049 GB, free: 7.574 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004601/1.606, allocations: 0.6041 MB / 0.7055 GB, free: 6.969 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.01245/1.618, allocations: 3.68 MB / 0.7091 GB, free: 3.387 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005793/1.624, allocations: 1.574 MB / 0.7106 GB, free: 1.777 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/1.624, allocations: 4.25 kB / 0.7106 GB, free: 1.773 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004426/1.629, allocations: 0.9925 MB / 0.7116 GB, free: 0.7539 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004714/1.634, allocations: 0.4943 MB / 0.7121 GB, free: 280 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03881/1.672, allocations: 11.8 MB / 0.7236 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002559/1.675, allocations: 1.341 MB / 0.7249 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003092/1.678, allocations: 397.4 kB / 0.7253 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002142/1.68, allocations: 0.7609 MB / 0.726 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of SimCode: time 2.775e-06/1.68, allocations: 0 / 0.726 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.186/1.866, allocations: 44.59 MB / 0.7696 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.11/24.98, allocations: 11.59 kB / 0.7696 GB, free: 5.336 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType_fmu --startTime=0 --stopTime=20 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches