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.007558/0.007558, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001641/0.001641, allocations: 186.8 kB / 16.67 MB, free: 5.977 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.913/2.913, allocations: 461.9 MB / 0.7348 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 63.89 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3582, allocations: 157.4 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02595/0.3842, allocations: 22.63 MB / 1.23 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02824/0.4125, allocations: 17.64 MB / 1.247 GB, free: 1.223 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004494/0.417, allocations: 115.4 kB / 1.247 GB, free: 1.109 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.7719/1.189, allocations: 4.17 MB / 1.251 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01098/1.2, allocations: 3.503 MB / 1.255 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003813/1.204, allocations: 1.32 MB / 1.256 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01017/1.214, allocations: 5.779 MB / 1.262 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005303/1.219, allocations: 3.591 MB / 1.265 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005349/1.225, allocations: 2.479 MB / 1.268 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006345/1.231, allocations: 2.442 MB / 1.27 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001404/1.232, allocations: 373.8 kB / 1.27 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003443/1.236, allocations: 1.032 MB / 1.271 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001419/1.237, allocations: 1.192 MB / 1.272 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003801/1.241, allocations: 1.997 MB / 1.274 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.008672/1.25, allocations: 5.165 MB / 1.279 GB, free: 1.379 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/1.25, allocations: 0 / 1.279 GB, free: 1.379 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.725e-06/1.25, allocations: 2.109 kB / 1.279 GB, free: 1.379 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001735/1.25, allocations: 0 / 1.279 GB, free: 1.379 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.01339/1.263, allocations: 4.61 MB / 1.284 GB, free: 15.38 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/1.263, allocations: 14.25 kB / 1.284 GB, free: 15.38 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01779/1.281, allocations: 3.263 MB / 1.287 GB, free: 15.05 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007672/1.289, allocations: 2.229 MB / 1.289 GB, free: 14.33 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000525/1.29, allocations: 464.3 kB / 1.29 GB, free: 14.01 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/1.291, allocations: 237.3 kB / 1.29 GB, free: 14.01 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/1.305, allocations: 4.82 MB / 1.295 GB, free: 12.92 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.486e-05/1.305, allocations: 1.312 kB / 1.295 GB, free: 12.92 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004488/1.306, allocations: 101.9 kB / 1.295 GB, free: 12.85 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003159/1.306, allocations: 174.4 kB / 1.295 GB, free: 12.83 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0169/1.323, allocations: 5.195 MB / 1.3 GB, free: 11.29 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03087/1.354, allocations: 14.39 MB / 1.314 GB, free: 500 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/1.364, allocations: 3.389 MB / 1.317 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004037/1.368, allocations: 1.468 MB / 1.319 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/1.369, allocations: 20.88 kB / 1.319 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004684/1.373, allocations: 1.795 MB / 1.321 GB, free: 12.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=163): time 3.948e-06/1.373, allocations: 0 / 1.321 GB, free: 12.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=250): time 0.1313/1.505, allocations: 28.23 MB / 1.348 GB, free: 12.33 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002603/1.505, allocations: 0.4967 MB / 1.349 GB, free: 11.72 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003811/1.509, allocations: 2.303 MB / 1.351 GB, free: 9.41 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0006057/1.509, allocations: 77.7 kB / 1.351 GB, free: 9.328 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001554/1.511, allocations: 1.429 MB / 1.352 GB, free: 7.887 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009567/1.512, allocations: 0.8234 MB / 1.353 GB, free: 7.074 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009904/1.513, allocations: 416.4 kB / 1.354 GB, free: 6.66 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001803/1.513, allocations: 306.4 kB / 1.354 GB, free: 6.359 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005441/1.518, allocations: 1.929 MB / 1.356 GB, free: 4.426 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005858/1.524, allocations: 2.231 MB / 1.358 GB, free: 2.109 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/1.536, allocations: 4.163 MB / 1.362 GB, free: 13.81 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/1.536, allocations: 4 kB / 1.362 GB, free: 13.81 MB / 1.061 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02013/1.556, allocations: 6.539 MB / 1.368 GB, free: 7.172 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.556, allocations: 148.5 kB / 1.369 GB, free: 6.996 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/1.556, allocations: 4 kB / 1.369 GB, free: 6.992 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01016/1.566, allocations: 2.926 MB / 1.371 GB, free: 4.062 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003065/1.569, allocations: 487.2 kB / 1.372 GB, free: 3.586 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04133/1.611, allocations: 18.85 MB / 1.39 GB, free: 0.5273 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005265/1.616, allocations: 323.6 kB / 1.391 GB, free: 216 kB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000564/1.617, allocations: 87.98 kB / 1.391 GB, free: 128 kB / 1.076 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.00201/1.619, allocations: 0.6988 MB / 1.391 GB, free: 15.41 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008009/1.619, allocations: 332.1 kB / 1.392 GB, free: 15.09 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007708/1.62, allocations: 388.1 kB / 1.392 GB, free: 14.7 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/1.62, allocations: 27.94 kB / 1.392 GB, free: 14.67 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.569e-05/1.62, allocations: 12 kB / 1.392 GB, free: 14.66 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/1.62, allocations: 11.95 kB / 1.392 GB, free: 14.65 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00566/1.626, allocations: 3.631 MB / 1.396 GB, free: 11 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/1.626, allocations: 0 / 1.396 GB, free: 11 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002527/1.628, allocations: 415.4 kB / 1.396 GB, free: 10.59 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009972/1.638, allocations: 2.872 MB / 1.399 GB, free: 7.711 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005808/1.639, allocations: 47.97 kB / 1.399 GB, free: 7.664 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03977/1.679, allocations: 18.61 MB / 1.417 GB, free: 4.773 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.679, allocations: 1.125 kB / 1.417 GB, free: 4.773 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/1.697, allocations: 6.18 MB / 1.423 GB, free: 14.57 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002523/1.7, allocations: 0.7039 MB / 1.424 GB, free: 13.84 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005502/1.7, allocations: 44 kB / 1.424 GB, free: 13.8 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003282/1.704, allocations: 315.5 kB / 1.424 GB, free: 13.49 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001275/1.705, allocations: 354.7 kB / 1.424 GB, free: 13.14 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002212/1.705, allocations: 71.97 kB / 1.425 GB, free: 13.07 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.002238/1.708, allocations: 1.536 MB / 1.426 GB, free: 11.54 MB / 1.123 GB Notification: Performance of sort global known variables: time 3.2e-07/1.708, allocations: 0 / 1.426 GB, free: 11.54 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.003086/1.711, allocations: 1.039 MB / 1.427 GB, free: 10.5 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.0003564/1.711, allocations: 167.6 kB / 1.427 GB, free: 10.33 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.02418/1.735, allocations: 6.48 MB / 1.434 GB, free: 3.75 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.675e-05/1.735, allocations: 4 kB / 1.434 GB, free: 3.746 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.01817/1.753, allocations: 4.046 MB / 1.437 GB, free: 15.67 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00664/1.76, allocations: 1.135 MB / 1.439 GB, free: 14.57 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/1.776, allocations: 6.686 MB / 1.445 GB, free: 7.875 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00245/1.778, allocations: 2.231 MB / 1.447 GB, free: 5.613 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.003036/1.781, allocations: 0.5099 MB / 1.448 GB, free: 5.098 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007094/1.782, allocations: 191.4 kB / 1.448 GB, free: 4.91 MB / 1.139 GB Notification: Performance of SimCode: time 1.253e-06/1.782, allocations: 3.938 kB / 1.448 GB, free: 4.906 MB / 1.139 GB Notification: Performance of Templates: time 0.1332/1.915, allocations: 77.55 MB / 1.524 GB, free: 8.359 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