Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001608/0.001608, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 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.001846/0.001846, allocations: 214.1 kB / 22.25 MB, free: 5.242 MB / 14.72 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.823/1.823, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 1.158/1.158, allocations: 94.63 MB / 407.1 MB, free: 8.91 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002818/0.002818, allocations: 85.81 kB / 0.5549 GB, free: 38.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2488, allocations: 73.06 MB / 0.6263 GB, free: 172 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.08413/0.3329, allocations: 59.76 MB / 0.6847 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02995/0.3629, allocations: 16.04 MB / 0.7003 GB, free: 4.109 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004309/0.3672, allocations: 111 kB / 0.7004 GB, free: 4 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.005043/0.3722, allocations: 1.067 MB / 0.7015 GB, free: 2.926 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0127/0.3849, allocations: 2.843 MB / 0.7042 GB, free: 68 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.007861/0.3928, allocations: 1.581 MB / 0.7058 GB, free: 14.48 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01064/0.4034, allocations: 3.91 MB / 0.7096 GB, free: 10.55 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001717/0.4051, allocations: 375.2 kB / 0.71 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006325/0.4115, allocations: 1.669 MB / 0.7116 GB, free: 8.48 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003824/0.4153, allocations: 1.442 MB / 0.713 GB, free: 7.031 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0007757/0.4161, allocations: 192 kB / 0.7132 GB, free: 6.844 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007778/0.4238, allocations: 1.502 MB / 0.7146 GB, free: 5.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001296/0.4251, allocations: 493.8 kB / 0.7151 GB, free: 4.855 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003721/0.4289, allocations: 1.038 MB / 0.7161 GB, free: 3.812 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.442, allocations: 3.786 MB / 0.7198 GB, free: 12 kB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.442, allocations: 0 / 0.7198 GB, free: 12 kB / 0.545 GB Notification: Performance of FrontEnd: time 4.339e-06/0.442, allocations: 4 kB / 0.7198 GB, free: 8 kB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000117/0.4422, allocations: 4 kB / 0.7198 GB, free: 4 kB / 0.545 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.007584/0.4497, allocations: 2.989 MB / 0.7228 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.493e-05/0.4498, allocations: 16.02 kB / 0.7228 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003589/0.4502, allocations: 262.3 kB / 0.723 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001195/0.4514, allocations: 347.1 kB / 0.7234 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003361/0.4547, allocations: 1.367 MB / 0.7247 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.4549, allocations: 140.1 kB / 0.7248 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003344/0.4552, allocations: 200.3 kB / 0.725 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004066/0.4593, allocations: 2.234 MB / 0.7272 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.233e-05/0.4593, allocations: 3.938 kB / 0.7272 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.4595, allocations: 76 kB / 0.7273 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.834e-05/0.4595, allocations: 44 kB / 0.7273 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004419/0.464, allocations: 2.302 MB / 0.7296 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01147/0.4754, allocations: 5.242 MB / 0.7347 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003598/0.479, allocations: 1.792 MB / 0.7364 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.4806, allocations: 0.8815 MB / 0.7373 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007165/0.4877, allocations: 2.788 MB / 0.74 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002045/0.4898, allocations: 1.121 MB / 0.7411 GB, free: 9.887 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 4.329e-06/0.4898, allocations: 0 / 0.7411 GB, free: 9.887 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.006723/0.4965, allocations: 2.742 MB / 0.7438 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.4966, allocations: 158.5 kB / 0.7439 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/0.4986, allocations: 1.241 MB / 0.7451 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001595/0.4988, allocations: 61.7 kB / 0.7452 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001133/0.4999, allocations: 0.8802 MB / 0.7461 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008586/0.5008, allocations: 0.6931 MB / 0.7467 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005761/0.5014, allocations: 323.5 kB / 0.7471 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.5015, allocations: 305.1 kB / 0.7473 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.5028, allocations: 0.6654 MB / 0.748 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00172/0.5045, allocations: 0.9901 MB / 0.749 GB, free: 1.656 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6596/1.164, allocations: 1.663 MB / 0.7506 GB, free: 117.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.73e-05/1.164, allocations: 0.75 kB / 0.7506 GB, free: 117.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007722/1.172, allocations: 2.166 MB / 0.7527 GB, free: 117.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.442e-05/1.172, allocations: 36.95 kB / 0.7527 GB, free: 117.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/1.172, allocations: 5.672 kB / 0.7527 GB, free: 117.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007497/1.173, allocations: 158.1 kB / 0.7529 GB, free: 117.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/1.174, allocations: 394.8 kB / 0.7533 GB, free: 117.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005024/1.179, allocations: 4.499 MB / 0.7577 GB, free: 114 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/1.181, allocations: 164.1 kB / 0.7578 GB, free: 113.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002924/1.182, allocations: 86.05 kB / 0.7579 GB, free: 113.9 MB / 0.5762 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.001084/1.183, allocations: 357.1 kB / 0.7582 GB, free: 113.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005652/1.183, allocations: 213.2 kB / 0.7584 GB, free: 113.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006469/1.19, allocations: 3.104 MB / 0.7615 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.533e-05/1.19, allocations: 24.73 kB / 0.7615 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/1.19, allocations: 6.594 kB / 0.7615 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.826e-05/1.19, allocations: 10.36 kB / 0.7615 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01108/1.201, allocations: 4.251 MB / 0.7657 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/1.201, allocations: 1.125 kB / 0.7657 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/1.202, allocations: 386.9 kB / 0.766 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007124/1.203, allocations: 169.1 kB / 0.7662 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002093/1.203, allocations: 65.67 kB / 0.7663 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004707/1.208, allocations: 4.507 MB / 0.7707 GB, free: 106.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.208, allocations: 2.781 kB / 0.7707 GB, free: 106.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008187/1.216, allocations: 3.228 MB / 0.7738 GB, free: 104.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/1.218, allocations: 443.2 kB / 0.7742 GB, free: 104.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002771/1.218, allocations: 46.56 kB / 0.7743 GB, free: 104.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008634/1.219, allocations: 61.16 kB / 0.7743 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004568/1.219, allocations: 169.7 kB / 0.7745 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001825/1.22, allocations: 81.19 kB / 0.7746 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001463/1.221, allocations: 0.8617 MB / 0.7754 GB, free: 104 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/1.221, allocations: 3.969 kB / 0.7754 GB, free: 104 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00309/1.224, allocations: 0.8038 MB / 0.7762 GB, free: 103.8 MB / 0.5762 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.007068/1.231, allocations: 4.447 MB / 0.7806 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004143/1.235, allocations: 2.137 MB / 0.7826 GB, free: 100.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/1.235, allocations: 0 / 0.7826 GB, free: 100.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001787/1.237, allocations: 1.303 MB / 0.7839 GB, free: 99.36 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/1.24, allocations: 0.6508 MB / 0.7845 GB, free: 98.88 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02459/1.265, allocations: 14.51 MB / 0.7987 GB, free: 84.31 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/1.266, allocations: 0.8891 MB / 0.7996 GB, free: 83.38 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002019/1.268, allocations: 476.7 kB / 0.8 GB, free: 83 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/1.269, allocations: 0.9561 MB / 0.801 GB, free: 82.04 MB / 0.5762 GB Notification: Performance of SimCode: time 3.757e-06/1.269, allocations: 0 / 0.801 GB, free: 82.04 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1356/1.405, allocations: 61.62 MB / 0.8611 GB, free: 21 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.86/18.27, allocations: 11.98 kB / 0.8612 GB, free: 20.99 MB / 0.5762 GB " [Timeout remaining time 642] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.472555491141975]