Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007205/0.007205, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001494/0.001494, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.554/1.554, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.752/2.752, allocations: 461.9 MB / 0.7347 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.89 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3577, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02438/0.3822, allocations: 22.63 MB / 1.23 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02703/0.4093, allocations: 17.63 MB / 1.247 GB, free: 1.238 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004749/0.4141, allocations: 115.4 kB / 1.247 GB, free: 1.125 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.8821/1.296, allocations: 4.166 MB / 1.251 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01358/1.31, allocations: 3.509 MB / 1.255 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004834/1.315, allocations: 1.314 MB / 1.256 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01184/1.327, allocations: 5.773 MB / 1.262 GB, free: 3.824 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009671/1.336, allocations: 3.591 MB / 1.265 GB, free: 3.266 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007168/1.343, allocations: 2.479 MB / 1.268 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009259/1.353, allocations: 2.447 MB / 1.27 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.003143/1.356, allocations: 369.7 kB / 1.27 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006303/1.362, allocations: 1.032 MB / 1.271 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.003756/1.366, allocations: 1.194 MB / 1.272 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00813/1.374, allocations: 2.002 MB / 1.274 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0136/1.388, allocations: 5.163 MB / 1.279 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/1.388, allocations: 0 / 1.279 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.452e-06/1.388, allocations: 0 / 1.279 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003276/1.388, allocations: 1.531 kB / 1.279 GB, free: 0.793 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.02239/1.411, allocations: 4.612 MB / 1.284 GB, free: 14.79 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/1.411, allocations: 13.84 kB / 1.284 GB, free: 14.79 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.019/1.43, allocations: 3.263 MB / 1.287 GB, free: 14.46 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007736/1.438, allocations: 2.227 MB / 1.289 GB, free: 13.74 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007612/1.438, allocations: 467.5 kB / 1.29 GB, free: 13.42 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/1.441, allocations: 230.8 kB / 1.29 GB, free: 13.42 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02141/1.462, allocations: 4.818 MB / 1.295 GB, free: 12.68 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000166/1.462, allocations: 1.344 kB / 1.295 GB, free: 12.68 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001705/1.464, allocations: 105.8 kB / 1.295 GB, free: 12.6 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003913/1.464, allocations: 170.1 kB / 1.295 GB, free: 12.58 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01953/1.484, allocations: 5.199 MB / 1.3 GB, free: 11.04 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03604/1.52, allocations: 14.38 MB / 1.314 GB, free: 312 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/1.532, allocations: 3.396 MB / 1.317 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004603/1.537, allocations: 1.465 MB / 1.319 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002143/1.537, allocations: 25.72 kB / 1.319 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005133/1.542, allocations: 1.794 MB / 1.321 GB, free: 12.72 MB / 1.029 GB Notification: Performance of pre-optimization done (n=163): time 8.617e-06/1.542, allocations: 1.031 kB / 1.321 GB, free: 12.72 MB / 1.029 GB Notification: Performance of matching and sorting (n=250): time 0.1343/1.677, allocations: 28.24 MB / 1.348 GB, free: 12.17 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006593/1.677, allocations: 0.4958 MB / 1.349 GB, free: 11.57 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005104/1.683, allocations: 2.296 MB / 1.351 GB, free: 9.258 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0007123/1.683, allocations: 73.7 kB / 1.351 GB, free: 9.18 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001711/1.685, allocations: 1.437 MB / 1.352 GB, free: 7.73 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.001455/1.687, allocations: 0.818 MB / 1.353 GB, free: 6.918 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001691/1.688, allocations: 412.5 kB / 1.354 GB, free: 6.508 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.688, allocations: 308.4 kB / 1.354 GB, free: 6.207 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006043/1.694, allocations: 1.929 MB / 1.356 GB, free: 4.273 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006337/1.701, allocations: 2.231 MB / 1.358 GB, free: 1.957 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/1.712, allocations: 4.165 MB / 1.362 GB, free: 13.66 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/1.712, allocations: 4 kB / 1.362 GB, free: 13.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01958/1.732, allocations: 6.543 MB / 1.368 GB, free: 7.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/1.732, allocations: 144.5 kB / 1.369 GB, free: 6.848 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/1.732, allocations: 4.938 kB / 1.369 GB, free: 6.844 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/1.743, allocations: 2.93 MB / 1.371 GB, free: 3.91 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003137/1.746, allocations: 487.2 kB / 1.372 GB, free: 3.434 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04332/1.789, allocations: 18.85 MB / 1.39 GB, free: 380 kB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005198/1.794, allocations: 315.6 kB / 1.391 GB, free: 64 kB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007886/1.795, allocations: 91.97 kB / 1.391 GB, free: 15.97 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.002568/1.798, allocations: 0.7086 MB / 1.391 GB, free: 15.25 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.799, allocations: 332.1 kB / 1.392 GB, free: 14.93 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/1.8, allocations: 380.1 kB / 1.392 GB, free: 14.55 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/1.8, allocations: 27.94 kB / 1.392 GB, free: 14.52 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.868e-05/1.8, allocations: 15.88 kB / 1.392 GB, free: 14.51 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.669e-05/1.8, allocations: 11.95 kB / 1.392 GB, free: 14.5 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00691/1.807, allocations: 3.627 MB / 1.396 GB, free: 10.85 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.403e-05/1.807, allocations: 0 / 1.396 GB, free: 10.85 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0026/1.81, allocations: 415.4 kB / 1.396 GB, free: 10.45 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01079/1.821, allocations: 2.867 MB / 1.399 GB, free: 7.566 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006097/1.821, allocations: 51.97 kB / 1.399 GB, free: 7.516 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0452/1.867, allocations: 18.62 MB / 1.417 GB, free: 4.617 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.867, allocations: 4 kB / 1.417 GB, free: 4.613 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02173/1.888, allocations: 6.169 MB / 1.423 GB, free: 14.41 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002738/1.891, allocations: 0.6962 MB / 1.424 GB, free: 13.7 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001391/1.893, allocations: 48 kB / 1.424 GB, free: 13.65 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004243/1.897, allocations: 319.5 kB / 1.424 GB, free: 13.34 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001505/1.898, allocations: 354.7 kB / 1.424 GB, free: 12.99 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003905/1.899, allocations: 68.84 kB / 1.425 GB, free: 12.93 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.003355/1.902, allocations: 1.532 MB / 1.426 GB, free: 11.39 MB / 1.123 GB Notification: Performance of sort global known variables: time 2.5e-07/1.902, allocations: 0 / 1.426 GB, free: 11.39 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.004847/1.907, allocations: 1.043 MB / 1.427 GB, free: 10.35 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000533/1.908, allocations: 170.8 kB / 1.427 GB, free: 10.18 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.02517/1.933, allocations: 6.469 MB / 1.434 GB, free: 3.609 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.933, allocations: 4 kB / 1.434 GB, free: 3.605 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.01856/1.951, allocations: 4.052 MB / 1.437 GB, free: 15.53 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007676/1.959, allocations: 1.141 MB / 1.439 GB, free: 14.43 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/1.978, allocations: 6.68 MB / 1.445 GB, free: 7.723 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003679/1.981, allocations: 2.231 MB / 1.447 GB, free: 5.461 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.002954/1.984, allocations: 0.5138 MB / 1.448 GB, free: 4.941 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009393/1.985, allocations: 183.4 kB / 1.448 GB, free: 4.762 MB / 1.139 GB Notification: Performance of SimCode: time 8.51e-07/1.985, allocations: 3.938 kB / 1.448 GB, free: 4.758 MB / 1.139 GB Notification: Performance of Templates: time 0.1218/2.107, allocations: 75.64 MB / 1.522 GB, free: 10.12 MB / 1.217 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches