Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001311/0.001311, 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.002649/0.002649, allocations: 215.1 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.297/3.297, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_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.002037/0.002037, allocations: 72.86 kB / 1.186 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3429, allocations: 181.9 MB / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006856/0.3497, allocations: 4.265 MB / 1.368 GB, free: 9.789 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003392/0.3531, allocations: 1.827 MB / 1.369 GB, free: 7.953 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003087/0.3534, allocations: 11.94 kB / 1.369 GB, free: 7.941 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001869/0.3553, allocations: 0.5954 MB / 1.37 GB, free: 7.344 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0007238/0.356, allocations: 270.6 kB / 1.37 GB, free: 7.078 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006967/0.3567, allocations: 249.8 kB / 1.37 GB, free: 6.836 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0008542/0.3576, allocations: 0.6189 MB / 1.371 GB, free: 6.215 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006443/0.3582, allocations: 347.2 kB / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.3586, allocations: 251.1 kB / 1.372 GB, free: 5.625 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005684/0.3592, allocations: 270.9 kB / 1.372 GB, free: 5.359 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.632e-05/0.3592, allocations: 36 kB / 1.372 GB, free: 5.324 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000463/0.3597, allocations: 231.5 kB / 1.372 GB, free: 5.098 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.3599, allocations: 151.5 kB / 1.372 GB, free: 4.949 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.3601, allocations: 183.2 kB / 1.372 GB, free: 4.77 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0008374/0.361, allocations: 0.6188 MB / 1.373 GB, free: 4.148 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.361, allocations: 0 / 1.373 GB, free: 4.148 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.442e-06/0.361, allocations: 0 / 1.373 GB, free: 4.148 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.519e-05/0.361, allocations: 0 / 1.373 GB, free: 4.148 MB / 1.061 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.00143/0.3624, allocations: 0.6609 MB / 1.374 GB, free: 3.457 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.3625, allocations: 8.031 kB / 1.374 GB, free: 3.449 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.3626, allocations: 82.7 kB / 1.374 GB, free: 3.359 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.3636, allocations: 148.5 kB / 1.374 GB, free: 3.215 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.3642, allocations: 276.8 kB / 1.374 GB, free: 2.922 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.3642, allocations: 25.38 kB / 1.374 GB, free: 2.898 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.305e-05/0.3643, allocations: 32.38 kB / 1.374 GB, free: 2.867 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009761/0.3653, allocations: 0.686 MB / 1.375 GB, free: 2.109 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.3653, allocations: 4 kB / 1.375 GB, free: 2.105 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.3653, allocations: 20 kB / 1.375 GB, free: 2.086 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.331e-05/0.3654, allocations: 32.62 kB / 1.375 GB, free: 2.055 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006715/0.366, allocations: 382.3 kB / 1.375 GB, free: 1.684 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.3688, allocations: 1.734 MB / 1.377 GB, free: 15.87 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005764/0.3693, allocations: 252 kB / 1.377 GB, free: 15.62 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.3695, allocations: 92.81 kB / 1.377 GB, free: 15.52 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.3695, allocations: 7.938 kB / 1.377 GB, free: 15.52 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.3696, allocations: 38.56 kB / 1.377 GB, free: 15.47 MB / 1.076 GB Notification: Performance of pre-optimization done (n=20): time 1.774e-06/0.3696, allocations: 0 / 1.377 GB, free: 15.47 MB / 1.076 GB Notification: Performance of matching and sorting (n=23): time 0.002363/0.3719, allocations: 0.9085 MB / 1.378 GB, free: 14.52 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.372, allocations: 55.41 kB / 1.378 GB, free: 14.45 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.3724, allocations: 308.4 kB / 1.379 GB, free: 14.14 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.3724, allocations: 29.7 kB / 1.379 GB, free: 14.11 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.3726, allocations: 236.1 kB / 1.379 GB, free: 13.87 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 7.852e-05/0.3727, allocations: 79.28 kB / 1.379 GB, free: 13.79 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3728, allocations: 65.97 kB / 1.379 GB, free: 13.72 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001766/0.373, allocations: 338.8 kB / 1.379 GB, free: 13.38 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.3731, allocations: 104.6 kB / 1.379 GB, free: 13.28 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.3734, allocations: 191.7 kB / 1.38 GB, free: 13.05 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004781/0.3739, allocations: 315.5 kB / 1.38 GB, free: 12.71 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3739, allocations: 4 kB / 1.38 GB, free: 12.7 MB / 1.076 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008498/0.3747, allocations: 438.2 kB / 1.38 GB, free: 12.26 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.3748, allocations: 8.031 kB / 1.38 GB, free: 12.25 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3748, allocations: 4 kB / 1.38 GB, free: 12.25 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003954/0.3752, allocations: 90.5 kB / 1.38 GB, free: 12.15 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.3755, allocations: 67.84 kB / 1.38 GB, free: 12.09 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00396/0.3794, allocations: 4.089 MB / 1.384 GB, free: 7.652 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.3797, allocations: 8 kB / 1.384 GB, free: 7.645 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/0.3797, allocations: 12 kB / 1.385 GB, free: 7.633 MB / 1.076 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.0002465/0.38, allocations: 177.8 kB / 1.385 GB, free: 7.449 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.111e-05/0.38, allocations: 35.75 kB / 1.385 GB, free: 7.414 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.484e-05/0.3801, allocations: 34.41 kB / 1.385 GB, free: 7.379 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3801, allocations: 4 kB / 1.385 GB, free: 7.375 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3801, allocations: 12.03 kB / 1.385 GB, free: 7.363 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3801, allocations: 3.984 kB / 1.385 GB, free: 7.359 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005071/0.3806, allocations: 336.6 kB / 1.385 GB, free: 6.988 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3806, allocations: 3.938 kB / 1.385 GB, free: 6.984 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.3808, allocations: 27.98 kB / 1.385 GB, free: 6.957 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003401/0.3812, allocations: 98.5 kB / 1.385 GB, free: 6.852 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.3812, allocations: 0 / 1.385 GB, free: 6.852 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003686/0.3849, allocations: 4.07 MB / 1.389 GB, free: 2.438 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.3849, allocations: 7.969 kB / 1.389 GB, free: 2.43 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009365/0.3858, allocations: 0.5505 MB / 1.39 GB, free: 1.855 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.386, allocations: 55.81 kB / 1.39 GB, free: 1.801 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.386, allocations: 3.938 kB / 1.39 GB, free: 1.797 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.3862, allocations: 16.17 kB / 1.39 GB, free: 1.781 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.3863, allocations: 23.91 kB / 1.39 GB, free: 1.758 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.3863, allocations: 4 kB / 1.39 GB, free: 1.754 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002575/0.3866, allocations: 219 kB / 1.39 GB, free: 1.539 MB / 1.076 GB Notification: Performance of sort global known variables: time 1e-07/0.3866, allocations: 0 / 1.39 GB, free: 1.539 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005047/0.3871, allocations: 96 kB / 1.39 GB, free: 1.445 MB / 1.076 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.001245/0.3883, allocations: 1.09 MB / 1.391 GB, free: 328 kB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0009732/0.3893, allocations: 0.5902 MB / 1.392 GB, free: 15.69 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3893, allocations: 4.188 kB / 1.392 GB, free: 15.68 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0005674/0.3899, allocations: 464.9 kB / 1.392 GB, free: 15.19 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.3904, allocations: 81.88 kB / 1.392 GB, free: 15.12 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.3952, allocations: 3.372 MB / 1.396 GB, free: 11.58 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.3955, allocations: 228.7 kB / 1.396 GB, free: 11.34 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0002153/0.3957, allocations: 58.91 kB / 1.396 GB, free: 11.29 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.3959, allocations: 107.4 kB / 1.396 GB, free: 11.18 MB / 1.092 GB Notification: Performance of SimCode: time 1.222e-06/0.3959, allocations: 7.938 kB / 1.396 GB, free: 11.17 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0472/0.443, allocations: 8.754 MB / 1.405 GB, free: 2.645 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.41, allocations: 5.5 kB / 1.405 GB, free: 2.641 MB / 1.092 GB " [Timeout remaining time 287] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.324958278797567]