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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 110 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.081/3.081, allocations: 497.2 MB / 0.7811 GB, free: 33.75 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 68.08 kB / 1.134 GB, free: 33.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3783, allocations: 173.9 MB / 1.304 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007593/0.3859, allocations: 4.417 MB / 1.308 GB, free: 13.14 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003781/0.3897, allocations: 1.893 MB / 1.31 GB, free: 11.23 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004475/0.3901, allocations: 8 kB / 1.31 GB, free: 11.23 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002004/0.3921, allocations: 0.6028 MB / 1.311 GB, free: 10.62 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.3932, allocations: 270.6 kB / 1.311 GB, free: 10.36 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00088/0.3941, allocations: 259.4 kB / 1.311 GB, free: 10.11 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.001039/0.3951, allocations: 0.6073 MB / 1.312 GB, free: 9.496 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000717/0.3958, allocations: 363.2 kB / 1.312 GB, free: 9.133 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.3962, allocations: 247.2 kB / 1.312 GB, free: 8.891 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005671/0.3968, allocations: 282.9 kB / 1.313 GB, free: 8.613 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.376e-05/0.3968, allocations: 40 kB / 1.313 GB, free: 8.574 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005632/0.3974, allocations: 263.4 kB / 1.313 GB, free: 8.316 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.3976, allocations: 155.5 kB / 1.313 GB, free: 8.164 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.3979, allocations: 218.9 kB / 1.313 GB, free: 7.949 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0009313/0.3988, allocations: 0.611 MB / 1.314 GB, free: 7.336 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.3988, allocations: 7.984 kB / 1.314 GB, free: 7.328 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.013e-06/0.3988, allocations: 0 / 1.314 GB, free: 7.328 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.3988, allocations: 3.938 kB / 1.314 GB, free: 7.324 MB / 1.014 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.001524/0.4004, allocations: 0.7324 MB / 1.315 GB, free: 6.543 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.4004, allocations: 12.62 kB / 1.315 GB, free: 6.531 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.4005, allocations: 78.64 kB / 1.315 GB, free: 6.445 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.4015, allocations: 148.5 kB / 1.315 GB, free: 6.301 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.4021, allocations: 350.6 kB / 1.315 GB, free: 5.922 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.4022, allocations: 21.38 kB / 1.315 GB, free: 5.902 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.278e-05/0.4022, allocations: 32.38 kB / 1.315 GB, free: 5.871 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000839/0.4031, allocations: 0.5355 MB / 1.316 GB, free: 5.301 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.4031, allocations: 4 kB / 1.316 GB, free: 5.297 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.389e-05/0.4031, allocations: 15.98 kB / 1.316 GB, free: 5.281 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-05/0.4032, allocations: 36.58 kB / 1.316 GB, free: 5.246 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006199/0.4038, allocations: 386.3 kB / 1.316 GB, free: 4.871 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002879/0.4067, allocations: 2.392 MB / 1.319 GB, free: 2.258 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.4072, allocations: 246.5 kB / 1.319 GB, free: 2.008 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.4074, allocations: 96.81 kB / 1.319 GB, free: 1.91 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.4074, allocations: 4 kB / 1.319 GB, free: 1.906 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.4075, allocations: 30.56 kB / 1.319 GB, free: 1.867 MB / 1.014 GB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.4075, allocations: 0 / 1.319 GB, free: 1.867 MB / 1.014 GB Notification: Performance of matching and sorting (n=23): time 0.002334/0.4098, allocations: 1.134 MB / 1.32 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.4098, allocations: 59.41 kB / 1.32 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003393/0.4102, allocations: 296.5 kB / 1.32 GB, free: 276 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.472e-05/0.4102, allocations: 33.64 kB / 1.32 GB, free: 236 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.4104, allocations: 240.2 kB / 1.321 GB, free: 15.99 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.579e-05/0.4105, allocations: 87.17 kB / 1.321 GB, free: 15.91 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.4106, allocations: 65.98 kB / 1.321 GB, free: 15.83 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.4108, allocations: 338.8 kB / 1.321 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.4109, allocations: 100.6 kB / 1.321 GB, free: 15.39 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.4112, allocations: 191.8 kB / 1.321 GB, free: 15.17 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000452/0.4116, allocations: 314 kB / 1.322 GB, free: 14.83 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4116, allocations: 0 / 1.322 GB, free: 14.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007964/0.4124, allocations: 445.8 kB / 1.322 GB, free: 14.38 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.4125, allocations: 4 kB / 1.322 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.4125, allocations: 4 kB / 1.322 GB, free: 14.37 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000391/0.4129, allocations: 102.8 kB / 1.322 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.4132, allocations: 59.91 kB / 1.322 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003957/0.4171, allocations: 4.396 MB / 1.327 GB, free: 9.383 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.4174, allocations: 15.98 kB / 1.327 GB, free: 9.367 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.4174, allocations: 16.16 kB / 1.327 GB, free: 9.352 MB / 1.029 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.0002593/0.4177, allocations: 185.6 kB / 1.327 GB, free: 9.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.902e-05/0.4178, allocations: 35.75 kB / 1.327 GB, free: 9.125 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.106e-05/0.4179, allocations: 42.31 kB / 1.327 GB, free: 9.082 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.4179, allocations: 0 / 1.327 GB, free: 9.082 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.4179, allocations: 4 kB / 1.327 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.4179, allocations: 0 / 1.327 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.4184, allocations: 405.4 kB / 1.327 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4184, allocations: 3.938 kB / 1.327 GB, free: 8.629 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.4186, allocations: 39.91 kB / 1.327 GB, free: 8.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003207/0.4189, allocations: 90.5 kB / 1.327 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.4189, allocations: 4 kB / 1.327 GB, free: 8.488 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003736/0.4227, allocations: 4.376 MB / 1.332 GB, free: 3.695 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4227, allocations: 7.875 kB / 1.332 GB, free: 3.688 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000982/0.4236, allocations: 0.5623 MB / 1.332 GB, free: 3.102 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.4239, allocations: 124.9 kB / 1.332 GB, free: 2.961 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.4239, allocations: 8 kB / 1.332 GB, free: 2.953 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.4241, allocations: 15.92 kB / 1.332 GB, free: 2.938 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.4242, allocations: 19.98 kB / 1.332 GB, free: 2.918 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.4242, allocations: 4 kB / 1.332 GB, free: 2.914 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002507/0.4245, allocations: 211 kB / 1.333 GB, free: 2.707 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4245, allocations: 4 kB / 1.333 GB, free: 2.703 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005212/0.425, allocations: 100.1 kB / 1.333 GB, free: 2.605 MB / 1.029 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.001207/0.4262, allocations: 1.096 MB / 1.334 GB, free: 1.477 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009951/0.4272, allocations: 0.5899 MB / 1.334 GB, free: 0.8477 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4272, allocations: 4.25 kB / 1.334 GB, free: 0.8438 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005436/0.4277, allocations: 464.9 kB / 1.335 GB, free: 360 kB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.4282, allocations: 77.06 kB / 1.335 GB, free: 288 kB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005067/0.4333, allocations: 3.38 MB / 1.338 GB, free: 12.73 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000617/0.4339, allocations: 0.8389 MB / 1.339 GB, free: 11.87 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.000272/0.4342, allocations: 58.94 kB / 1.339 GB, free: 11.81 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.4344, allocations: 107.4 kB / 1.339 GB, free: 11.7 MB / 1.045 GB Notification: Performance of SimCode: time 1.483e-06/0.4344, allocations: 0 / 1.339 GB, free: 11.7 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04401/0.4784, allocations: 7.841 MB / 1.347 GB, free: 4.023 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.61, allocations: 7.156 kB / 1.347 GB, free: 4.02 MB / 1.045 GB " [Timeout remaining time 289] (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_2/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: 17.414741169195622]