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.001077/0.001077, allocations: 93.06 kB / 19.65 MB, free: 276 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.001174/0.001174, allocations: 169 kB / 23.02 MB, free: 1.551 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.025/1.025, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.7087/0.7087, allocations: 118.6 MB / 378.6 MB, free: 1.508 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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: 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_dev_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_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 483.6 MB, free: 8.211 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.677e-05/2.831e-05, allocations: 2.312 kB / 483.6 MB, free: 8.207 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.002253/0.002281, allocations: 1.653 MB / 485.2 MB, free: 7.09 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006711/0.002953, allocations: 465.5 kB / 485.7 MB, free: 6.789 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.656e-05/0.003009, allocations: 1.375 kB / 485.7 MB, free: 6.789 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.239e-05/0.003041, allocations: 11.3 kB / 485.7 MB, free: 6.781 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.586e-05/0.003087, allocations: 9.297 kB / 485.7 MB, free: 6.773 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001869/0.003274, allocations: 29.97 kB / 485.8 MB, free: 6.758 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.791e-05/0.003362, allocations: 55.17 kB / 485.8 MB, free: 6.727 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.82e-05/0.00344, allocations: 9.656 kB / 485.8 MB, free: 6.723 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.00356, allocations: 29.69 kB / 485.8 MB, free: 6.715 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.685e-05/0.003597, allocations: 16.89 kB / 485.9 MB, free: 6.707 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.00361, allocations: 2.75 kB / 485.9 MB, free: 6.707 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.81e-05/0.003648, allocations: 9.438 kB / 485.9 MB, free: 6.703 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.003657, allocations: 12.64 kB / 485.9 MB, free: 6.695 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.003677, allocations: 14.81 kB / 485.9 MB, free: 6.688 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.003781, allocations: 38.7 kB / 485.9 MB, free: 6.668 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.003783, allocations: 4 kB / 485.9 MB, free: 6.664 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.003784, allocations: 0 / 485.9 MB, free: 6.664 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.003787, allocations: 1.375 kB / 485.9 MB, free: 6.664 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.0004912/0.004278, allocations: 384 kB / 486.3 MB, free: 22.28 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.004313, allocations: 8.25 kB / 486.3 MB, free: 22.28 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.004428, allocations: 14.52 kB / 486.3 MB, free: 22.28 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.004564, allocations: 125.2 kB / 486.5 MB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-06/0.004572, allocations: 5.75 kB / 486.5 MB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.004583, allocations: 3.125 kB / 486.5 MB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.004702, allocations: 104 kB / 486.6 MB, free: 22.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.004709, allocations: 5.562 kB / 486.6 MB, free: 22.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.004719, allocations: 384 / 486.6 MB, free: 22.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.004729, allocations: 5.312 kB / 486.6 MB, free: 22.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.781e-05/0.004767, allocations: 15.09 kB / 486.6 MB, free: 22.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004226/0.00519, allocations: 0.6501 MB / 487.2 MB, free: 21.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.363e-05/0.005243, allocations: 34.55 kB / 487.3 MB, free: 21.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.173e-05/0.005265, allocations: 10.44 kB / 487.3 MB, free: 21.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.005281, allocations: 0 / 487.3 MB, free: 21.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.495e-05/0.005296, allocations: 38.77 kB / 487.3 MB, free: 21.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.005297, allocations: 5.312 kB / 487.3 MB, free: 21.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001572/0.005454, allocations: 41.33 kB / 487.4 MB, free: 21.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.259e-05/0.005476, allocations: 52.78 kB / 487.4 MB, free: 21.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.447e-05/0.005551, allocations: 167.9 kB / 487.6 MB, free: 20.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.517e-06/0.00556, allocations: 25.7 kB / 487.6 MB, free: 20.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.005612, allocations: 149.9 kB / 487.8 MB, free: 20.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.005628, allocations: 3.953 kB / 487.8 MB, free: 20.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.005654, allocations: 25.06 kB / 487.8 MB, free: 20.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.005771, allocations: 497.5 kB / 488.3 MB, free: 20.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.345e-05/0.005785, allocations: 6.875 kB / 488.3 MB, free: 20.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.939e-06/0.005795, allocations: 8.359 kB / 488.3 MB, free: 20.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.951e-05/0.005824, allocations: 11.81 kB / 488.3 MB, free: 20.26 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.005827, allocations: 3.938 kB / 488.3 MB, free: 20.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.639e-05/0.005883, allocations: 39.33 kB / 488.3 MB, free: 20.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.005903, allocations: 11.53 kB / 488.4 MB, free: 20.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.005909, allocations: 0 / 488.4 MB, free: 20.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.005926, allocations: 1.375 kB / 488.4 MB, free: 20.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.022e-05/0.005986, allocations: 2.75 kB / 488.4 MB, free: 20.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.005991, allocations: 5.469 kB / 488.4 MB, free: 20.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.741e-05/0.006008, allocations: 9.359 kB / 488.4 MB, free: 20.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.006013, allocations: 0 / 488.4 MB, free: 20.21 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 6.645e-05/0.006079, allocations: 165.1 kB / 488.5 MB, free: 20.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.006098, allocations: 6.703 kB / 488.5 MB, free: 20.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.601e-05/0.006124, allocations: 9 kB / 488.6 MB, free: 20.03 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.006126, allocations: 1.375 kB / 488.6 MB, free: 20.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.00613, allocations: 0 / 488.6 MB, free: 20.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.006133, allocations: 0 / 488.6 MB, free: 20.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.727e-05/0.00623, allocations: 122.8 kB / 488.7 MB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.006232, allocations: 3.938 kB / 488.7 MB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.992e-05/0.006252, allocations: 8.125 kB / 488.7 MB, free: 19.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.006254, allocations: 0 / 488.7 MB, free: 19.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.00626, allocations: 1.375 kB / 488.7 MB, free: 19.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.006262, allocations: 0 / 488.7 MB, free: 19.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.006263, allocations: 0 / 488.7 MB, free: 19.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.006376, allocations: 189.9 kB / 488.9 MB, free: 19.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.287e-06/0.006385, allocations: 9.859 kB / 488.9 MB, free: 19.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.668e-06/0.006394, allocations: 0 / 488.9 MB, free: 19.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.724e-05/0.006422, allocations: 1.344 kB / 488.9 MB, free: 19.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.006454, allocations: 5.281 kB / 488.9 MB, free: 19.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.006457, allocations: 5.344 kB / 488.9 MB, free: 19.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.241e-05/0.006499, allocations: 133.8 kB / 489 MB, free: 19.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006499, allocations: 0 / 489 MB, free: 19.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001417/0.006641, allocations: 6.281 kB / 489 MB, free: 19.56 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 7.976e-05/0.006721, allocations: 99.94 kB / 489.1 MB, free: 19.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.8e-05/0.006809, allocations: 17.59 kB / 489.1 MB, free: 19.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.00681, allocations: 0 / 489.1 MB, free: 19.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.518e-05/0.006825, allocations: 11.03 kB / 489.2 MB, free: 19.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.006987, allocations: 16.05 kB / 489.2 MB, free: 19.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005571/0.007544, allocations: 155.8 kB / 489.3 MB, free: 19.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.127e-05/0.007586, allocations: 57.84 kB / 489.4 MB, free: 19.22 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.275e-05/0.007608, allocations: 1.469 kB / 489.4 MB, free: 19.22 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.007635, allocations: 9.469 kB / 489.4 MB, free: 19.21 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/0.007636, allocations: 0 / 489.4 MB, free: 19.21 MB / 426.7 MB Notification: Performance of Templates: time 0.00201/0.009646, allocations: 343.5 kB / 489.7 MB, free: 19.18 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.makefile [Timeout 660] (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 & ./ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource_ref.mat","",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: 3.8223558757454157]