Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.0013/0.0013, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001567/0.001567, allocations: 215.3 kB / 22.25 MB, free: 5.129 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.503/1.503, allocations: 230.6 MB / 256 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] 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.8129/0.8129, allocations: 100.3 MB / 412.7 MB, free: 3.684 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",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.002708/0.002708, allocations: 89.69 kB / 0.5633 GB, free: 35.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1342, allocations: 74.47 MB / 0.636 GB, free: 7.676 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5361/0.6703, allocations: 174.4 MB / 0.8063 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01464/0.6849, allocations: 11.06 MB / 0.8171 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002343/0.6873, allocations: 65 kB / 0.8171 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003044/0.6903, allocations: 0.8046 MB / 0.8179 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005966/0.6963, allocations: 1.708 MB / 0.8196 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003622/0.6999, allocations: 1.147 MB / 0.8207 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003947/0.7038, allocations: 2.551 MB / 0.8232 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006381/0.7045, allocations: 292.9 kB / 0.8235 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002169/0.7066, allocations: 1.089 MB / 0.8245 GB, free: 8.672 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002557/0.7092, allocations: 1.381 MB / 0.8259 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004169/0.7096, allocations: 142.4 kB / 0.826 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005163/0.7148, allocations: 1.99 MB / 0.828 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005342/0.7153, allocations: 369.8 kB / 0.8283 GB, free: 6.965 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001361/0.7167, allocations: 0.8114 MB / 0.8291 GB, free: 6.438 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004421/0.7211, allocations: 2.614 MB / 0.8316 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.7211, allocations: 0 / 0.8316 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.443e-06/0.7211, allocations: 0 / 0.8316 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.556e-05/0.7211, allocations: 0 / 0.8316 GB, free: 4.891 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.00391/0.725, allocations: 2.009 MB / 0.8336 GB, free: 3.48 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.7251, allocations: 7.5 kB / 0.8336 GB, free: 3.48 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003066/0.7254, allocations: 178.4 kB / 0.8338 GB, free: 3.336 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003044/0.7257, allocations: 183.8 kB / 0.834 GB, free: 3.238 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00156/0.7272, allocations: 0.9 MB / 0.8348 GB, free: 2.562 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.7274, allocations: 89.44 kB / 0.8349 GB, free: 2.523 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002137/0.7276, allocations: 130.7 kB / 0.8351 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/0.73, allocations: 1.547 MB / 0.8366 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.73, allocations: 0 / 0.8366 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.443e-05/0.7301, allocations: 58.28 kB / 0.8366 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.7301, allocations: 30.44 kB / 0.8366 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002718/0.7329, allocations: 1.711 MB / 0.8383 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007538/0.7404, allocations: 6.194 MB / 0.8444 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/0.7428, allocations: 1.197 MB / 0.8455 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.7438, allocations: 0.6341 MB / 0.8462 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004161/0.748, allocations: 2.282 MB / 0.8484 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.7492, allocations: 0.7292 MB / 0.8491 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=128): time 2.595e-06/0.7492, allocations: 0 / 0.8491 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=129): time 0.00806/0.7573, allocations: 3.795 MB / 0.8528 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.7574, allocations: 64.72 kB / 0.8529 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.7584, allocations: 0.7126 MB / 0.8536 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.36e-05/0.7585, allocations: 53.7 kB / 0.8536 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.759, allocations: 0.5287 MB / 0.8541 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006376/0.7596, allocations: 457.7 kB / 0.8546 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003237/0.7599, allocations: 202.9 kB / 0.8548 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001903/0.7601, allocations: 353.9 kB / 0.8551 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/0.7612, allocations: 0.5218 MB / 0.8556 GB, free: 2.078 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.7623, allocations: 0.629 MB / 0.8562 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00238/0.7647, allocations: 1.248 MB / 0.8574 GB, free: 156 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.7647, allocations: 4 kB / 0.8574 GB, free: 152 kB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003276/0.768, allocations: 1.604 MB / 0.859 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.7681, allocations: 33.69 kB / 0.859 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.7681, allocations: 4 kB / 0.859 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005066/0.7686, allocations: 156.7 kB / 0.8592 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.7696, allocations: 251.7 kB / 0.8594 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004389/0.774, allocations: 2.611 MB / 0.862 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006535/0.7747, allocations: 56.62 kB / 0.862 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/0.7749, allocations: 51.97 kB / 0.8621 GB, free: 11.25 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000519/0.7754, allocations: 285.6 kB / 0.8624 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/0.7756, allocations: 119.2 kB / 0.8625 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004549/0.7801, allocations: 2.326 MB / 0.8647 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.7802, allocations: 20 kB / 0.8648 GB, free: 8.523 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7802, allocations: 4 kB / 0.8648 GB, free: 8.52 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.7802, allocations: 7.969 kB / 0.8648 GB, free: 8.512 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006329/0.7865, allocations: 3.382 MB / 0.8681 GB, free: 5.094 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.7865, allocations: 0 / 0.8681 GB, free: 5.094 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000958/0.7875, allocations: 271.8 kB / 0.8683 GB, free: 4.828 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004635/0.7879, allocations: 148.7 kB / 0.8685 GB, free: 4.68 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002237/0.7882, allocations: 39.98 kB / 0.8685 GB, free: 4.641 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002957/0.7911, allocations: 2.338 MB / 0.8708 GB, free: 2.195 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.7911, allocations: 3.938 kB / 0.8708 GB, free: 2.191 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005142/0.7963, allocations: 2.613 MB / 0.8734 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003444/0.7966, allocations: 115.1 kB / 0.8735 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.7968, allocations: 28 kB / 0.8735 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005796/0.7973, allocations: 51.95 kB / 0.8735 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/0.7976, allocations: 121.2 kB / 0.8737 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002561/0.7978, allocations: 63.91 kB / 0.8737 GB, free: 15.17 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006821/0.7985, allocations: 0.5194 MB / 0.8742 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of sort global known variables: time 8e-08/0.7985, allocations: 0 / 0.8742 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001767/0.8003, allocations: 0.511 MB / 0.8747 GB, free: 14.13 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.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 (141): * Single equations (assignments): 138 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006215/0.8065, allocations: 3.641 MB / 0.8783 GB, free: 10.48 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003241/0.8097, allocations: 1.563 MB / 0.8798 GB, free: 8.895 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.8097, allocations: 0 / 0.8798 GB, free: 8.895 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.8114, allocations: 0.928 MB / 0.8807 GB, free: 7.957 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/0.8132, allocations: 403.3 kB / 0.8811 GB, free: 7.574 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/0.8314, allocations: 10.19 MB / 0.8911 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.8324, allocations: 1.195 MB / 0.8922 GB, free: 11.97 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001197/0.8336, allocations: 342 kB / 0.8925 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009481/0.8346, allocations: 0.5735 MB / 0.8931 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of SimCode: time 8.52e-07/0.8346, allocations: 0 / 0.8931 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1026/0.9372, allocations: 39.61 MB / 0.9318 GB, free: 3.809 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/15.49, allocations: 10.58 kB / 0.9318 GB, free: 3.801 MB / 0.6856 GB " [Timeout remaining time 644] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.TanValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.20594360283576]