Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.007931/0.007931, allocations: 100.8 kB / 15.87 MB, free: 5.863 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.002016/0.002016, allocations: 190.8 kB / 16.79 MB, free: 5.805 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.38/1.38, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.652/2.652, allocations: 437 MB / 0.7106 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 67.89 kB / 0.8692 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6209/0.6223, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006341/0.6287, allocations: 4.394 MB / 1.022 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003031/0.6318, allocations: 1.858 MB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003833/0.6322, allocations: 15.94 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.6339, allocations: 0.5645 MB / 1.024 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007244/0.6347, allocations: 246.9 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006861/0.6354, allocations: 219.5 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009389/0.6363, allocations: 0.853 MB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000501/0.6368, allocations: 310.9 kB / 1.026 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003623/0.6372, allocations: 211.2 kB / 1.026 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005719/0.6378, allocations: 275 kB / 1.026 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.937e-05/0.6379, allocations: 24 kB / 1.026 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005998/0.6385, allocations: 315.4 kB / 1.026 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.6387, allocations: 139.5 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000302/0.639, allocations: 207 kB / 1.027 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006822/0.6397, allocations: 480.8 kB / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.6397, allocations: 0 / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6397, allocations: 0 / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.739e-05/0.6397, allocations: 0 / 1.027 GB, free: 8.691 MB / 0.7794 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.001435/0.6412, allocations: 0.7227 MB / 1.028 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 7.174e-05/0.6412, allocations: 12.03 kB / 1.028 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/0.6423, allocations: 148.3 kB / 1.028 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.6428, allocations: 334.4 kB / 1.028 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.6428, allocations: 25.38 kB / 1.028 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.829e-05/0.6429, allocations: 32.38 kB / 1.028 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008164/0.6437, allocations: 0.5356 MB / 1.029 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.6438, allocations: 0 / 1.029 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.876e-05/0.6438, allocations: 16 kB / 1.029 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.731e-05/0.6439, allocations: 32.64 kB / 1.029 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006328/0.6445, allocations: 394.2 kB / 1.029 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.647, allocations: 2.407 MB / 1.032 GB, free: 3.703 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005092/0.6475, allocations: 262 kB / 1.032 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.6477, allocations: 112.8 kB / 1.032 GB, free: 3.328 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.6477, allocations: 4 kB / 1.032 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.6478, allocations: 38.56 kB / 1.032 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.6478, allocations: 0 / 1.032 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002177/0.65, allocations: 1.122 MB / 1.033 GB, free: 2.059 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.65, allocations: 55.41 kB / 1.033 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.6503, allocations: 308.3 kB / 1.033 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.6504, allocations: 29.7 kB / 1.033 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.6505, allocations: 231.6 kB / 1.034 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.708e-05/0.6506, allocations: 78.91 kB / 1.034 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.834e-05/0.6507, allocations: 65.94 kB / 1.034 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.6508, allocations: 338.8 kB / 1.034 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.651, allocations: 104.6 kB / 1.034 GB, free: 0.8242 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.6512, allocations: 179.8 kB / 1.034 GB, free: 0.6094 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.6516, allocations: 321.6 kB / 1.035 GB, free: 268 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.6516, allocations: 0 / 1.035 GB, free: 268 kB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007791/0.6524, allocations: 443.3 kB / 1.035 GB, free: 15.81 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.6524, allocations: 8 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.6524, allocations: 4 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.6528, allocations: 102.7 kB / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.6531, allocations: 59.91 kB / 1.035 GB, free: 15.63 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003219/0.6563, allocations: 4.079 MB / 1.039 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.6566, allocations: 11.94 kB / 1.039 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.6567, allocations: 12.16 kB / 1.039 GB, free: 11.13 MB / 0.795 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.0002415/0.6569, allocations: 189.6 kB / 1.04 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.657, allocations: 31.62 kB / 1.04 GB, free: 10.91 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.636e-05/0.6571, allocations: 38.31 kB / 1.04 GB, free: 10.87 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.6571, allocations: 0 / 1.04 GB, free: 10.87 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.6571, allocations: 4 kB / 1.04 GB, free: 10.86 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.6571, allocations: 3.984 kB / 1.04 GB, free: 10.86 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005257/0.6576, allocations: 405.3 kB / 1.04 GB, free: 10.41 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.6577, allocations: 0 / 1.04 GB, free: 10.41 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.6578, allocations: 31.98 kB / 1.04 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003263/0.6582, allocations: 98.44 kB / 1.04 GB, free: 10.28 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.6582, allocations: 8 kB / 1.04 GB, free: 10.27 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003089/0.6613, allocations: 4.072 MB / 1.044 GB, free: 5.793 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.6613, allocations: 0 / 1.044 GB, free: 5.793 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008301/0.6622, allocations: 0.5499 MB / 1.045 GB, free: 5.219 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.6623, allocations: 132.7 kB / 1.045 GB, free: 5.07 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/0.6624, allocations: 0 / 1.045 GB, free: 5.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.6626, allocations: 19.92 kB / 1.045 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.6627, allocations: 19.97 kB / 1.045 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.6627, allocations: 8.062 kB / 1.045 GB, free: 5.023 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002197/0.6629, allocations: 211.1 kB / 1.045 GB, free: 4.82 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6629, allocations: 0 / 1.045 GB, free: 4.82 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004761/0.6634, allocations: 96 kB / 1.045 GB, free: 4.727 MB / 0.795 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.0001388/0.6635, allocations: 108 kB / 1.045 GB, free: 4.613 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008964/0.6644, allocations: 0.6137 MB / 1.046 GB, free: 3.961 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.6644, allocations: 0 / 1.046 GB, free: 3.961 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004945/0.6649, allocations: 478.4 kB / 1.046 GB, free: 3.457 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005328/0.6655, allocations: 69.86 kB / 1.046 GB, free: 3.391 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.667, allocations: 0.9022 MB / 1.047 GB, free: 2.461 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.6674, allocations: 0.8309 MB / 1.048 GB, free: 1.605 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.907e-05/0.6675, allocations: 27.44 kB / 1.048 GB, free: 1.578 MB / 0.795 GB Notification: Performance of SimCode: time 9.42e-07/0.6675, allocations: 3.938 kB / 1.048 GB, free: 1.574 MB / 0.795 GB Notification: Performance of Templates: time 0.01188/0.6794, allocations: 8.657 MB / 1.056 GB, free: 8.926 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches