Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.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.001214/0.001214, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0009467/0.0009467, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.069/1.069, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.8656/0.8656, allocations: 116 MB / 375.2 MB, free: 4.188 MB / 346.7 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.3.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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 6.352e-06/6.352e-06, allocations: 0 / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.015e-05/8.65e-05, allocations: 5.516 kB / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.05976/0.05984, allocations: 60.7 MB / 0.6125 GB, free: 408 kB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.02515/0.08499, allocations: 16.22 MB / 0.6284 GB, free: 136 kB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005059/0.09005, allocations: 118.9 kB / 0.6285 GB, free: 16 kB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.00563/0.09568, allocations: 1.105 MB / 0.6296 GB, free: 14.9 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.01362/0.1093, allocations: 3.092 MB / 0.6326 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006769/0.1161, allocations: 1.615 MB / 0.6342 GB, free: 10.17 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.009571/0.1256, allocations: 4.328 MB / 0.6384 GB, free: 5.82 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.1277, allocations: 379.1 kB / 0.6388 GB, free: 5.422 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008675/0.1363, allocations: 2.329 MB / 0.641 GB, free: 3.086 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004095/0.1404, allocations: 1.297 MB / 0.6423 GB, free: 1.785 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0008751/0.1413, allocations: 192 kB / 0.6425 GB, free: 1.598 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00735/0.1487, allocations: 1.516 MB / 0.644 GB, free: 80 kB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.5992/0.7478, allocations: 0.4982 MB / 0.6444 GB, free: 18.55 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.005276/0.7531, allocations: 0.9123 MB / 0.6453 GB, free: 18.55 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.01777/0.7709, allocations: 3.891 MB / 0.6491 GB, free: 18.42 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 1.504e-05/0.7709, allocations: 1.188 kB / 0.6491 GB, free: 18.42 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.335e-06/0.7709, allocations: 0 / 0.6491 GB, free: 18.42 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002209/0.7711, allocations: 0 / 0.6491 GB, free: 18.42 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.01024/0.7814, allocations: 2.994 MB / 0.6521 GB, free: 17.06 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 7.663e-05/0.7814, allocations: 8.719 kB / 0.6521 GB, free: 17.06 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003632/0.7818, allocations: 266.1 kB / 0.6523 GB, free: 17.02 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001419/0.7832, allocations: 352.6 kB / 0.6527 GB, free: 16.86 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003688/0.7869, allocations: 1.366 MB / 0.654 GB, free: 16.43 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.7871, allocations: 146 kB / 0.6541 GB, free: 16.43 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002392/0.7873, allocations: 193.8 kB / 0.6543 GB, free: 16.43 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00444/0.7917, allocations: 2.236 MB / 0.6565 GB, free: 16.18 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.236e-05/0.7918, allocations: 5.078 kB / 0.6565 GB, free: 16.18 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.7919, allocations: 80.72 kB / 0.6566 GB, free: 16.18 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.7919, allocations: 45.94 kB / 0.6566 GB, free: 16.18 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003908/0.7958, allocations: 2.294 MB / 0.6589 GB, free: 16.16 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01576/0.8116, allocations: 5.303 MB / 0.664 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00359/0.8152, allocations: 1.786 MB / 0.6658 GB, free: 14.92 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001525/0.8167, allocations: 0.8837 MB / 0.6667 GB, free: 14.9 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007501/0.8242, allocations: 2.795 MB / 0.6694 GB, free: 14.54 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002083/0.8263, allocations: 1.114 MB / 0.6705 GB, free: 14.34 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=200): time 4.278e-06/0.8263, allocations: 0 / 0.6705 GB, free: 14.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=200): time 0.006332/0.8326, allocations: 2.746 MB / 0.6732 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.8327, allocations: 155.5 kB / 0.6733 GB, free: 13.93 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/0.8353, allocations: 1.243 MB / 0.6745 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.8354, allocations: 58.83 kB / 0.6746 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009771/0.8364, allocations: 0.8776 MB / 0.6754 GB, free: 13.41 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006485/0.8371, allocations: 0.6967 MB / 0.6761 GB, free: 12.94 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000482/0.8375, allocations: 323.2 kB / 0.6764 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.8377, allocations: 304.8 kB / 0.6767 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.839, allocations: 0.6678 MB / 0.6774 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/0.8406, allocations: 0.9977 MB / 0.6783 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002574/0.8432, allocations: 1.663 MB / 0.68 GB, free: 11.99 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.508e-05/0.8432, allocations: 0 / 0.68 GB, free: 11.99 MB / 0.5573 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004076/0.8473, allocations: 2.17 MB / 0.6821 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 8.145e-05/0.8473, allocations: 36.7 kB / 0.6821 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/0.8474, allocations: 6.906 kB / 0.6821 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000592/0.848, allocations: 166.1 kB / 0.6823 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.849, allocations: 389 kB / 0.6827 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.8525, allocations: 4.491 MB / 0.687 GB, free: 6.914 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.8544, allocations: 162.5 kB / 0.6872 GB, free: 6.801 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002582/0.8547, allocations: 85.5 kB / 0.6873 GB, free: 6.781 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * 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.001269/0.8559, allocations: 368.3 kB / 0.6876 GB, free: 6.527 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006901/0.8566, allocations: 218.6 kB / 0.6878 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005141/0.8618, allocations: 3.106 MB / 0.6909 GB, free: 5.141 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.775e-05/0.8618, allocations: 26.64 kB / 0.6909 GB, free: 5.141 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.8618, allocations: 3.594 kB / 0.6909 GB, free: 5.141 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.778e-05/0.8618, allocations: 9.234 kB / 0.6909 GB, free: 5.141 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007701/0.8695, allocations: 4.248 MB / 0.6951 GB, free: 3.211 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/0.8695, allocations: 6.781 kB / 0.6951 GB, free: 3.211 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008678/0.8704, allocations: 382.8 kB / 0.6954 GB, free: 3.184 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004241/0.8708, allocations: 166.6 kB / 0.6956 GB, free: 3.125 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/0.871, allocations: 66.94 kB / 0.6956 GB, free: 3.094 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004153/0.8751, allocations: 4.487 MB / 0.7 GB, free: 14.94 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.8751, allocations: 2.219 kB / 0.7 GB, free: 14.94 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005389/0.8805, allocations: 3.226 MB / 0.7032 GB, free: 13.46 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/0.882, allocations: 453.9 kB / 0.7036 GB, free: 13.19 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002547/0.8823, allocations: 47.11 kB / 0.7037 GB, free: 13.16 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006936/0.883, allocations: 54.56 kB / 0.7037 GB, free: 13.13 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002468/0.8832, allocations: 177.4 kB / 0.7039 GB, free: 13.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001943/0.8834, allocations: 84.84 kB / 0.704 GB, free: 13.08 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001358/0.8848, allocations: 0.8603 MB / 0.7048 GB, free: 12.76 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8848, allocations: 0 / 0.7048 GB, free: 12.76 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003575/0.8883, allocations: 0.8503 MB / 0.7056 GB, free: 12.54 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.007142/0.8955, allocations: 4.467 MB / 0.71 GB, free: 10.33 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004357/0.8998, allocations: 2.133 MB / 0.7121 GB, free: 9.348 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.8999, allocations: 1.312 kB / 0.7121 GB, free: 9.348 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.9019, allocations: 1.31 MB / 0.7134 GB, free: 8.699 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004184/0.9061, allocations: 0.9169 MB / 0.7143 GB, free: 8.379 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/0.937, allocations: 14.96 MB / 0.7289 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009986/0.938, allocations: 0.8859 MB / 0.7297 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.002733/0.9407, allocations: 0.4901 MB / 0.7302 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.9421, allocations: 0.964 MB / 0.7311 GB, free: 9.453 MB / 0.5886 GB Notification: Performance of SimCode: time 4.929e-06/0.9421, allocations: 0 / 0.7311 GB, free: 9.453 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1391/1.081, allocations: 67.93 MB / 0.7975 GB, free: 6.598 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.764/9.845, allocations: 16.92 kB / 0.7975 GB, free: 6.582 MB / 0.6511 GB " [Timeout remaining time 650] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.438163467682898]