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.001384/0.001384, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001368/0.001368, allocations: 194.2 kB / 16.25 MB, free: 6.621 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.389/1.389, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.787/2.787, allocations: 469.8 MB / 0.742 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 61.61 kB / 0.908 GB, free: 34.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.288, allocations: 159.2 MB / 1.063 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006218/0.2942, allocations: 4.393 MB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002834/0.2971, allocations: 1.846 MB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.2973, allocations: 11.94 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.2988, allocations: 0.5549 MB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005116/0.2993, allocations: 242.8 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005495/0.2999, allocations: 224.2 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006723/0.3006, allocations: 0.6151 MB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000752/0.3013, allocations: 0.5068 MB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002593/0.3016, allocations: 251.1 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004221/0.302, allocations: 275 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.3021, allocations: 36 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003844/0.3025, allocations: 259.4 kB / 1.072 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.3026, allocations: 151.6 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.3029, allocations: 223 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006966/0.3036, allocations: 0.6191 MB / 1.073 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3036, allocations: 3.938 kB / 1.073 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3036, allocations: 0 / 1.073 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.3036, allocations: 0 / 1.073 GB, free: 4.406 MB / 0.8262 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.001243/0.3048, allocations: 0.729 MB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3049, allocations: 8.031 kB / 1.074 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009396/0.3058, allocations: 148.2 kB / 1.074 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004159/0.3063, allocations: 326.5 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.3063, allocations: 29.38 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.817e-05/0.3064, allocations: 32.38 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008083/0.3072, allocations: 0.5317 MB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.3072, allocations: 4 kB / 1.075 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.3073, allocations: 15.98 kB / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.537e-05/0.3073, allocations: 40.56 kB / 1.075 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005989/0.3079, allocations: 390.3 kB / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.3106, allocations: 2.399 MB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.3111, allocations: 266.5 kB / 1.078 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.3113, allocations: 116.8 kB / 1.078 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.3114, allocations: 4 kB / 1.078 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.3114, allocations: 30.56 kB / 1.078 GB, free: 15 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.3114, allocations: 0 / 1.078 GB, free: 15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.002163/0.3136, allocations: 1.129 MB / 1.079 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.3136, allocations: 59.34 kB / 1.079 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003213/0.3139, allocations: 304.4 kB / 1.08 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.314, allocations: 29.7 kB / 1.08 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.3141, allocations: 231.6 kB / 1.08 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.917e-05/0.3142, allocations: 82.83 kB / 1.08 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.3143, allocations: 65.94 kB / 1.08 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3145, allocations: 338.8 kB / 1.08 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.3147, allocations: 104.6 kB / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.3149, allocations: 187.7 kB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.3154, allocations: 321.6 kB / 1.081 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3154, allocations: 0 / 1.081 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007466/0.3161, allocations: 449.8 kB / 1.081 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3161, allocations: 4 kB / 1.081 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3162, allocations: 4 kB / 1.082 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/0.3165, allocations: 94.72 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.3168, allocations: 67.89 kB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.3204, allocations: 4.399 MB / 1.086 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.3206, allocations: 8.141 kB / 1.086 GB, free: 6.512 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.3206, allocations: 15.94 kB / 1.086 GB, free: 6.496 MB / 0.8419 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.0002053/0.3209, allocations: 185.7 kB / 1.086 GB, free: 6.305 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.3209, allocations: 43.61 kB / 1.086 GB, free: 6.262 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.474e-05/0.321, allocations: 38.31 kB / 1.086 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.321, allocations: 0 / 1.086 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.321, allocations: 4 kB / 1.086 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.321, allocations: 0 / 1.086 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004718/0.3215, allocations: 397.4 kB / 1.087 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3215, allocations: 0 / 1.087 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.3217, allocations: 35.86 kB / 1.087 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002999/0.322, allocations: 102.5 kB / 1.087 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.3221, allocations: 4 kB / 1.087 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003502/0.3256, allocations: 4.38 MB / 1.091 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3256, allocations: 3.938 kB / 1.091 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008/0.3264, allocations: 0.5575 MB / 1.092 GB, free: 256 kB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.3265, allocations: 124.7 kB / 1.092 GB, free: 112 kB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.3266, allocations: 7.938 kB / 1.092 GB, free: 104 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.3268, allocations: 12 kB / 1.092 GB, free: 92 kB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.3268, allocations: 16.06 kB / 1.092 GB, free: 76 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.3268, allocations: 11.98 kB / 1.092 GB, free: 64 kB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002282/0.3271, allocations: 211.1 kB / 1.092 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3271, allocations: 0 / 1.092 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004361/0.3275, allocations: 104 kB / 1.092 GB, free: 15.76 MB / 0.8575 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.000128/0.3277, allocations: 107.2 kB / 1.092 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008951/0.3286, allocations: 0.6249 MB / 1.093 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3286, allocations: 0 / 1.093 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004984/0.3291, allocations: 472 kB / 1.093 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004839/0.3296, allocations: 80.41 kB / 1.093 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3308, allocations: 0.8554 MB / 1.094 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004695/0.3313, allocations: 0.8272 MB / 1.095 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000196/0.3315, allocations: 66.86 kB / 1.095 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.3315, allocations: 23.44 kB / 1.095 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3315, allocations: 0 / 1.095 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of Templates: time 0.01263/0.3442, allocations: 4.445 MB / 1.099 GB, free: 8.168 MB / 0.8575 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=400 -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