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.001414/0.001414, allocations: 84.39 kB / 20.23 MB, free: 4.309 MB / 18.57 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.001598/0.001598, allocations: 169.2 kB / 23.55 MB, free: 0.9883 MB / 18.57 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.533/1.533, allocations: 177.1 MB / 203.9 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.006/3.006, allocations: 377.8 MB / 0.6232 GB, free: 8.5 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0.5469 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.432e-05/2.62e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007383/0.007409, allocations: 4.235 MB / 0.8149 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.003675/0.01108, allocations: 1.814 MB / 0.8167 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000298/0.01138, allocations: 11.94 kB / 0.8167 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.01332, allocations: 0.598 MB / 0.8173 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0007633/0.01409, allocations: 276.9 kB / 0.8175 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006992/0.01479, allocations: 246.2 kB / 0.8178 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0009146/0.0157, allocations: 0.6343 MB / 0.8184 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007052/0.01641, allocations: 343.1 kB / 0.8187 GB, free: 9.961 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008281/0.01723, allocations: 351.1 kB / 0.8191 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006037/0.01784, allocations: 240.9 kB / 0.8193 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 8.35e-05/0.01792, allocations: 39.94 kB / 0.8193 GB, free: 9.344 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004817/0.0184, allocations: 231.4 kB / 0.8195 GB, free: 9.117 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.0186, allocations: 164.7 kB / 0.8197 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.01886, allocations: 155.7 kB / 0.8198 GB, free: 8.805 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0009375/0.0198, allocations: 0.623 MB / 0.8205 GB, free: 8.18 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.0198, allocations: 1.375 kB / 0.8205 GB, free: 8.18 MB / 0.7761 GB Notification: Performance of FrontEnd: time 4.949e-06/0.0198, allocations: 7.984 kB / 0.8205 GB, free: 8.172 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.641e-05/0.01982, allocations: 0 / 0.8205 GB, free: 8.172 MB / 0.7761 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.001489/0.02131, allocations: 0.6517 MB / 0.8211 GB, free: 7.488 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.02135, allocations: 12.88 kB / 0.8211 GB, free: 7.477 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/0.02251, allocations: 218.4 kB / 0.8213 GB, free: 7.266 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006052/0.02312, allocations: 295.5 kB / 0.8216 GB, free: 6.953 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.02315, allocations: 21.38 kB / 0.8216 GB, free: 6.934 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.451e-05/0.02323, allocations: 36.38 kB / 0.8217 GB, free: 6.898 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.02427, allocations: 0.6826 MB / 0.8223 GB, free: 6.148 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.02429, allocations: 4.172 kB / 0.8223 GB, free: 6.145 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.02434, allocations: 20.36 kB / 0.8223 GB, free: 6.125 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.079e-05/0.0244, allocations: 34.33 kB / 0.8224 GB, free: 6.09 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.02509, allocations: 386.3 kB / 0.8227 GB, free: 5.715 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002728/0.02782, allocations: 1.675 MB / 0.8244 GB, free: 3.977 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005826/0.0284, allocations: 242.8 kB / 0.8246 GB, free: 3.734 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.02859, allocations: 101.1 kB / 0.8247 GB, free: 3.633 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.02861, allocations: 0 / 0.8247 GB, free: 3.633 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.712e-05/0.02867, allocations: 42.52 kB / 0.8248 GB, free: 3.582 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=20): time 1.012e-06/0.02867, allocations: 0 / 0.8248 GB, free: 3.582 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23): time 0.002446/0.03111, allocations: 0.9072 MB / 0.8256 GB, free: 2.637 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.03116, allocations: 64.36 kB / 0.8257 GB, free: 2.562 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004526/0.03162, allocations: 273.7 kB / 0.826 GB, free: 2.289 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.03165, allocations: 25.7 kB / 0.826 GB, free: 2.258 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.03185, allocations: 241.2 kB / 0.8262 GB, free: 2.02 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.938e-05/0.03194, allocations: 87.27 kB / 0.8263 GB, free: 1.934 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.03206, allocations: 61.98 kB / 0.8264 GB, free: 1.863 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001877/0.03225, allocations: 339.5 kB / 0.8267 GB, free: 1.523 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.03246, allocations: 104.6 kB / 0.8268 GB, free: 1.422 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002899/0.03275, allocations: 196.2 kB / 0.827 GB, free: 1.191 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005013/0.03325, allocations: 319.2 kB / 0.8273 GB, free: 0.8516 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.03325, allocations: 0 / 0.8273 GB, free: 0.8516 MB / 0.7761 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009106/0.03416, allocations: 448.8 kB / 0.8277 GB, free: 412 kB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.03418, allocations: 8.344 kB / 0.8277 GB, free: 404 kB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.03419, allocations: 4 kB / 0.8277 GB, free: 400 kB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007084/0.0349, allocations: 134.5 kB / 0.8278 GB, free: 256 kB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.03521, allocations: 67.89 kB / 0.8279 GB, free: 188 kB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004281/0.03949, allocations: 4.002 MB / 0.8318 GB, free: 11.87 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.03974, allocations: 8 kB / 0.8318 GB, free: 11.86 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.03978, allocations: 16 kB / 0.8318 GB, free: 11.85 MB / 0.7917 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.0002605/0.04004, allocations: 185.8 kB / 0.832 GB, free: 11.66 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.583e-05/0.04014, allocations: 43.75 kB / 0.8321 GB, free: 11.61 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.479e-05/0.04022, allocations: 38.27 kB / 0.8321 GB, free: 11.58 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.04022, allocations: 0 / 0.8321 GB, free: 11.58 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.04023, allocations: 4 kB / 0.8321 GB, free: 11.58 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.04024, allocations: 4.078 kB / 0.8321 GB, free: 11.57 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004858/0.04073, allocations: 285.1 kB / 0.8324 GB, free: 11.27 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.04073, allocations: 4 kB / 0.8324 GB, free: 11.26 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.04095, allocations: 35.98 kB / 0.8324 GB, free: 11.23 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000654/0.0416, allocations: 126.5 kB / 0.8325 GB, free: 11.09 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.04162, allocations: 4 kB / 0.8325 GB, free: 11.09 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004238/0.04586, allocations: 3.997 MB / 0.8364 GB, free: 6.785 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.04586, allocations: 0 / 0.8364 GB, free: 6.785 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.0469, allocations: 0.5705 MB / 0.837 GB, free: 6.191 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.04704, allocations: 47.77 kB / 0.837 GB, free: 6.145 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.04708, allocations: 7.984 kB / 0.837 GB, free: 6.137 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.0473, allocations: 16 kB / 0.8371 GB, free: 6.121 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.04737, allocations: 15.97 kB / 0.8371 GB, free: 6.105 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.613e-05/0.04739, allocations: 8 kB / 0.8371 GB, free: 6.098 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.000235/0.04763, allocations: 189.2 kB / 0.8373 GB, free: 5.914 MB / 0.7917 GB Notification: Performance of sort global known variables: time 9e-08/0.04763, allocations: 0 / 0.8373 GB, free: 5.914 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0005324/0.04816, allocations: 99.94 kB / 0.8374 GB, free: 5.816 MB / 0.7917 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.0001587/0.04832, allocations: 107.4 kB / 0.8375 GB, free: 5.703 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.001062/0.04938, allocations: 0.6015 MB / 0.8381 GB, free: 5.062 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.04939, allocations: 0 / 0.8381 GB, free: 5.062 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0006182/0.05, allocations: 457.8 kB / 0.8385 GB, free: 4.578 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.05053, allocations: 72.58 kB / 0.8386 GB, free: 4.512 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.05195, allocations: 0.6955 MB / 0.8392 GB, free: 3.781 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.05224, allocations: 223.8 kB / 0.8395 GB, free: 3.543 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0002131/0.05245, allocations: 54.92 kB / 0.8395 GB, free: 3.492 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.034e-05/0.05252, allocations: 28.5 kB / 0.8395 GB, free: 3.461 MB / 0.7917 GB Notification: Performance of SimCode: time 6.82e-07/0.05253, allocations: 0 / 0.8395 GB, free: 3.461 MB / 0.7917 GB Notification: Performance of Templates: time 0.01161/0.06413, allocations: 4.361 MB / 0.8438 GB, free: 15.2 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 400] 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/jenkins/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: 8.199686773936264]