Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.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.001352/0.001352, allocations: 77.69 kB / 19.27 MB, free: 0.5859 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.001365/0.001365, allocations: 166 kB / 22.58 MB, free: 1.926 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.103/1.103, allocations: 177.1 MB / 202.9 MB, free: 5.707 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.7858/0.7858, allocations: 116 MB / 375.4 MB, free: 4.172 MB / 346.7 MB " [Timeout remaining time 179] 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.Idealized.EnergyFlow.Tests.EnergyFlowSource,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_EnergyFlow_Tests_EnergyFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_EnergyFlow_Tests_EnergyFlowSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.866e-06/2.866e-06, allocations: 0 / 0.5535 GB, free: 13.26 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.183e-05/4.469e-05, allocations: 3.578 kB / 0.5535 GB, free: 13.26 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.00429/0.004335, allocations: 1.618 MB / 0.555 GB, free: 11.63 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.005541, allocations: 450.9 kB / 0.5555 GB, free: 11.18 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.051e-05/0.005632, allocations: 4 kB / 0.5555 GB, free: 11.18 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 4.465e-05/0.005676, allocations: 11.86 kB / 0.5555 GB, free: 11.17 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.005856, allocations: 11.88 kB / 0.5555 GB, free: 11.16 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004989/0.006355, allocations: 35.83 kB / 0.5555 GB, free: 11.12 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.006537, allocations: 43.8 kB / 0.5556 GB, free: 11.08 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.006703, allocations: 7.984 kB / 0.5556 GB, free: 11.07 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.006932, allocations: 35.91 kB / 0.5556 GB, free: 11.04 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.007062, allocations: 11.98 kB / 0.5556 GB, free: 11.02 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.007087, allocations: 11.88 kB / 0.5556 GB, free: 11.01 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.007152, allocations: 8 kB / 0.5557 GB, free: 11 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.007169, allocations: 7.984 kB / 0.5557 GB, free: 11 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 3.797e-05/0.007207, allocations: 19.92 kB / 0.5557 GB, free: 10.98 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001732/0.007381, allocations: 39.89 kB / 0.5557 GB, free: 10.94 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.007387, allocations: 0 / 0.5557 GB, free: 10.94 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.007389, allocations: 0 / 0.5557 GB, free: 10.94 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.007395, allocations: 0 / 0.5557 GB, free: 10.94 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006363/0.008032, allocations: 290 kB / 0.556 GB, free: 10.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.218e-05/0.008104, allocations: 8.031 kB / 0.556 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.183e-05/0.008186, allocations: 38.73 kB / 0.556 GB, free: 10.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.008403, allocations: 12.89 kB / 0.5561 GB, free: 10.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.008785, allocations: 121.7 kB / 0.5562 GB, free: 10.41 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.008795, allocations: 8.375 kB / 0.5562 GB, free: 10.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.008807, allocations: 8.312 kB / 0.5562 GB, free: 10.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001657/0.008973, allocations: 81.67 kB / 0.5563 GB, free: 10.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.008982, allocations: 192 / 0.5563 GB, free: 10.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.009001, allocations: 4.125 kB / 0.5563 GB, free: 10.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.009008, allocations: 0 / 0.5563 GB, free: 10.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.823e-05/0.009086, allocations: 27.92 kB / 0.5563 GB, free: 10.27 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/0.009612, allocations: 0.4925 MB / 0.5568 GB, free: 9.723 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.1e-05/0.009693, allocations: 30.58 kB / 0.5568 GB, free: 9.684 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.777e-05/0.00973, allocations: 16.91 kB / 0.5568 GB, free: 9.664 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.009753, allocations: 7.984 kB / 0.5568 GB, free: 9.656 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.009805, allocations: 34.5 kB / 0.5569 GB, free: 9.613 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 3.116e-06/0.009808, allocations: 0 / 0.5569 GB, free: 9.613 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004217/0.01023, allocations: 61.62 kB / 0.5569 GB, free: 9.547 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.01026, allocations: 55.41 kB / 0.557 GB, free: 9.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.822e-05/0.01036, allocations: 118.1 kB / 0.5571 GB, free: 9.352 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.01037, allocations: 33.83 kB / 0.5571 GB, free: 9.312 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.216e-05/0.01043, allocations: 92.12 kB / 0.5572 GB, free: 9.219 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.01044, allocations: 3.953 kB / 0.5572 GB, free: 9.215 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.01048, allocations: 17.72 kB / 0.5572 GB, free: 9.191 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.01059, allocations: 318.8 kB / 0.5575 GB, free: 8.871 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.216e-05/0.01062, allocations: 8 kB / 0.5575 GB, free: 8.863 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.389e-05/0.01065, allocations: 11.98 kB / 0.5575 GB, free: 8.852 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.767e-05/0.0107, allocations: 28.78 kB / 0.5576 GB, free: 8.82 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.01071, allocations: 64 / 0.5576 GB, free: 8.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.422e-05/0.0108, allocations: 57.64 kB / 0.5576 GB, free: 8.758 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.01082, allocations: 4 kB / 0.5576 GB, free: 8.754 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.01083, allocations: 0 / 0.5576 GB, free: 8.754 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.01084, allocations: 0 / 0.5576 GB, free: 8.754 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.212e-05/0.01092, allocations: 4 kB / 0.5576 GB, free: 8.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.01092, allocations: 4 kB / 0.5576 GB, free: 8.746 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.01094, allocations: 7.922 kB / 0.5576 GB, free: 8.738 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.01095, allocations: 0 / 0.5576 GB, free: 8.738 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.23e-05/0.01101, allocations: 121.8 kB / 0.5578 GB, free: 8.609 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.01103, allocations: 7.953 kB / 0.5578 GB, free: 8.602 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.293e-05/0.01105, allocations: 3.625 kB / 0.5578 GB, free: 8.602 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01105, allocations: 0 / 0.5578 GB, free: 8.602 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.01106, allocations: 3.938 kB / 0.5578 GB, free: 8.598 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.01106, allocations: 3.984 kB / 0.5578 GB, free: 8.594 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.01123, allocations: 144.7 kB / 0.5579 GB, free: 8.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.01123, allocations: 0 / 0.5579 GB, free: 8.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.982e-05/0.01127, allocations: 4 kB / 0.5579 GB, free: 8.406 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.01127, allocations: 0 / 0.5579 GB, free: 8.406 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.01128, allocations: 0 / 0.5579 GB, free: 8.406 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.007e-05/0.01129, allocations: 7.984 kB / 0.5579 GB, free: 8.398 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01129, allocations: 0 / 0.5579 GB, free: 8.398 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.01143, allocations: 155.4 kB / 0.5581 GB, free: 8.23 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.615e-05/0.01145, allocations: 3.938 kB / 0.5581 GB, free: 8.227 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.01146, allocations: 4 kB / 0.5581 GB, free: 8.223 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.337e-05/0.0115, allocations: 3.984 kB / 0.5581 GB, free: 8.219 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.01152, allocations: 0 / 0.5581 GB, free: 8.219 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.01152, allocations: 4 kB / 0.5581 GB, free: 8.215 MB / 490.7 MB Notification: Performance of sorting global known variables: time 4.365e-05/0.01157, allocations: 98.64 kB / 0.5582 GB, free: 8.121 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01157, allocations: 32 / 0.5582 GB, free: 8.121 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001425/0.01171, allocations: 19.94 kB / 0.5582 GB, free: 8.102 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004342/0.01215, allocations: 0.6772 MB / 0.5589 GB, free: 7.398 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.01226, allocations: 23.98 kB / 0.5589 GB, free: 7.375 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.01226, allocations: 0 / 0.5589 GB, free: 7.375 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.281e-05/0.01228, allocations: 11.94 kB / 0.5589 GB, free: 7.363 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.01247, allocations: 11.95 kB / 0.5589 GB, free: 7.355 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.01373, allocations: 1.311 MB / 0.5602 GB, free: 5.965 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.664e-05/0.01379, allocations: 71.33 kB / 0.5603 GB, free: 5.875 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 3.528e-05/0.01382, allocations: 0 / 0.5603 GB, free: 5.875 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.171e-05/0.01388, allocations: 20.5 kB / 0.5603 GB, free: 5.855 MB / 490.7 MB Notification: Performance of SimCode: time 1.312e-06/0.01388, allocations: 0 / 0.5603 GB, free: 5.855 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.0405, allocations: 2.076 MB / 0.5623 GB, free: 3.902 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.306/8.347, allocations: 8 kB / 0.5623 GB, free: 3.895 MB / 490.7 MB " [Timeout remaining time 652] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Idealized_EnergyFlow_Tests_EnergyFlowSource_fmu --startTime=0 --stopTime=1 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Idealized_EnergyFlow_Tests_EnergyFlowSource.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable CPUtime in file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable CPUtime from file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! Error: Could not read variable EventCounter in file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable EventCounter from file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! Error: Could not read variable _derdummy in file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable _derdummy from file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! Error: Could not read variable _dummy in file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable _dummy from file ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.655278342776]