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.001272/0.001272, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.002104/0.002104, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.766 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.238/3.238, allocations: 0.5003 GB / 0.8062 GB, free: 28.22 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="cs",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.001981/0.001981, allocations: 67.08 kB / 1.17 GB, free: 19.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3491, allocations: 179 MB / 1.345 GB, free: 15.9 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007638/0.3567, allocations: 4.256 MB / 1.349 GB, free: 11.62 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003538/0.3603, allocations: 1.823 MB / 1.351 GB, free: 9.789 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003678/0.3606, allocations: 15.94 kB / 1.351 GB, free: 9.773 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.3626, allocations: 0.5938 MB / 1.352 GB, free: 9.18 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0008492/0.3634, allocations: 266.6 kB / 1.352 GB, free: 8.918 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008485/0.3643, allocations: 247.5 kB / 1.352 GB, free: 8.676 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001077/0.3653, allocations: 0.6303 MB / 1.353 GB, free: 8.043 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007867/0.3661, allocations: 351.2 kB / 1.353 GB, free: 7.691 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005092/0.3666, allocations: 255.1 kB / 1.353 GB, free: 7.441 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007348/0.3674, allocations: 282.9 kB / 1.354 GB, free: 7.164 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.3675, allocations: 36 kB / 1.354 GB, free: 7.129 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005675/0.368, allocations: 227.5 kB / 1.354 GB, free: 6.906 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.3683, allocations: 155.5 kB / 1.354 GB, free: 6.754 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002997/0.3686, allocations: 187.2 kB / 1.354 GB, free: 6.57 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0009745/0.3695, allocations: 0.6109 MB / 1.355 GB, free: 5.957 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.3695, allocations: 4 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3695, allocations: 4 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.945e-05/0.3696, allocations: 0 / 1.355 GB, free: 5.949 MB / 1.045 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.001564/0.3711, allocations: 0.657 MB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.3712, allocations: 12.03 kB / 1.356 GB, free: 5.25 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.62e-05/0.3712, allocations: 9.188 kB / 1.356 GB, free: 5.242 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.3713, allocations: 78.7 kB / 1.356 GB, free: 5.156 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001075/0.3724, allocations: 148.5 kB / 1.356 GB, free: 5.012 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.3729, allocations: 280.9 kB / 1.356 GB, free: 4.711 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.373, allocations: 21.38 kB / 1.356 GB, free: 4.688 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.946e-05/0.3731, allocations: 40.38 kB / 1.356 GB, free: 4.648 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009929/0.374, allocations: 0.6858 MB / 1.357 GB, free: 3.895 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.3741, allocations: 4 kB / 1.357 GB, free: 3.891 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.825e-05/0.3741, allocations: 15.98 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-05/0.3742, allocations: 36.62 kB / 1.357 GB, free: 3.84 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.3748, allocations: 382.3 kB / 1.357 GB, free: 3.465 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.3774, allocations: 1.726 MB / 1.359 GB, free: 1.664 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005503/0.378, allocations: 247.8 kB / 1.359 GB, free: 1.414 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.3781, allocations: 108.7 kB / 1.359 GB, free: 1.305 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.3782, allocations: 0 / 1.359 GB, free: 1.305 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.3782, allocations: 34.56 kB / 1.359 GB, free: 1.262 MB / 1.045 GB Notification: Performance of pre-optimization done (n=20): time 1.242e-06/0.3782, allocations: 3.938 kB / 1.359 GB, free: 1.258 MB / 1.045 GB Notification: Performance of matching and sorting (n=23): time 0.002298/0.3805, allocations: 0.9006 MB / 1.36 GB, free: 324 kB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.3805, allocations: 59.34 kB / 1.36 GB, free: 252 kB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003745/0.3809, allocations: 304.5 kB / 1.361 GB, free: 15.94 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.3809, allocations: 37.64 kB / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.3811, allocations: 236.1 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.42e-05/0.3812, allocations: 75.34 kB / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.3813, allocations: 69.97 kB / 1.361 GB, free: 15.51 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3815, allocations: 338.8 kB / 1.361 GB, free: 15.17 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.3817, allocations: 96.61 kB / 1.361 GB, free: 15.07 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002489/0.3819, allocations: 195.7 kB / 1.362 GB, free: 14.84 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.3823, allocations: 312.7 kB / 1.362 GB, free: 14.5 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3823, allocations: 0 / 1.362 GB, free: 14.5 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008221/0.3832, allocations: 450 kB / 1.362 GB, free: 14.05 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.3832, allocations: 4 kB / 1.362 GB, free: 14.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.3832, allocations: 7.984 kB / 1.362 GB, free: 14.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004013/0.3836, allocations: 98.69 kB / 1.362 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002838/0.3839, allocations: 59.91 kB / 1.362 GB, free: 13.88 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003628/0.3875, allocations: 4.078 MB / 1.366 GB, free: 9.453 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.3878, allocations: 12 kB / 1.366 GB, free: 9.441 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.578e-05/0.3878, allocations: 8 kB / 1.366 GB, free: 9.434 MB / 1.061 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.0002454/0.388, allocations: 186.8 kB / 1.367 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/0.3881, allocations: 35.75 kB / 1.367 GB, free: 9.207 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.029e-05/0.3882, allocations: 42.34 kB / 1.367 GB, free: 9.16 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3882, allocations: 4 kB / 1.367 GB, free: 9.156 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.3882, allocations: 0 / 1.367 GB, free: 9.156 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3882, allocations: 7.984 kB / 1.367 GB, free: 9.148 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004892/0.3887, allocations: 336.5 kB / 1.367 GB, free: 8.777 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3887, allocations: 0 / 1.367 GB, free: 8.777 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.3889, allocations: 31.98 kB / 1.367 GB, free: 8.746 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003297/0.3892, allocations: 98.53 kB / 1.367 GB, free: 8.641 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.3893, allocations: 4 kB / 1.367 GB, free: 8.637 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003478/0.3927, allocations: 4.073 MB / 1.371 GB, free: 4.219 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3927, allocations: 7.938 kB / 1.371 GB, free: 4.211 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000882/0.3936, allocations: 0.5496 MB / 1.372 GB, free: 3.637 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.3937, allocations: 51.78 kB / 1.372 GB, free: 3.586 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.3938, allocations: 4 kB / 1.372 GB, free: 3.582 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.394, allocations: 15.98 kB / 1.372 GB, free: 3.566 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.814e-05/0.3941, allocations: 15.91 kB / 1.372 GB, free: 3.551 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.3941, allocations: 11.94 kB / 1.372 GB, free: 3.539 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002358/0.3943, allocations: 211.1 kB / 1.372 GB, free: 3.336 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3943, allocations: 0 / 1.372 GB, free: 3.336 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0005034/0.3948, allocations: 100 kB / 1.372 GB, free: 3.238 MB / 1.061 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.001233/0.3961, allocations: 1.099 MB / 1.373 GB, free: 2.109 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009351/0.397, allocations: 0.5937 MB / 1.374 GB, free: 1.477 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.397, allocations: 4 kB / 1.374 GB, free: 1.473 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0005568/0.3976, allocations: 463.9 kB / 1.374 GB, free: 0.9805 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.3981, allocations: 82.2 kB / 1.374 GB, free: 0.9062 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/0.403, allocations: 3.369 MB / 1.378 GB, free: 13.37 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.4032, allocations: 224.7 kB / 1.378 GB, free: 13.13 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0002143/0.4034, allocations: 66.91 kB / 1.378 GB, free: 13.06 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.4036, allocations: 111.4 kB / 1.378 GB, free: 12.95 MB / 1.076 GB Notification: Performance of SimCode: time 6.11e-07/0.4036, allocations: 0 / 1.378 GB, free: 12.95 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04248/0.4461, allocations: 8.502 MB / 1.386 GB, free: 4.699 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.56, allocations: 6.438 kB / 1.386 GB, free: 4.695 MB / 1.076 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.60314701695461]