Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00862/0.00862, allocations: 102.3 kB / 15.73 MB, free: 6.059 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.001784/0.001784, allocations: 187.8 kB / 16.67 MB, free: 5.969 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.672/2.672, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 55.91 kB / 1.065 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9538/0.9552, allocations: 159.1 MB / 1.221 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007458/0.9626, allocations: 4.37 MB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003573/0.9662, allocations: 1.866 MB / 1.227 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004675/0.9667, allocations: 15.94 kB / 1.227 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001936/0.9686, allocations: 0.5931 MB / 1.227 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0008505/0.9695, allocations: 262.6 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008298/0.9703, allocations: 249 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0009871/0.9713, allocations: 0.6151 MB / 1.228 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007512/0.972, allocations: 366.5 kB / 1.229 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004505/0.9725, allocations: 255.1 kB / 1.229 GB, free: 9.512 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006506/0.9731, allocations: 267 kB / 1.229 GB, free: 9.25 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.9732, allocations: 36 kB / 1.229 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006229/0.9739, allocations: 255.4 kB / 1.229 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.9741, allocations: 159.5 kB / 1.23 GB, free: 8.809 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003177/0.9744, allocations: 218.9 kB / 1.23 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0009911/0.9754, allocations: 0.6003 MB / 1.23 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.9754, allocations: 4 kB / 1.23 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9754, allocations: 0 / 1.23 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.226e-05/0.9754, allocations: 7.938 kB / 1.23 GB, free: 7.98 MB / 0.9512 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.001582/0.977, allocations: 0.7323 MB / 1.231 GB, free: 7.199 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.977, allocations: 12.03 kB / 1.231 GB, free: 7.188 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001084/0.9781, allocations: 152.5 kB / 1.231 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005691/0.9787, allocations: 338.6 kB / 1.232 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.9787, allocations: 29.38 kB / 1.232 GB, free: 6.641 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.801e-05/0.9788, allocations: 36.36 kB / 1.232 GB, free: 6.605 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008397/0.9796, allocations: 0.5317 MB / 1.232 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.9797, allocations: 4 kB / 1.232 GB, free: 6.035 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.854e-05/0.9797, allocations: 19.98 kB / 1.232 GB, free: 6.016 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-05/0.9798, allocations: 28.64 kB / 1.232 GB, free: 5.988 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006129/0.9804, allocations: 386.3 kB / 1.233 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002768/0.9831, allocations: 2.404 MB / 1.235 GB, free: 2.988 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/0.9837, allocations: 238.5 kB / 1.235 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.9838, allocations: 96.81 kB / 1.235 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.9838, allocations: 7.938 kB / 1.235 GB, free: 2.641 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.9839, allocations: 38.56 kB / 1.235 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 2.094e-06/0.9839, allocations: 3.938 kB / 1.235 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23): time 0.002244/0.9861, allocations: 1.128 MB / 1.236 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.9862, allocations: 55.41 kB / 1.236 GB, free: 1.301 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.9865, allocations: 308.4 kB / 1.237 GB, free: 0.9883 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.9865, allocations: 29.7 kB / 1.237 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.9867, allocations: 232.2 kB / 1.237 GB, free: 0.7188 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.237e-05/0.9867, allocations: 91.2 kB / 1.237 GB, free: 0.6289 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.9868, allocations: 58.03 kB / 1.237 GB, free: 0.5625 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.987, allocations: 342.8 kB / 1.238 GB, free: 224 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.9871, allocations: 104.6 kB / 1.238 GB, free: 120 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.9874, allocations: 191.7 kB / 1.238 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/0.9878, allocations: 319.5 kB / 1.238 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.9878, allocations: 0 / 1.238 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007592/0.9885, allocations: 438 kB / 1.239 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.9885, allocations: 8 kB / 1.239 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.9885, allocations: 3.984 kB / 1.239 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.9889, allocations: 98.69 kB / 1.239 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.9892, allocations: 67.84 kB / 1.239 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003276/0.9925, allocations: 4.388 MB / 1.243 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.9928, allocations: 8.031 kB / 1.243 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.9928, allocations: 16 kB / 1.243 GB, free: 10.08 MB / 0.9669 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.0002379/0.993, allocations: 181.8 kB / 1.243 GB, free: 9.895 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.9931, allocations: 35.75 kB / 1.243 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.538e-05/0.9932, allocations: 42.31 kB / 1.243 GB, free: 9.82 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.9932, allocations: 4 kB / 1.243 GB, free: 9.816 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.9932, allocations: 3.938 kB / 1.243 GB, free: 9.812 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.9932, allocations: 0 / 1.243 GB, free: 9.812 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004499/0.9936, allocations: 393.5 kB / 1.244 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.9936, allocations: 0 / 1.244 GB, free: 9.379 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.9938, allocations: 55.89 kB / 1.244 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.9941, allocations: 86.5 kB / 1.244 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.9942, allocations: 8 kB / 1.244 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002975/0.9971, allocations: 4.384 MB / 1.248 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.9971, allocations: 160 / 1.248 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008173/0.998, allocations: 0.5581 MB / 1.249 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.9981, allocations: 124.9 kB / 1.249 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.9981, allocations: 4 kB / 1.249 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.9984, allocations: 20.06 kB / 1.249 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.9984, allocations: 23.77 kB / 1.249 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.9985, allocations: 8 kB / 1.249 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002133/0.9987, allocations: 211.1 kB / 1.249 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.9987, allocations: 0 / 1.249 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005106/0.9992, allocations: 103.9 kB / 1.249 GB, free: 3.332 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.0001503/0.9993, allocations: 107.2 kB / 1.249 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000849/1, allocations: 0.59 MB / 1.25 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1, allocations: 4.188 kB / 1.25 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004587/1.001, allocations: 463.9 kB / 1.25 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/1.001, allocations: 81.89 kB / 1.25 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/1.002, allocations: 0.7242 MB / 1.251 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/1.003, allocations: 0.8311 MB / 1.252 GB, free: 420 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001857/1.003, allocations: 62.92 kB / 1.252 GB, free: 360 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.98e-05/1.003, allocations: 23.44 kB / 1.252 GB, free: 336 kB / 0.9669 GB Notification: Performance of SimCode: time 6.11e-07/1.003, allocations: 0 / 1.252 GB, free: 336 kB / 0.9669 GB Notification: Performance of Templates: time 0.008463/1.011, allocations: 4.522 MB / 1.256 GB, free: 11.85 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches