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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005621/0.005621, allocations: 100.5 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 191.9 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 482.4 MB / 0.7548 GB, free: 6.941 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002048/0.002048, allocations: 64.06 kB / 1.083 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2786, allocations: 162.2 MB / 1.241 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006157/0.2847, allocations: 4.355 MB / 1.246 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002961/0.2877, allocations: 1.858 MB / 1.247 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.2879, allocations: 15.94 kB / 1.248 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.2896, allocations: 0.5914 MB / 1.248 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0005288/0.2901, allocations: 266.6 kB / 1.248 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005805/0.2907, allocations: 247.4 kB / 1.249 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006953/0.2914, allocations: 0.6151 MB / 1.249 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006958/0.2921, allocations: 467 kB / 1.25 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/0.2924, allocations: 247.2 kB / 1.25 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004601/0.2929, allocations: 271 kB / 1.25 GB, free: 416 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.604e-05/0.2929, allocations: 44 kB / 1.25 GB, free: 372 kB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004376/0.2934, allocations: 251.4 kB / 1.25 GB, free: 120 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.2936, allocations: 151.7 kB / 1.251 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.2938, allocations: 218.9 kB / 1.251 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007451/0.2946, allocations: 0.6109 MB / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2946, allocations: 0 / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2946, allocations: 0 / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.2946, allocations: 0 / 1.251 GB, free: 15.14 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.001255/0.2959, allocations: 0.7401 MB / 1.252 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2959, allocations: 8.031 kB / 1.252 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.045e-05/0.296, allocations: 78.72 kB / 1.252 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.297, allocations: 152.5 kB / 1.252 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.2975, allocations: 330.8 kB / 1.253 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.2975, allocations: 25.38 kB / 1.253 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.2976, allocations: 36.36 kB / 1.253 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008285/0.2984, allocations: 0.5354 MB / 1.253 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.2984, allocations: 0 / 1.253 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.595e-05/0.2985, allocations: 19.98 kB / 1.253 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.568e-05/0.2985, allocations: 28.64 kB / 1.253 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006367/0.2992, allocations: 398.2 kB / 1.254 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002659/0.3019, allocations: 2.396 MB / 1.256 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005491/0.3024, allocations: 264 kB / 1.256 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.3026, allocations: 116.8 kB / 1.256 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.3026, allocations: 0 / 1.256 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.3027, allocations: 42.56 kB / 1.256 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.3027, allocations: 0 / 1.256 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23): time 0.002294/0.305, allocations: 1.121 MB / 1.257 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.305, allocations: 67.33 kB / 1.258 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003291/0.3054, allocations: 300.5 kB / 1.258 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.3054, allocations: 29.7 kB / 1.258 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.3056, allocations: 236.1 kB / 1.258 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.809e-05/0.3057, allocations: 91.25 kB / 1.258 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.3058, allocations: 61.98 kB / 1.258 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3059, allocations: 338.8 kB / 1.259 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.3061, allocations: 104.6 kB / 1.259 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.3064, allocations: 187.7 kB / 1.259 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004478/0.3068, allocations: 322 kB / 1.259 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3068, allocations: 4 kB / 1.259 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000804/0.3077, allocations: 446 kB / 1.26 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3077, allocations: 8 kB / 1.26 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3077, allocations: 4 kB / 1.26 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003724/0.3081, allocations: 98.69 kB / 1.26 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.3084, allocations: 63.89 kB / 1.26 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0037/0.3121, allocations: 4.399 MB / 1.264 GB, free: 1.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.3123, allocations: 8 kB / 1.264 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.3123, allocations: 12 kB / 1.264 GB, free: 1.113 MB / 0.9825 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.0001966/0.3125, allocations: 186.2 kB / 1.264 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.3126, allocations: 39.84 kB / 1.264 GB, free: 0.8828 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.316e-05/0.3127, allocations: 38.31 kB / 1.264 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.3127, allocations: 4 kB / 1.264 GB, free: 0.8398 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3127, allocations: 4 kB / 1.264 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3127, allocations: 0 / 1.264 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/0.3132, allocations: 393.4 kB / 1.265 GB, free: 412 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3132, allocations: 7.938 kB / 1.265 GB, free: 404 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.3134, allocations: 35.92 kB / 1.265 GB, free: 368 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003136/0.3138, allocations: 98.42 kB / 1.265 GB, free: 260 kB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3138, allocations: 8 kB / 1.265 GB, free: 252 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003595/0.3174, allocations: 4.38 MB / 1.269 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3174, allocations: 3.938 kB / 1.269 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000874/0.3183, allocations: 0.5656 MB / 1.27 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.3184, allocations: 124.9 kB / 1.27 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.3185, allocations: 4 kB / 1.27 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.3187, allocations: 12 kB / 1.27 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/0.3187, allocations: 27.97 kB / 1.27 GB, free: 10.67 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.3188, allocations: 4 kB / 1.27 GB, free: 10.67 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002268/0.319, allocations: 215 kB / 1.27 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.319, allocations: 0 / 1.27 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000438/0.3195, allocations: 96 kB / 1.27 GB, free: 10.36 MB / 0.9981 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.001188/0.3206, allocations: 1.098 MB / 1.271 GB, free: 9.234 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008946/0.3216, allocations: 0.611 MB / 1.272 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3216, allocations: 4 kB / 1.272 GB, free: 8.582 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005506/0.3221, allocations: 464.3 kB / 1.272 GB, free: 8.09 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.3226, allocations: 82.91 kB / 1.272 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.327, allocations: 3.385 MB / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.3275, allocations: 0.8272 MB / 1.276 GB, free: 3.598 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001777/0.3277, allocations: 54.94 kB / 1.276 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.3279, allocations: 111.4 kB / 1.277 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of SimCode: time 3.81e-07/0.3279, allocations: 4 kB / 1.277 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04002/0.3679, allocations: 7.787 MB / 1.284 GB, free: 11.81 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.557/9.925, allocations: 10.86 kB / 1.284 GB, free: 11.8 MB / 1.014 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/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) Reference file matches