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.001913/0.001913, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 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.00199/0.00199, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.619/1.619, allocations: 177.1 MB / 203.1 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 178] 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 1.082/1.082, allocations: 118.6 MB / 378.2 MB, free: 1.492 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.613e-06/1.613e-06, allocations: 0 / 482.9 MB, free: 8.328 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.42e-05/2.581e-05, allocations: 2.312 kB / 482.9 MB, free: 8.324 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.002359/0.002384, allocations: 1.631 MB / 484.5 MB, free: 7.199 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006774/0.003062, allocations: 461.5 kB / 485 MB, free: 6.898 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.762e-05/0.003119, allocations: 1.156 kB / 485 MB, free: 6.898 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.631e-05/0.003146, allocations: 11.03 kB / 485 MB, free: 6.891 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.042e-05/0.003216, allocations: 14.06 kB / 485 MB, free: 6.879 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001996/0.003416, allocations: 27.39 kB / 485 MB, free: 6.863 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.003534, allocations: 49.31 kB / 485.1 MB, free: 6.84 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.267e-05/0.003627, allocations: 7.875 kB / 485.1 MB, free: 6.836 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.003765, allocations: 36.25 kB / 485.1 MB, free: 6.82 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.761e-05/0.003813, allocations: 16.97 kB / 485.1 MB, free: 6.816 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.003829, allocations: 2.781 kB / 485.1 MB, free: 6.816 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.824e-05/0.003867, allocations: 5.688 kB / 485.1 MB, free: 6.816 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.00388, allocations: 5.812 kB / 485.1 MB, free: 6.812 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.852e-05/0.003909, allocations: 26.08 kB / 485.2 MB, free: 6.797 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.004016, allocations: 39.58 kB / 485.2 MB, free: 6.781 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.004019, allocations: 0.9688 kB / 485.2 MB, free: 6.781 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.004019, allocations: 7.875 kB / 485.2 MB, free: 6.773 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.277e-06/0.004023, allocations: 0 / 485.2 MB, free: 6.773 MB / 410.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.0004867/0.004509, allocations: 389.1 kB / 485.6 MB, free: 22.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.004545, allocations: 9.094 kB / 485.6 MB, free: 22.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.004684, allocations: 15.3 kB / 485.6 MB, free: 22.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.004805, allocations: 126.1 kB / 485.7 MB, free: 22.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.004817, allocations: 9.875 kB / 485.7 MB, free: 22.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.00483, allocations: 3.062 kB / 485.7 MB, free: 22.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.004982, allocations: 96.55 kB / 485.8 MB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.00499, allocations: 192 / 485.8 MB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.005, allocations: 1.781 kB / 485.8 MB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.005005, allocations: 3.938 kB / 485.8 MB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.522e-05/0.0051, allocations: 29.92 kB / 485.9 MB, free: 22.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005907/0.005691, allocations: 0.6479 MB / 486.5 MB, free: 21.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.075e-05/0.005762, allocations: 38.59 kB / 486.6 MB, free: 21.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.587e-05/0.005798, allocations: 20.66 kB / 486.6 MB, free: 21.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.005813, allocations: 0 / 486.6 MB, free: 21.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.005828, allocations: 38.7 kB / 486.6 MB, free: 21.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 7.02e-07/0.005829, allocations: 1.438 kB / 486.6 MB, free: 21.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002086/0.006037, allocations: 58.69 kB / 486.7 MB, free: 21.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.012e-05/0.006057, allocations: 51.41 kB / 486.7 MB, free: 21.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.006184, allocations: 183.1 kB / 486.9 MB, free: 21.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.913e-06/0.006191, allocations: 25.7 kB / 486.9 MB, free: 21.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/0.006277, allocations: 146.8 kB / 487.1 MB, free: 20.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.006292, allocations: 12.02 kB / 487.1 MB, free: 20.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-05/0.006322, allocations: 17.84 kB / 487.1 MB, free: 20.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002682/0.00659, allocations: 499.3 kB / 487.6 MB, free: 20.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.504e-05/0.006625, allocations: 7.422 kB / 487.6 MB, free: 20.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.416e-05/0.00665, allocations: 7.969 kB / 487.6 MB, free: 20.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.091e-05/0.00671, allocations: 26.27 kB / 487.6 MB, free: 20.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.006713, allocations: 3.938 kB / 487.6 MB, free: 20.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.937e-05/0.006803, allocations: 51.03 kB / 487.7 MB, free: 20.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.006817, allocations: 9.688 kB / 487.7 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.006822, allocations: 0 / 487.7 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.006836, allocations: 0.8438 kB / 487.7 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.178e-05/0.006898, allocations: 10.17 kB / 487.7 MB, free: 20.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.006902, allocations: 1.594 kB / 487.7 MB, free: 20.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.864e-05/0.006941, allocations: 1.562 kB / 487.7 MB, free: 20.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.006947, allocations: 4 kB / 487.7 MB, free: 20.3 MB / 426.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 0.0001002/0.007047, allocations: 163.2 kB / 487.9 MB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.007072, allocations: 6.797 kB / 487.9 MB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.098e-05/0.007093, allocations: 8.328 kB / 487.9 MB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.007094, allocations: 4 kB / 487.9 MB, free: 20.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.007097, allocations: 0 / 487.9 MB, free: 20.12 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.007099, allocations: 1.719 kB / 487.9 MB, free: 20.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.007234, allocations: 125.6 kB / 488 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.007236, allocations: 3.938 kB / 488 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.706e-05/0.007273, allocations: 7.312 kB / 488 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.007274, allocations: 0 / 488 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.007281, allocations: 5.312 kB / 488 MB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.007282, allocations: 0 / 488 MB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.007283, allocations: 0 / 488 MB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001892/0.007472, allocations: 199.6 kB / 488.2 MB, free: 19.78 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.111e-05/0.007483, allocations: 13.78 kB / 488.2 MB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.007495, allocations: 3.984 kB / 488.2 MB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.562e-05/0.007551, allocations: 1.375 kB / 488.2 MB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.007585, allocations: 1.375 kB / 488.2 MB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.007588, allocations: 0 / 488.2 MB, free: 19.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.921e-05/0.007677, allocations: 136 kB / 488.4 MB, free: 19.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007677, allocations: 0 / 488.4 MB, free: 19.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000216/0.007893, allocations: 5.5 kB / 488.4 MB, free: 19.64 MB / 426.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.517e-05/0.007988, allocations: 101.8 kB / 488.5 MB, free: 19.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.008098, allocations: 29.86 kB / 488.5 MB, free: 19.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.008099, allocations: 0 / 488.5 MB, free: 19.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.643e-05/0.008136, allocations: 18.56 kB / 488.5 MB, free: 19.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.008341, allocations: 8.75 kB / 488.5 MB, free: 19.51 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002819/0.008623, allocations: 152 kB / 488.7 MB, free: 19.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.162e-05/0.008674, allocations: 71.56 kB / 488.8 MB, free: 19.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.319e-05/0.008697, allocations: 5.375 kB / 488.8 MB, free: 19.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.384e-05/0.008721, allocations: 9.875 kB / 488.8 MB, free: 19.29 MB / 426.7 MB Notification: Performance of SimCode: time 4.21e-07/0.008722, allocations: 3.938 kB / 488.8 MB, free: 19.28 MB / 426.7 MB Notification: Performance of Templates: time 0.002645/0.01137, allocations: 337.4 kB / 489.1 MB, free: 19.23 MB / 426.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 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe 2>&1) [Timeout 240] 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: 5.900239590904675]