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.0009269/0.0009269, allocations: 105.5 kB / 18.95 MB, free: 1.184 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.001203/0.001203, allocations: 214.5 kB / 22.25 MB, free: 3.574 MB / 13.93 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.002/1.002, allocations: 230.6 MB / 256 MB, free: 9.617 MB / 202.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.7704/0.7704, allocations: 150.8 MB / 463.2 MB, free: 6.477 MB / 362.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 0.001097/0.001097, allocations: 92.31 kB / 0.6392 GB, free: 32.52 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1587, allocations: 88.08 MB / 0.7252 GB, free: 8.383 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.002628/0.1613, allocations: 1.601 MB / 0.7267 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.0007683/0.1621, allocations: 446.9 kB / 0.7272 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.871e-05/0.1622, allocations: 0 / 0.7272 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 3.747e-05/0.1622, allocations: 7.875 kB / 0.7272 GB, free: 6.32 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 7.445e-05/0.1623, allocations: 23.84 kB / 0.7272 GB, free: 6.297 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.1626, allocations: 23.92 kB / 0.7272 GB, free: 6.273 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.1627, allocations: 51.78 kB / 0.7273 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 9.295e-05/0.1628, allocations: 4.281 kB / 0.7273 GB, free: 6.219 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.1629, allocations: 31.84 kB / 0.7273 GB, free: 6.188 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 4.754e-05/0.1629, allocations: 19.92 kB / 0.7273 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.1629, allocations: 0 / 0.7273 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 4.08e-05/0.163, allocations: 8 kB / 0.7273 GB, free: 6.16 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.163, allocations: 7.938 kB / 0.7273 GB, free: 6.152 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 2.521e-05/0.163, allocations: 23.86 kB / 0.7274 GB, free: 6.129 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.1631, allocations: 51.75 kB / 0.7274 GB, free: 6.078 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1631, allocations: 0 / 0.7274 GB, free: 6.078 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.512e-06/0.1631, allocations: 0 / 0.7274 GB, free: 6.078 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.1631, allocations: 0 / 0.7274 GB, free: 6.078 MB / 0.5417 GB 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.0004045/0.1635, allocations: 282.2 kB / 0.7277 GB, free: 5.773 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.1636, allocations: 12.03 kB / 0.7277 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.356e-05/0.1636, allocations: 42.72 kB / 0.7277 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.1637, allocations: 16.83 kB / 0.7277 GB, free: 5.695 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.1639, allocations: 122.4 kB / 0.7279 GB, free: 5.551 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.1639, allocations: 384 / 0.7279 GB, free: 5.551 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.054e-05/0.1639, allocations: 16.38 kB / 0.7279 GB, free: 5.535 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.1641, allocations: 81.23 kB / 0.7279 GB, free: 5.438 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1641, allocations: 3.938 kB / 0.728 GB, free: 5.434 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.1641, allocations: 0 / 0.728 GB, free: 5.434 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1641, allocations: 0 / 0.728 GB, free: 5.434 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.153e-05/0.1641, allocations: 27.98 kB / 0.728 GB, free: 5.406 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003832/0.1645, allocations: 0.4964 MB / 0.7285 GB, free: 4.855 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 6.625e-05/0.1646, allocations: 34.5 kB / 0.7285 GB, free: 4.812 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.723e-05/0.1646, allocations: 12.92 kB / 0.7285 GB, free: 4.797 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.1646, allocations: 4 kB / 0.7285 GB, free: 4.793 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.1646, allocations: 34.56 kB / 0.7285 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 6.71e-07/0.1647, allocations: 0 / 0.7285 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001659/0.1648, allocations: 57.67 kB / 0.7286 GB, free: 4.688 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.1648, allocations: 55.34 kB / 0.7287 GB, free: 4.621 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.766e-05/0.1649, allocations: 125.5 kB / 0.7288 GB, free: 4.488 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.1649, allocations: 25.7 kB / 0.7288 GB, free: 4.457 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.812e-05/0.165, allocations: 104.2 kB / 0.7289 GB, free: 4.352 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.165, allocations: 11.83 kB / 0.7289 GB, free: 4.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.293e-05/0.165, allocations: 13.72 kB / 0.7289 GB, free: 4.32 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.833e-05/0.1651, allocations: 326.8 kB / 0.7292 GB, free: 3.992 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.663e-05/0.1651, allocations: 4 kB / 0.7292 GB, free: 3.988 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.157e-05/0.1651, allocations: 15.98 kB / 0.7293 GB, free: 3.973 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.427e-05/0.1652, allocations: 24.84 kB / 0.7293 GB, free: 3.945 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1652, allocations: 0 / 0.7293 GB, free: 3.945 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.801e-05/0.1653, allocations: 53.75 kB / 0.7293 GB, free: 3.887 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.1653, allocations: 4 kB / 0.7293 GB, free: 3.883 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1653, allocations: 3.938 kB / 0.7293 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.1653, allocations: 0 / 0.7293 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.363e-05/0.1653, allocations: 7.984 kB / 0.7293 GB, free: 3.871 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.1653, allocations: 0 / 0.7293 GB, free: 3.871 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.738e-05/0.1654, allocations: 7.938 kB / 0.7293 GB, free: 3.863 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-06/0.1654, allocations: 0 / 0.7293 GB, free: 3.863 MB / 0.5417 GB 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 5.683e-05/0.1654, allocations: 113.8 kB / 0.7295 GB, free: 3.742 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.313e-05/0.1654, allocations: 15.92 kB / 0.7295 GB, free: 3.727 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.926e-05/0.1654, allocations: 7.609 kB / 0.7295 GB, free: 3.715 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1655, allocations: 0 / 0.7295 GB, free: 3.715 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.1655, allocations: 0 / 0.7295 GB, free: 3.715 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1655, allocations: 3.938 kB / 0.7295 GB, free: 3.711 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.1656, allocations: 136.8 kB / 0.7296 GB, free: 3.535 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1656, allocations: 0 / 0.7296 GB, free: 3.535 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.867e-05/0.1656, allocations: 4 kB / 0.7296 GB, free: 3.531 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1656, allocations: 3.984 kB / 0.7296 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.1656, allocations: 0 / 0.7296 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.1656, allocations: 0 / 0.7296 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1656, allocations: 4 kB / 0.7296 GB, free: 3.523 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1657, allocations: 159.4 kB / 0.7298 GB, free: 3.352 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.947e-06/0.1657, allocations: 0 / 0.7298 GB, free: 3.352 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.1657, allocations: 7.984 kB / 0.7298 GB, free: 3.344 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.931e-05/0.1657, allocations: 4 kB / 0.7298 GB, free: 3.34 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-05/0.1658, allocations: 0 / 0.7298 GB, free: 3.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.1658, allocations: 3.938 kB / 0.7298 GB, free: 3.336 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.045e-05/0.1658, allocations: 99.27 kB / 0.7299 GB, free: 3.238 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5e-08/0.1658, allocations: 0 / 0.7299 GB, free: 3.238 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001463/0.166, allocations: 15.98 kB / 0.7299 GB, free: 3.223 MB / 0.5417 GB 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.0002776/0.1662, allocations: 0.6734 MB / 0.7306 GB, free: 2.523 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.588e-05/0.1663, allocations: 27.92 kB / 0.7306 GB, free: 2.496 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1663, allocations: 0 / 0.7306 GB, free: 2.496 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.116e-05/0.1664, allocations: 15.92 kB / 0.7306 GB, free: 2.48 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.1665, allocations: 8.562 kB / 0.7306 GB, free: 2.473 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009093/0.1674, allocations: 1.307 MB / 0.7319 GB, free: 1.086 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.517e-05/0.1675, allocations: 67.33 kB / 0.732 GB, free: 1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.321e-05/0.1675, allocations: 0 / 0.732 GB, free: 1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.493e-05/0.1675, allocations: 15.44 kB / 0.732 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of SimCode: time 7.01e-07/0.1675, allocations: 0 / 0.732 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.1826, allocations: 1.937 MB / 0.7339 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.571/6.753, allocations: 7.016 kB / 0.7339 GB, free: 15.19 MB / 0.5573 GB " [Timeout remaining time 653] (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: 9.757598622702062]