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.0008048/0.0008048, allocations: 100.4 kB / 19.7 MB, free: 452 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.0008738/0.0008738, allocations: 212.1 kB / 23 MB, free: 2.98 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 0.9573/0.9573, allocations: 230.6 MB / 256.8 MB, free: 9.602 MB / 202.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.7963/0.7963, allocations: 154.1 MB / 467.3 MB, free: 3.32 MB / 362.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 0.001126/0.001126, allocations: 96.14 kB / 0.6442 GB, free: 28.53 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1513, allocations: 88.76 MB / 0.7309 GB, free: 3.574 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.002277/0.1535, allocations: 1.624 MB / 0.7325 GB, free: 1.934 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.0005588/0.1541, allocations: 451 kB / 0.7329 GB, free: 1.488 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.573e-05/0.1542, allocations: 0 / 0.7329 GB, free: 1.488 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 3.299e-05/0.1542, allocations: 3.938 kB / 0.7329 GB, free: 1.484 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 4.785e-05/0.1542, allocations: 15.86 kB / 0.7329 GB, free: 1.469 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.1544, allocations: 23.91 kB / 0.733 GB, free: 1.445 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.1546, allocations: 55.72 kB / 0.733 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 9.315e-05/0.1546, allocations: 4 kB / 0.733 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.1548, allocations: 27.92 kB / 0.733 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 4.874e-05/0.1548, allocations: 27.78 kB / 0.7331 GB, free: 1.332 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.1548, allocations: 4 kB / 0.7331 GB, free: 1.328 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 3.824e-05/0.1549, allocations: 12 kB / 0.7331 GB, free: 1.316 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 1.132e-05/0.1549, allocations: 4 kB / 0.7331 GB, free: 1.312 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.1549, allocations: 19.86 kB / 0.7331 GB, free: 1.293 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.155, allocations: 43.81 kB / 0.7332 GB, free: 1.25 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.155, allocations: 4 kB / 0.7332 GB, free: 1.246 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.714e-06/0.155, allocations: 0 / 0.7332 GB, free: 1.246 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.155, allocations: 3.938 kB / 0.7332 GB, free: 1.242 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.0003485/0.1554, allocations: 290 kB / 0.7334 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1554, allocations: 12.03 kB / 0.7334 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.1555, allocations: 12.94 kB / 0.7335 GB, free: 0.9062 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.1557, allocations: 122.4 kB / 0.7336 GB, free: 0.7617 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.1557, allocations: 4.375 kB / 0.7336 GB, free: 0.7578 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.1557, allocations: 384 / 0.7336 GB, free: 0.7578 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.1558, allocations: 89.36 kB / 0.7337 GB, free: 0.6523 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.1558, allocations: 0 / 0.7337 GB, free: 0.6523 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.1558, allocations: 4 kB / 0.7337 GB, free: 0.6484 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1558, allocations: 0 / 0.7337 GB, free: 0.6484 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.16e-05/0.1559, allocations: 27.92 kB / 0.7337 GB, free: 0.6211 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003255/0.1562, allocations: 477 kB / 0.7342 GB, free: 116 kB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.926e-05/0.1563, allocations: 30.56 kB / 0.7342 GB, free: 76 kB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.961e-05/0.1563, allocations: 16.91 kB / 0.7342 GB, free: 56 kB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.1563, allocations: 4 kB / 0.7342 GB, free: 52 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.1563, allocations: 30.56 kB / 0.7342 GB, free: 12 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 6.52e-07/0.1563, allocations: 0 / 0.7342 GB, free: 12 kB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001702/0.1565, allocations: 61.73 kB / 0.7343 GB, free: 15.94 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/0.1565, allocations: 55.44 kB / 0.7343 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.122e-05/0.1566, allocations: 118 kB / 0.7345 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 9.357e-06/0.1566, allocations: 29.7 kB / 0.7345 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.866e-05/0.1567, allocations: 84.14 kB / 0.7346 GB, free: 15.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.1567, allocations: 15.97 kB / 0.7346 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.357e-05/0.1567, allocations: 21.64 kB / 0.7346 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.501e-05/0.1568, allocations: 322.8 kB / 0.7349 GB, free: 15.27 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.402e-05/0.1568, allocations: 11.98 kB / 0.7349 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.652e-05/0.1568, allocations: 4 kB / 0.7349 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.274e-05/0.1569, allocations: 28.91 kB / 0.7349 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1569, allocations: 0 / 0.7349 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.535e-05/0.1569, allocations: 57.58 kB / 0.735 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.1569, allocations: 8 kB / 0.735 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1569, allocations: 4 kB / 0.735 GB, free: 15.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1569, allocations: 0 / 0.735 GB, free: 15.14 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.077e-05/0.157, allocations: 7.984 kB / 0.735 GB, free: 15.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.157, allocations: 3.938 kB / 0.735 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.157, allocations: 8.031 kB / 0.735 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.157, allocations: 0 / 0.735 GB, free: 15.12 MB / 0.5573 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.301e-05/0.1571, allocations: 113.8 kB / 0.7351 GB, free: 15 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.202e-05/0.1571, allocations: 4 kB / 0.7351 GB, free: 15 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.657e-05/0.1571, allocations: 7.609 kB / 0.7352 GB, free: 14.99 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1571, allocations: 0 / 0.7352 GB, free: 14.99 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1571, allocations: 4 kB / 0.7352 GB, free: 14.99 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.1571, allocations: 0 / 0.7352 GB, free: 14.99 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.091e-05/0.1572, allocations: 121.2 kB / 0.7353 GB, free: 14.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1572, allocations: 0 / 0.7353 GB, free: 14.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.721e-05/0.1572, allocations: 8 kB / 0.7353 GB, free: 14.83 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.02e-07/0.1572, allocations: 0 / 0.7353 GB, free: 14.83 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.1572, allocations: 3.984 kB / 0.7353 GB, free: 14.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.1572, allocations: 0 / 0.7353 GB, free: 14.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.51e-07/0.1572, allocations: 0 / 0.7353 GB, free: 14.83 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.97e-05/0.1573, allocations: 151.4 kB / 0.7354 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.126e-06/0.1573, allocations: 7.953 kB / 0.7354 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.076e-05/0.1574, allocations: 0 / 0.7354 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.094e-05/0.1574, allocations: 7.984 kB / 0.7354 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.1574, allocations: 3.984 kB / 0.7354 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-06/0.1574, allocations: 4.031 kB / 0.7355 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 3.594e-05/0.1574, allocations: 95.2 kB / 0.7355 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.1574, allocations: 0 / 0.7355 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001501/0.1576, allocations: 8 kB / 0.7355 GB, free: 14.54 MB / 0.5573 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 6.246e-05/0.1577, allocations: 91.25 kB / 0.7356 GB, free: 14.44 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 9.023e-05/0.1578, allocations: 31.86 kB / 0.7357 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1578, allocations: 0 / 0.7357 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 2.319e-05/0.1578, allocations: 12.05 kB / 0.7357 GB, free: 14.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001613/0.1579, allocations: 9.609 kB / 0.7357 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003087/0.1582, allocations: 165.3 kB / 0.7358 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.977e-05/0.1583, allocations: 67.33 kB / 0.7359 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.326e-05/0.1583, allocations: 11.44 kB / 0.7359 GB, free: 14.1 MB / 0.5573 GB Notification: Performance of SimCode: time 3.81e-07/0.1583, allocations: 0 / 0.7359 GB, free: 14.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.001411/0.1597, allocations: 0.6483 MB / 0.7366 GB, free: 13.46 MB / 0.5573 GB " [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: 5.653557812795043]