Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001258/0.001258, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001652/0.001652, allocations: 218.9 kB / 23.04 MB, free: 5.078 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.243/3.243, allocations: 0.49 GB / 0.7959 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_12_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.00203/0.00203, allocations: 68.77 kB / 1.155 GB, free: 25.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.3919, allocations: 176.1 MB / 1.327 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007924/0.3998, allocations: 4.541 MB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003905/0.4037, allocations: 1.959 MB / 1.333 GB, free: 11.44 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003563/0.4041, allocations: 15.88 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001953/0.406, allocations: 0.6201 MB / 1.334 GB, free: 10.8 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0007801/0.4068, allocations: 270.6 kB / 1.334 GB, free: 10.54 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007621/0.4076, allocations: 251.4 kB / 1.334 GB, free: 10.29 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0008416/0.4084, allocations: 0.6151 MB / 1.335 GB, free: 9.676 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006295/0.4091, allocations: 339.2 kB / 1.335 GB, free: 9.34 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003557/0.4094, allocations: 259.1 kB / 1.335 GB, free: 9.086 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005327/0.4099, allocations: 286.9 kB / 1.336 GB, free: 8.805 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.384e-05/0.41, allocations: 36 kB / 1.336 GB, free: 8.77 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004966/0.4105, allocations: 271.4 kB / 1.336 GB, free: 8.504 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.4107, allocations: 151.5 kB / 1.336 GB, free: 8.355 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.4109, allocations: 219 kB / 1.336 GB, free: 8.141 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000837/0.4117, allocations: 0.611 MB / 1.337 GB, free: 7.527 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.4117, allocations: 0 / 1.337 GB, free: 7.527 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.293e-06/0.4117, allocations: 0 / 1.337 GB, free: 7.527 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.4117, allocations: 0 / 1.337 GB, free: 7.527 MB / 1.029 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.001345/0.4131, allocations: 0.6609 MB / 1.337 GB, free: 6.836 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.4131, allocations: 8.031 kB / 1.337 GB, free: 6.828 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.199e-05/0.4132, allocations: 9.188 kB / 1.337 GB, free: 6.82 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.023e-05/0.4132, allocations: 82.7 kB / 1.338 GB, free: 6.73 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009944/0.4142, allocations: 152.5 kB / 1.338 GB, free: 6.582 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.4147, allocations: 276.8 kB / 1.338 GB, free: 6.289 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.4148, allocations: 25.38 kB / 1.338 GB, free: 6.262 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/0.4148, allocations: 36.38 kB / 1.338 GB, free: 6.227 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008356/0.4157, allocations: 0.5314 MB / 1.339 GB, free: 5.66 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.4157, allocations: 0 / 1.339 GB, free: 5.66 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.4157, allocations: 20 kB / 1.339 GB, free: 5.641 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-05/0.4158, allocations: 28.64 kB / 1.339 GB, free: 5.613 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006345/0.4164, allocations: 390.2 kB / 1.339 GB, free: 5.234 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00292/0.4193, allocations: 2.372 MB / 1.341 GB, free: 2.645 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005824/0.4199, allocations: 241.4 kB / 1.341 GB, free: 2.402 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.4201, allocations: 100.8 kB / 1.342 GB, free: 2.301 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.4201, allocations: 4 kB / 1.342 GB, free: 2.297 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.4201, allocations: 34.56 kB / 1.342 GB, free: 2.254 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 2.334e-06/0.4201, allocations: 0 / 1.342 GB, free: 2.254 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002352/0.4225, allocations: 0.9142 MB / 1.343 GB, free: 1.301 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.4225, allocations: 59.34 kB / 1.343 GB, free: 1.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.4229, allocations: 300.5 kB / 1.343 GB, free: 0.9219 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.4229, allocations: 29.7 kB / 1.343 GB, free: 0.8867 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.4231, allocations: 240.1 kB / 1.343 GB, free: 0.6484 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.275e-05/0.4232, allocations: 83.31 kB / 1.343 GB, free: 0.5664 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.4233, allocations: 65.98 kB / 1.343 GB, free: 0.4922 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4234, allocations: 342.8 kB / 1.344 GB, free: 152 kB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.4236, allocations: 100.6 kB / 1.344 GB, free: 52 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.4239, allocations: 179.8 kB / 1.344 GB, free: 15.84 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004305/0.4243, allocations: 324.1 kB / 1.344 GB, free: 15.48 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4243, allocations: 0 / 1.344 GB, free: 15.48 MB / 1.045 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007836/0.4251, allocations: 442 kB / 1.345 GB, free: 15.04 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.4251, allocations: 11.94 kB / 1.345 GB, free: 15.03 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.4251, allocations: 4 kB / 1.345 GB, free: 15.02 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003889/0.4255, allocations: 98.69 kB / 1.345 GB, free: 14.92 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.4258, allocations: 67.89 kB / 1.345 GB, free: 14.85 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003602/0.4294, allocations: 4.089 MB / 1.349 GB, free: 10.42 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.4297, allocations: 8 kB / 1.349 GB, free: 10.41 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.4297, allocations: 15.98 kB / 1.349 GB, free: 10.39 MB / 1.045 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.000257/0.43, allocations: 183 kB / 1.349 GB, free: 10.21 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.126e-05/0.4301, allocations: 35.75 kB / 1.349 GB, free: 10.17 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.3e-05/0.4301, allocations: 42.41 kB / 1.349 GB, free: 10.13 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4301, allocations: 4 kB / 1.349 GB, free: 10.12 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.4301, allocations: 0 / 1.349 GB, free: 10.12 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.4302, allocations: 3.984 kB / 1.349 GB, free: 10.12 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005023/0.4307, allocations: 376.4 kB / 1.349 GB, free: 9.711 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.4307, allocations: 4 kB / 1.349 GB, free: 9.707 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.4308, allocations: 31.98 kB / 1.349 GB, free: 9.676 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003218/0.4312, allocations: 94.44 kB / 1.35 GB, free: 9.574 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.4312, allocations: 4 kB / 1.35 GB, free: 9.57 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00342/0.4346, allocations: 4.077 MB / 1.353 GB, free: 5.148 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.4346, allocations: 7.922 kB / 1.353 GB, free: 5.141 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009479/0.4356, allocations: 0.5582 MB / 1.354 GB, free: 4.559 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.4358, allocations: 51.78 kB / 1.354 GB, free: 4.508 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.4358, allocations: 8 kB / 1.354 GB, free: 4.5 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.436, allocations: 16.05 kB / 1.354 GB, free: 4.484 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.875e-05/0.4361, allocations: 19.83 kB / 1.354 GB, free: 4.465 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/0.4361, allocations: 7.938 kB / 1.354 GB, free: 4.457 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002717/0.4364, allocations: 215.1 kB / 1.354 GB, free: 4.246 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4364, allocations: 0 / 1.354 GB, free: 4.246 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005919/0.437, allocations: 96 kB / 1.354 GB, free: 4.152 MB / 1.045 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.001302/0.4383, allocations: 1.095 MB / 1.356 GB, free: 3.023 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001093/0.4394, allocations: 0.5897 MB / 1.356 GB, free: 2.395 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4394, allocations: 0 / 1.356 GB, free: 2.395 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005791/0.44, allocations: 466.1 kB / 1.357 GB, free: 1.902 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006105/0.4406, allocations: 71.77 kB / 1.357 GB, free: 1.836 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004897/0.4455, allocations: 3.384 MB / 1.36 GB, free: 14.28 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.446, allocations: 0.8311 MB / 1.361 GB, free: 13.42 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002345/0.4462, allocations: 62.92 kB / 1.361 GB, free: 13.36 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.4464, allocations: 111.4 kB / 1.361 GB, free: 13.25 MB / 1.061 GB Notification: Performance of SimCode: time 1.032e-06/0.4464, allocations: 0 / 1.361 GB, free: 13.25 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0603/0.5067, allocations: 8.138 MB / 1.369 GB, free: 5.324 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.48, allocations: 11.34 kB / 1.369 GB, free: 5.316 MB / 1.061 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.372798363037873]