Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.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.001303/0.001303, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.002391/0.002391, allocations: 214.3 kB / 22.25 MB, free: 5.262 MB / 14.72 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.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.755/2.755, allocations: 476 MB / 0.7699 GB, free: 4.766 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 67.97 kB / 1.117 GB, free: 41.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3324, allocations: 169.9 MB / 1.283 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.00727/0.3397, allocations: 4.286 MB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003837/0.3435, allocations: 1.823 MB / 1.289 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003964/0.3439, allocations: 15.94 kB / 1.289 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00196/0.3459, allocations: 0.5954 MB / 1.289 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0008403/0.3467, allocations: 266.6 kB / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008587/0.3476, allocations: 257.5 kB / 1.29 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0009887/0.3485, allocations: 0.6112 MB / 1.29 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007076/0.3492, allocations: 343.2 kB / 1.291 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004193/0.3497, allocations: 251.2 kB / 1.291 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005892/0.3503, allocations: 263 kB / 1.291 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.3504, allocations: 36 kB / 1.291 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005323/0.3509, allocations: 231.5 kB / 1.291 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.3511, allocations: 155.5 kB / 1.291 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.3514, allocations: 187.1 kB / 1.292 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0009629/0.3523, allocations: 0.6049 MB / 1.292 GB, free: 2.637 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3524, allocations: 3.938 kB / 1.292 GB, free: 2.633 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3524, allocations: 4 kB / 1.292 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.085e-05/0.3524, allocations: 4 kB / 1.292 GB, free: 2.625 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001605/0.354, allocations: 0.6609 MB / 1.293 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.354, allocations: 12.03 kB / 1.293 GB, free: 1.918 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.3542, allocations: 78.7 kB / 1.293 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.3552, allocations: 152.5 kB / 1.293 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006168/0.3558, allocations: 276.8 kB / 1.293 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.3559, allocations: 29.38 kB / 1.293 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.978e-05/0.3559, allocations: 32.36 kB / 1.293 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000978/0.3569, allocations: 0.686 MB / 1.294 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3569, allocations: 0 / 1.294 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.357, allocations: 19.98 kB / 1.294 GB, free: 0.5508 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.349e-05/0.357, allocations: 32.64 kB / 1.294 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006772/0.3577, allocations: 390.3 kB / 1.294 GB, free: 140 kB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002763/0.3605, allocations: 1.738 MB / 1.296 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.361, allocations: 236.5 kB / 1.296 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.3612, allocations: 100.8 kB / 1.297 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.3612, allocations: 8 kB / 1.297 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.3612, allocations: 34.56 kB / 1.297 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.3613, allocations: 0 / 1.297 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23): time 0.002347/0.3636, allocations: 0.9025 MB / 1.297 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.3636, allocations: 51.41 kB / 1.297 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.364, allocations: 312.4 kB / 1.298 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.3641, allocations: 29.7 kB / 1.298 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.3643, allocations: 236.1 kB / 1.298 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.792e-05/0.3643, allocations: 95.2 kB / 1.298 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.3645, allocations: 62.03 kB / 1.298 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001773/0.3646, allocations: 342.8 kB / 1.299 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.3648, allocations: 96.61 kB / 1.299 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.3651, allocations: 199.7 kB / 1.299 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004532/0.3655, allocations: 312.2 kB / 1.299 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3655, allocations: 0 / 1.299 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000836/0.3664, allocations: 442 kB / 1.3 GB, free: 10.72 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3664, allocations: 8 kB / 1.3 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3664, allocations: 0 / 1.3 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003995/0.3668, allocations: 110.6 kB / 1.3 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.3671, allocations: 59.91 kB / 1.3 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00389/0.371, allocations: 4.061 MB / 1.304 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.3712, allocations: 11.98 kB / 1.304 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.3712, allocations: 16 kB / 1.304 GB, free: 6.102 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002254/0.3715, allocations: 181.9 kB / 1.304 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.175e-05/0.3715, allocations: 35.75 kB / 1.304 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.941e-05/0.3716, allocations: 42.41 kB / 1.304 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3716, allocations: 4 kB / 1.304 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3716, allocations: 0 / 1.304 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3716, allocations: 0 / 1.304 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004926/0.3721, allocations: 332.6 kB / 1.304 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.3721, allocations: 7.922 kB / 1.304 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.3723, allocations: 35.98 kB / 1.304 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003393/0.3727, allocations: 98.5 kB / 1.304 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.3727, allocations: 8 kB / 1.304 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003824/0.3765, allocations: 4.053 MB / 1.308 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3765, allocations: 3.938 kB / 1.308 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009436/0.3775, allocations: 0.5588 MB / 1.309 GB, free: 328 kB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.3776, allocations: 55.75 kB / 1.309 GB, free: 272 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.3777, allocations: 4 kB / 1.309 GB, free: 268 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.3779, allocations: 8 kB / 1.309 GB, free: 260 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.352e-05/0.378, allocations: 35.83 kB / 1.309 GB, free: 224 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.378, allocations: 4 kB / 1.309 GB, free: 220 kB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002579/0.3783, allocations: 219 kB / 1.309 GB, free: 4 kB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.3783, allocations: 0 / 1.309 GB, free: 4 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00053/0.3788, allocations: 92.05 kB / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001297/0.3801, allocations: 1.108 MB / 1.31 GB, free: 14.77 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.3811, allocations: 0.5899 MB / 1.311 GB, free: 14.14 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3811, allocations: 0 / 1.311 GB, free: 14.14 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000582/0.3817, allocations: 463.9 kB / 1.311 GB, free: 13.65 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005322/0.3822, allocations: 74.73 kB / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004911/0.3871, allocations: 3.38 MB / 1.315 GB, free: 10.04 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.3874, allocations: 228.7 kB / 1.315 GB, free: 9.801 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002163/0.3876, allocations: 62.92 kB / 1.315 GB, free: 9.742 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.3878, allocations: 115.3 kB / 1.315 GB, free: 9.629 MB / 1.014 GB Notification: Performance of SimCode: time 7.01e-07/0.3878, allocations: 0 / 1.315 GB, free: 9.629 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04707/0.4349, allocations: 8.751 MB / 1.324 GB, free: 1.117 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/12.88, allocations: 5.828 kB / 1.324 GB, free: 1.113 MB / 1.014 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_11_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sen_ss.I in file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv. Warning: Get data of variable sen_ss.I from file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv failed! Error: Could not read variable sen_dyn.I in file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv. Warning: Get data of variable sen_dyn.I from file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv failed! Error: Could not read variable RC_ss.Vc in file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv. Warning: Get data of variable RC_ss.Vc from file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.375272166915238]