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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.001334/0.001334, allocations: 187 kB / 17.34 MB, free: 5.742 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.68/2.68, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.89 kB / 1.055 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9788/0.9802, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.01095/0.9912, allocations: 4.342 MB / 1.213 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.005886/0.9971, allocations: 1.87 MB / 1.214 GB, free: 7.402 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005528/0.9977, allocations: 11.94 kB / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00264/1, allocations: 0.5953 MB / 1.215 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001366/1.002, allocations: 258.6 kB / 1.215 GB, free: 6.539 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001367/1.003, allocations: 250.9 kB / 1.216 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001447/1.005, allocations: 0.6112 MB / 1.216 GB, free: 5.684 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/1.006, allocations: 462.6 kB / 1.217 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006544/1.007, allocations: 255.1 kB / 1.217 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009451/1.008, allocations: 267 kB / 1.217 GB, free: 4.719 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001759/1.008, allocations: 36 kB / 1.217 GB, free: 4.684 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/1.009, allocations: 267.4 kB / 1.217 GB, free: 4.422 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002919/1.009, allocations: 143.7 kB / 1.218 GB, free: 4.281 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0005479/1.01, allocations: 218.9 kB / 1.218 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001457/1.011, allocations: 0.6015 MB / 1.218 GB, free: 3.465 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/1.011, allocations: 7.984 kB / 1.218 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.575e-06/1.011, allocations: 0 / 1.218 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.311e-05/1.011, allocations: 0 / 1.218 GB, free: 3.457 MB / 0.9356 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.00233/1.014, allocations: 0.7329 MB / 1.219 GB, free: 2.676 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/1.014, allocations: 12.03 kB / 1.219 GB, free: 2.664 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/1.016, allocations: 148.2 kB / 1.219 GB, free: 2.52 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007982/1.016, allocations: 334.6 kB / 1.22 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/1.016, allocations: 29.38 kB / 1.22 GB, free: 2.129 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/1.017, allocations: 28.38 kB / 1.22 GB, free: 2.102 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/1.018, allocations: 0.5357 MB / 1.22 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/1.018, allocations: 0 / 1.22 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.483e-05/1.018, allocations: 19.98 kB / 1.22 GB, free: 1.508 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-05/1.018, allocations: 36.56 kB / 1.22 GB, free: 1.473 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/1.019, allocations: 386.3 kB / 1.221 GB, free: 1.098 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/1.024, allocations: 2.407 MB / 1.223 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00096/1.025, allocations: 258.5 kB / 1.223 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002958/1.025, allocations: 110.2 kB / 1.223 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/1.025, allocations: 0 / 1.223 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/1.025, allocations: 38.56 kB / 1.223 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 2.595e-06/1.025, allocations: 0 / 1.223 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23): time 0.003961/1.029, allocations: 1.126 MB / 1.224 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/1.029, allocations: 55.41 kB / 1.224 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00058/1.03, allocations: 304.4 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/1.03, allocations: 29.7 kB / 1.225 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/1.03, allocations: 231.6 kB / 1.225 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/1.031, allocations: 90.73 kB / 1.225 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/1.031, allocations: 58.03 kB / 1.225 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000195/1.031, allocations: 338.8 kB / 1.225 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000322/1.031, allocations: 104.6 kB / 1.225 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004303/1.032, allocations: 191.7 kB / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/1.033, allocations: 319.4 kB / 1.226 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/1.033, allocations: 0 / 1.226 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001456/1.034, allocations: 441.7 kB / 1.226 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/1.034, allocations: 4 kB / 1.226 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/1.034, allocations: 4 kB / 1.226 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007048/1.035, allocations: 106.8 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000559/1.035, allocations: 59.91 kB / 1.227 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00587/1.041, allocations: 4.387 MB / 1.231 GB, free: 5.578 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/1.042, allocations: 12 kB / 1.231 GB, free: 5.566 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.497e-05/1.042, allocations: 8 kB / 1.231 GB, free: 5.559 MB / 0.9512 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.0004222/1.042, allocations: 185.9 kB / 1.231 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/1.042, allocations: 35.56 kB / 1.231 GB, free: 5.332 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/1.043, allocations: 42.31 kB / 1.231 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.043, allocations: 0 / 1.231 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/1.043, allocations: 4 kB / 1.231 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/1.043, allocations: 0 / 1.231 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008621/1.044, allocations: 397.4 kB / 1.232 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/1.044, allocations: 4 kB / 1.232 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/1.044, allocations: 39.84 kB / 1.232 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00059/1.045, allocations: 90.5 kB / 1.232 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/1.045, allocations: 8 kB / 1.232 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00561/1.05, allocations: 4.383 MB / 1.236 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.05, allocations: 3.938 kB / 1.236 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/1.052, allocations: 0.5544 MB / 1.236 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002753/1.052, allocations: 132.8 kB / 1.237 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/1.052, allocations: 4 kB / 1.237 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/1.053, allocations: 12 kB / 1.237 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.776e-05/1.053, allocations: 23.91 kB / 1.237 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/1.053, allocations: 4 kB / 1.237 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004237/1.053, allocations: 215.1 kB / 1.237 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.71e-07/1.053, allocations: 0 / 1.237 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0008905/1.054, allocations: 99.94 kB / 1.237 GB, free: 14.82 MB / 0.9669 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.0002043/1.054, allocations: 107.2 kB / 1.237 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001503/1.056, allocations: 0.6055 MB / 1.238 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/1.056, allocations: 0 / 1.238 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000851/1.057, allocations: 472 kB / 1.238 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009101/1.058, allocations: 80.84 kB / 1.238 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/1.06, allocations: 0.7444 MB / 1.239 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006836/1.061, allocations: 0.8311 MB / 1.24 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/1.061, allocations: 23.44 kB / 1.24 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of SimCode: time 5.51e-07/1.061, allocations: 0 / 1.24 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of Templates: time 0.0205/1.081, allocations: 8.697 MB / 1.248 GB, free: 3.141 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (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 & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) 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) Reference file matches