Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.0008559/0.0008559, allocations: 76.5 kB / 19.93 MB, free: 4.621 MB / 18.57 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.0008254/0.0008254, allocations: 177.9 kB / 23.21 MB, free: 1.34 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 0.8617/0.8617, allocations: 177.2 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6489/0.6489, allocations: 118.6 MB / 378.6 MB, free: 1.609 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: translateModel(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100,variableFilter="CPUtime|EventCounter|Time|_derdummy|_dummy|energyFlowSource.E_flow|energyFlowSource.E_flow_out|energyFlowSource1.E_flow|energyFlowSource1.E_flow_out|energyFlowSource2.E_flow|energyFlowSource2.E_flow_out|energyFlowSource3.E_flow|energyFlowSource3.E_flow_out|gain.k|gain.u|gain.y|sine.amplitude|sine.continuous|sine.f|sine.offset|sine.phase|sine.startTime|sine.y",fileNamePrefix="ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource") translateModel(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100,variableFilter="CPUtime|EventCounter|Time|_derdummy|_dummy|energyFlowSource.E_flow|energyFlowSource.E_flow_out|energyFlowSource1.E_flow|energyFlowSource1.E_flow_out|energyFlowSource2.E_flow|energyFlowSource2.E_flow_out|energyFlowSource3.E_flow|energyFlowSource3.E_flow_out|gain.k|gain.u|gain.y|sine.amplitude|sine.continuous|sine.f|sine.offset|sine.phase|sine.startTime|sine.y",fileNamePrefix="ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 0.5576 GB, free: 9.367 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.648e-05, allocations: 5.516 kB / 0.5576 GB, free: 9.363 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.002261/0.002287, allocations: 1.608 MB / 0.5592 GB, free: 7.738 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006701/0.002958, allocations: 462.8 kB / 0.5596 GB, free: 7.281 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.214e-05/0.00302, allocations: 0 / 0.5596 GB, free: 7.281 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.725e-05/0.003047, allocations: 3.938 kB / 0.5596 GB, free: 7.277 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.761e-05/0.003095, allocations: 11.81 kB / 0.5597 GB, free: 7.266 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.003329, allocations: 39.83 kB / 0.5597 GB, free: 7.227 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.003432, allocations: 43.8 kB / 0.5597 GB, free: 7.184 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.052e-05/0.003523, allocations: 11.98 kB / 0.5597 GB, free: 7.172 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.003652, allocations: 31.91 kB / 0.5598 GB, free: 7.141 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.586e-05/0.003698, allocations: 15.92 kB / 0.5598 GB, free: 7.125 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.003714, allocations: 8 kB / 0.5598 GB, free: 7.117 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.458e-05/0.003758, allocations: 11.94 kB / 0.5598 GB, free: 7.105 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.153e-05/0.00377, allocations: 3.984 kB / 0.5598 GB, free: 7.102 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.003796, allocations: 19.92 kB / 0.5598 GB, free: 7.082 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.003909, allocations: 47.83 kB / 0.5599 GB, free: 7.035 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.003911, allocations: 0 / 0.5599 GB, free: 7.035 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.003912, allocations: 0 / 0.5599 GB, free: 7.035 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.003916, allocations: 0 / 0.5599 GB, free: 7.035 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.0003561/0.004273, allocations: 278.1 kB / 0.5601 GB, free: 6.734 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.004311, allocations: 12.03 kB / 0.5602 GB, free: 6.723 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.00445, allocations: 24.88 kB / 0.5602 GB, free: 6.699 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.004644, allocations: 121.7 kB / 0.5603 GB, free: 6.555 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.004656, allocations: 4.375 kB / 0.5603 GB, free: 6.551 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.958e-06/0.004666, allocations: 4.375 kB / 0.5603 GB, free: 6.547 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.004829, allocations: 81.67 kB / 0.5604 GB, free: 6.449 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.004839, allocations: 4.125 kB / 0.5604 GB, free: 6.445 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.004852, allocations: 384 / 0.5604 GB, free: 6.445 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.00486, allocations: 3.938 kB / 0.5604 GB, free: 6.441 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.855e-05/0.004928, allocations: 35.92 kB / 0.5604 GB, free: 6.406 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004143/0.005343, allocations: 469 kB / 0.5609 GB, free: 5.906 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.704e-05/0.00542, allocations: 38.44 kB / 0.5609 GB, free: 5.859 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.499e-05/0.005455, allocations: 12.92 kB / 0.5609 GB, free: 5.844 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.005467, allocations: 0 / 0.5609 GB, free: 5.844 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.005489, allocations: 38.55 kB / 0.561 GB, free: 5.797 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.422e-06/0.00549, allocations: 0 / 0.561 GB, free: 5.797 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001897/0.00568, allocations: 57.78 kB / 0.561 GB, free: 5.734 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.005713, allocations: 59.34 kB / 0.5611 GB, free: 5.664 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.142e-05/0.005795, allocations: 117.8 kB / 0.5612 GB, free: 5.539 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.005807, allocations: 25.7 kB / 0.5612 GB, free: 5.508 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.00585, allocations: 92.47 kB / 0.5613 GB, free: 5.414 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.005868, allocations: 3.953 kB / 0.5613 GB, free: 5.41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.619e-05/0.005894, allocations: 9.719 kB / 0.5613 GB, free: 5.395 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.005982, allocations: 322.8 kB / 0.5616 GB, free: 5.07 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.806e-05/0.00601, allocations: 7.938 kB / 0.5616 GB, free: 5.062 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.262e-05/0.006032, allocations: 15.98 kB / 0.5616 GB, free: 5.047 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.449e-05/0.006087, allocations: 32.88 kB / 0.5617 GB, free: 5.012 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.006089, allocations: 3.938 kB / 0.5617 GB, free: 5.008 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.564e-05/0.006175, allocations: 57.58 kB / 0.5617 GB, free: 4.945 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.00619, allocations: 4 kB / 0.5617 GB, free: 4.941 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.006195, allocations: 0 / 0.5617 GB, free: 4.941 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.00621, allocations: 0 / 0.5617 GB, free: 4.941 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.963e-05/0.00628, allocations: 7.984 kB / 0.5617 GB, free: 4.934 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.006286, allocations: 0 / 0.5617 GB, free: 4.934 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.119e-05/0.006307, allocations: 8.031 kB / 0.5617 GB, free: 4.926 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.006313, allocations: 0 / 0.5617 GB, free: 4.926 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 7.001e-05/0.006383, allocations: 117.8 kB / 0.5619 GB, free: 4.801 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.006399, allocations: 0 / 0.5619 GB, free: 4.801 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.006422, allocations: 7.625 kB / 0.5619 GB, free: 4.793 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.006427, allocations: 3.984 kB / 0.5619 GB, free: 4.789 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.006432, allocations: 0 / 0.5619 GB, free: 4.789 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.006436, allocations: 0 / 0.5619 GB, free: 4.789 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.006542, allocations: 113.2 kB / 0.562 GB, free: 4.648 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.006543, allocations: 0 / 0.562 GB, free: 4.648 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.291e-05/0.006566, allocations: 12 kB / 0.562 GB, free: 4.637 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.006568, allocations: 3.984 kB / 0.562 GB, free: 4.633 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.006575, allocations: 0 / 0.562 GB, free: 4.633 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.006577, allocations: 0 / 0.562 GB, free: 4.633 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.006579, allocations: 4 kB / 0.562 GB, free: 4.629 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001218/0.006701, allocations: 155.4 kB / 0.5621 GB, free: 4.461 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.354e-06/0.006708, allocations: 3.938 kB / 0.5621 GB, free: 4.457 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.006719, allocations: 4 kB / 0.5621 GB, free: 4.453 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.061e-05/0.00675, allocations: 0 / 0.5621 GB, free: 4.453 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.006786, allocations: 3.984 kB / 0.5622 GB, free: 4.449 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.006793, allocations: 12.03 kB / 0.5622 GB, free: 4.438 MB / 490.7 MB Notification: Performance of sorting global known variables: time 4.276e-05/0.006836, allocations: 91.27 kB / 0.5623 GB, free: 4.348 MB / 490.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006836, allocations: 0 / 0.5623 GB, free: 4.348 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001575/0.006993, allocations: 8.234 kB / 0.5623 GB, free: 4.34 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 9.752e-05/0.007091, allocations: 99.25 kB / 0.5624 GB, free: 4.234 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.007196, allocations: 19.92 kB / 0.5624 GB, free: 4.215 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.007198, allocations: 3.938 kB / 0.5624 GB, free: 4.211 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.547e-05/0.007223, allocations: 20.05 kB / 0.5624 GB, free: 4.191 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.007402, allocations: 10.06 kB / 0.5624 GB, free: 4.184 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003389/0.007741, allocations: 174.3 kB / 0.5626 GB, free: 3.98 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.653e-05/0.007787, allocations: 71.33 kB / 0.5626 GB, free: 3.891 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.491e-05/0.007812, allocations: 8.5 kB / 0.5626 GB, free: 3.883 MB / 490.7 MB Notification: Performance of SimCode: time 6.92e-07/0.007813, allocations: 0 / 0.5626 GB, free: 3.883 MB / 490.7 MB Notification: Performance of Templates: time 0.001508/0.009321, allocations: 0.6395 MB / 0.5633 GB, free: 3.246 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe >> ../files/ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.sim & ./ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource -emit_protected > ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable CPUtime from file ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! Error: Could not read variable EventCounter in file ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable EventCounter from file ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! Error: Could not read variable _derdummy in file ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable _derdummy from file ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! Error: Could not read variable _dummy in file ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat. Warning: Get data of variable _dummy from file ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.937560621649027]