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.001908/0.001908, allocations: 88.72 kB / 19.44 MB, free: 356 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.002273/0.002273, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.586/1.586, allocations: 177.1 MB / 203.1 MB, free: 5.617 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.118/1.118, allocations: 118.6 MB / 378.2 MB, free: 1.516 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.704e-06/1.704e-06, allocations: 0 / 482.9 MB, free: 8.309 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.076e-05/3.246e-05, allocations: 5.688 kB / 482.9 MB, free: 8.305 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.EnergyFlow.Tests.EnergyFlowSource): time 0.002767/0.0028, allocations: 1.608 MB / 484.5 MB, free: 7.195 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007666/0.003566, allocations: 455.5 kB / 484.9 MB, free: 6.895 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.913e-05/0.003625, allocations: 1.594 kB / 484.9 MB, free: 6.895 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.282e-05/0.003658, allocations: 11.31 kB / 484.9 MB, free: 6.887 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.764e-05/0.003716, allocations: 13.22 kB / 485 MB, free: 6.875 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.003933, allocations: 33.09 kB / 485 MB, free: 6.855 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.00404, allocations: 46.2 kB / 485 MB, free: 6.836 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.668e-05/0.004126, allocations: 6.625 kB / 485 MB, free: 6.832 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.004259, allocations: 37.31 kB / 485.1 MB, free: 6.816 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.63e-05/0.004305, allocations: 12.66 kB / 485.1 MB, free: 6.812 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.004321, allocations: 3.312 kB / 485.1 MB, free: 6.812 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.189e-05/0.004362, allocations: 13.3 kB / 485.1 MB, free: 6.809 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.168e-05/0.004374, allocations: 5.719 kB / 485.1 MB, free: 6.805 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.016e-05/0.004404, allocations: 20.7 kB / 485.1 MB, free: 6.793 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.004517, allocations: 46.44 kB / 485.2 MB, free: 6.773 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.00452, allocations: 1.594 kB / 485.2 MB, free: 6.773 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.00452, allocations: 3.938 kB / 485.2 MB, free: 6.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.004524, allocations: 0 / 485.2 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.0005919/0.005116, allocations: 279.9 kB / 485.5 MB, free: 22.49 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.005157, allocations: 9.25 kB / 485.5 MB, free: 22.49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.005323, allocations: 21.25 kB / 485.5 MB, free: 22.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.005497, allocations: 130.7 kB / 485.6 MB, free: 22.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.005511, allocations: 7.344 kB / 485.6 MB, free: 22.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.005523, allocations: 2.562 kB / 485.6 MB, free: 22.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001657/0.005689, allocations: 86.72 kB / 485.7 MB, free: 22.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.005698, allocations: 192 / 485.7 MB, free: 22.26 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.005708, allocations: 384 / 485.7 MB, free: 22.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.005713, allocations: 5.281 kB / 485.7 MB, free: 22.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.005827, allocations: 34.59 kB / 485.7 MB, free: 22.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005151/0.006342, allocations: 459.5 kB / 486.2 MB, free: 21.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.239e-05/0.006425, allocations: 39.52 kB / 486.2 MB, free: 21.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.572e-05/0.00647, allocations: 17.67 kB / 486.2 MB, free: 21.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.006488, allocations: 0 / 486.2 MB, free: 21.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.006509, allocations: 31.72 kB / 486.3 MB, free: 21.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 6.41e-07/0.006509, allocations: 1.469 kB / 486.3 MB, free: 21.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002599/0.006769, allocations: 64.44 kB / 486.3 MB, free: 21.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.006795, allocations: 51.41 kB / 486.4 MB, free: 21.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.006907, allocations: 116 kB / 486.5 MB, free: 21.49 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.006917, allocations: 31.2 kB / 486.5 MB, free: 21.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.155e-05/0.006988, allocations: 90.84 kB / 486.6 MB, free: 21.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.007009, allocations: 12.22 kB / 486.6 MB, free: 21.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.007037, allocations: 15.09 kB / 486.7 MB, free: 21.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.00722, allocations: 313.6 kB / 487 MB, free: 21.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.051e-05/0.007261, allocations: 11.08 kB / 487 MB, free: 21.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.091e-05/0.007292, allocations: 9.875 kB / 487 MB, free: 21.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.025e-05/0.007362, allocations: 27.03 kB / 487 MB, free: 21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.007364, allocations: 4.062 kB / 487 MB, free: 21 MB / 426.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001234/0.007487, allocations: 53.52 kB / 487.1 MB, free: 20.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.007503, allocations: 8.875 kB / 487.1 MB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.007508, allocations: 1.375 kB / 487.1 MB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.007527, allocations: 0 / 487.1 MB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.285e-05/0.0076, allocations: 4.125 kB / 487.1 MB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.007605, allocations: 3.938 kB / 487.1 MB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.327e-05/0.007648, allocations: 5.984 kB / 487.1 MB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.007653, allocations: 0 / 487.1 MB, free: 20.96 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.0001045/0.007758, allocations: 120.6 kB / 487.2 MB, free: 20.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.007783, allocations: 6.703 kB / 487.2 MB, free: 20.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.981e-05/0.007803, allocations: 5 kB / 487.2 MB, free: 20.83 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.007805, allocations: 1.375 kB / 487.2 MB, free: 20.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.007811, allocations: 4 kB / 487.2 MB, free: 20.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.007814, allocations: 0 / 487.2 MB, free: 20.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.007959, allocations: 119.5 kB / 487.3 MB, free: 20.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.00796, allocations: 0 / 487.3 MB, free: 20.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.152e-05/0.008002, allocations: 6.984 kB / 487.3 MB, free: 20.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.008004, allocations: 1.375 kB / 487.3 MB, free: 20.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.008011, allocations: 7.938 kB / 487.4 MB, free: 20.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.008012, allocations: 0 / 487.4 MB, free: 20.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.008013, allocations: 1.375 kB / 487.4 MB, free: 20.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001816/0.008194, allocations: 148.1 kB / 487.5 MB, free: 20.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.003e-05/0.008204, allocations: 9.328 kB / 487.5 MB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.008217, allocations: 1.375 kB / 487.5 MB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.227e-05/0.008279, allocations: 1.375 kB / 487.5 MB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.008316, allocations: 4.562 kB / 487.5 MB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.00832, allocations: 1.375 kB / 487.5 MB, free: 20.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.969e-05/0.008389, allocations: 90.77 kB / 487.6 MB, free: 20.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008389, allocations: 4.031 kB / 487.6 MB, free: 20.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002818/0.008671, allocations: 5.5 kB / 487.6 MB, free: 20.46 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 0.0001103/0.008781, allocations: 96.12 kB / 487.7 MB, free: 20.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001317/0.008913, allocations: 27.83 kB / 487.7 MB, free: 20.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.008915, allocations: 0 / 487.7 MB, free: 20.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.766e-05/0.008952, allocations: 8.25 kB / 487.7 MB, free: 20.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.009181, allocations: 9.312 kB / 487.8 MB, free: 20.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003209/0.009502, allocations: 142.3 kB / 487.9 MB, free: 20.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.373e-05/0.009556, allocations: 72.3 kB / 488 MB, free: 20.15 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.787e-05/0.009584, allocations: 3.984 kB / 488 MB, free: 20.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.706e-05/0.009611, allocations: 9.875 kB / 488 MB, free: 20.14 MB / 426.7 MB Notification: Performance of SimCode: time 3.91e-07/0.009611, allocations: 0 / 488 MB, free: 20.14 MB / 426.7 MB Notification: Performance of Templates: time 0.002674/0.01228, allocations: 344.3 kB / 488.3 MB, free: 20.08 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=1200 -emit_protected -lv LOG_STATS > 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.753548988956027]