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.001267/0.001267, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001392/0.001392, allocations: 173 kB / 23.49 MB, free: 1.059 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.9494/0.9494, allocations: 177.1 MB / 203.8 MB, free: 5.637 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.673/0.673, allocations: 118.6 MB / 378.9 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.252e-06/1.252e-06, allocations: 0 / 483.6 MB, free: 8.312 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.161e-05/1.286e-05, allocations: 2.312 kB / 483.6 MB, free: 8.309 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.001937/0.00195, allocations: 1.656 MB / 485.3 MB, free: 7.188 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00362/0.00557, allocations: 468 kB / 485.7 MB, free: 6.887 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.891e-05/0.005628, allocations: 1.125 kB / 485.7 MB, free: 6.887 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.802e-05/0.005656, allocations: 7.938 kB / 485.7 MB, free: 6.879 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.206e-05/0.005709, allocations: 13.14 kB / 485.7 MB, free: 6.871 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.005898, allocations: 31.38 kB / 485.8 MB, free: 6.852 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.006003, allocations: 46.19 kB / 485.8 MB, free: 6.828 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.101e-05/0.006084, allocations: 7.766 kB / 485.8 MB, free: 6.828 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.006199, allocations: 36.02 kB / 485.9 MB, free: 6.812 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.081e-05/0.00624, allocations: 13.25 kB / 485.9 MB, free: 6.809 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.006256, allocations: 3.812 kB / 485.9 MB, free: 6.809 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.85e-05/0.006294, allocations: 9.094 kB / 485.9 MB, free: 6.805 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.223e-05/0.006306, allocations: 20.39 kB / 485.9 MB, free: 6.789 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.006329, allocations: 6.156 kB / 485.9 MB, free: 6.789 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.89e-05/0.006428, allocations: 41.92 kB / 486 MB, free: 6.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.00643, allocations: 0 / 486 MB, free: 6.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.00643, allocations: 1.375 kB / 486 MB, free: 6.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.006433, allocations: 0 / 486 MB, free: 6.77 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.00036/0.006793, allocations: 384.3 kB / 486.3 MB, free: 22.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.006829, allocations: 9.062 kB / 486.3 MB, free: 22.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.006941, allocations: 15.17 kB / 486.4 MB, free: 22.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.007054, allocations: 129.9 kB / 486.5 MB, free: 22.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.007063, allocations: 9.438 kB / 486.5 MB, free: 22.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-06/0.007073, allocations: 10.69 kB / 486.5 MB, free: 22.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.00719, allocations: 97.97 kB / 486.6 MB, free: 22.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.007197, allocations: 3.422 kB / 486.6 MB, free: 22.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.007206, allocations: 1.562 kB / 486.6 MB, free: 22.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.007213, allocations: 4.875 kB / 486.6 MB, free: 22.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.076e-05/0.007254, allocations: 15.94 kB / 486.6 MB, free: 22.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003628/0.007617, allocations: 0.6418 MB / 487.3 MB, free: 21.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.342e-05/0.00766, allocations: 35.56 kB / 487.3 MB, free: 21.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.909e-05/0.007679, allocations: 14.41 kB / 487.3 MB, free: 21.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/0.007689, allocations: 0 / 487.3 MB, free: 21.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.007709, allocations: 35.14 kB / 487.4 MB, free: 21.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 6.41e-07/0.007709, allocations: 0 / 487.4 MB, free: 21.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001359/0.007845, allocations: 47.23 kB / 487.4 MB, free: 21.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.007871, allocations: 51.41 kB / 487.4 MB, free: 21.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.764e-05/0.007948, allocations: 175.5 kB / 487.6 MB, free: 21.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-06/0.007956, allocations: 26.86 kB / 487.6 MB, free: 21.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.904e-05/0.008005, allocations: 144.8 kB / 487.8 MB, free: 20.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.4e-05/0.008019, allocations: 9.734 kB / 487.8 MB, free: 20.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.008045, allocations: 22.09 kB / 487.8 MB, free: 20.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.00816, allocations: 493 kB / 488.3 MB, free: 20.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.343e-05/0.008174, allocations: 5.359 kB / 488.3 MB, free: 20.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.064e-05/0.008184, allocations: 1.688 kB / 488.3 MB, free: 20.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003032/0.01122, allocations: 19.78 kB / 488.3 MB, free: 20.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.01122, allocations: 3.938 kB / 488.3 MB, free: 20.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.364e-05/0.01128, allocations: 42.56 kB / 488.4 MB, free: 20.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.01129, allocations: 4.938 kB / 488.4 MB, free: 20.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.0113, allocations: 5.188 kB / 488.4 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.01131, allocations: 0 / 488.4 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.241e-05/0.01136, allocations: 4.031 kB / 488.4 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.057e-06/0.01137, allocations: 0 / 488.4 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.003e-05/0.01139, allocations: 2.812 kB / 488.4 MB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.01139, allocations: 3.328 kB / 488.4 MB, free: 20.31 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.008e-05/0.01145, allocations: 161.8 kB / 488.6 MB, free: 20.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.01147, allocations: 6.359 kB / 488.6 MB, free: 20.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.779e-05/0.01149, allocations: 4.969 kB / 488.6 MB, free: 20.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.01149, allocations: 9.312 kB / 488.6 MB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.01149, allocations: 4 kB / 488.6 MB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.0115, allocations: 0 / 488.6 MB, free: 20.13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.0116, allocations: 131.5 kB / 488.7 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.0116, allocations: 3.938 kB / 488.7 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.79e-05/0.01162, allocations: 4.219 kB / 488.7 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.01162, allocations: 0 / 488.7 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/0.01163, allocations: 1.562 kB / 488.7 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.01163, allocations: 0 / 488.7 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.01163, allocations: 0 / 488.7 MB, free: 19.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.816e-05/0.01172, allocations: 182.7 kB / 488.9 MB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-06/0.01173, allocations: 12.95 kB / 488.9 MB, free: 19.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.01174, allocations: 8.797 kB / 488.9 MB, free: 19.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.669e-05/0.01178, allocations: 1.312 kB / 488.9 MB, free: 19.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.491e-05/0.01181, allocations: 1.406 kB / 488.9 MB, free: 19.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.01181, allocations: 0 / 488.9 MB, free: 19.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.599e-05/0.01186, allocations: 137.2 kB / 489 MB, free: 19.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01186, allocations: 0 / 489 MB, free: 19.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000214/0.01207, allocations: 6.562 kB / 489.1 MB, free: 19.65 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 6.655e-05/0.01214, allocations: 94.22 kB / 489.1 MB, free: 19.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 6.56e-05/0.0122, allocations: 19.55 kB / 489.2 MB, free: 19.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01221, allocations: 1.656 kB / 489.2 MB, free: 19.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.446e-05/0.01222, allocations: 10.22 kB / 489.2 MB, free: 19.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.01242, allocations: 10.84 kB / 489.2 MB, free: 19.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000499/0.01292, allocations: 159.6 kB / 489.3 MB, free: 19.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.909e-05/0.01295, allocations: 57.67 kB / 489.4 MB, free: 19.32 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.803e-05/0.01297, allocations: 9.641 kB / 489.4 MB, free: 19.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.159e-05/0.01299, allocations: 10.12 kB / 489.4 MB, free: 19.3 MB / 426.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01299, allocations: 0 / 489.4 MB, free: 19.3 MB / 426.7 MB Notification: Performance of Templates: time 0.004834/0.01783, allocations: 333 kB / 489.7 MB, free: 19.25 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","",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: 3.457003557123244]