Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_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_9_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.001259/0.001259, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001633/0.001633, allocations: 191.2 kB / 16.14 MB, free: 6.645 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.435/1.435, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.51/2.51, allocations: 390.2 MB / 0.6642 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002394/0.002394, allocations: 59.91 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8322/0.8346, allocations: 140.3 MB / 0.9489 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02388/0.8586, allocations: 22.44 MB / 0.9708 GB, free: 7.84 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.03253/0.8911, allocations: 17.59 MB / 0.988 GB, free: 9.891 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008358/0.8996, allocations: 107.1 kB / 0.9881 GB, free: 9.852 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0124/0.9121, allocations: 3.911 MB / 0.9919 GB, free: 5.965 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01412/0.9262, allocations: 3.201 MB / 0.9951 GB, free: 2.762 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004503/0.9307, allocations: 1.18 MB / 0.9962 GB, free: 1.586 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01154/0.9423, allocations: 7.068 MB / 1.003 GB, free: 10.5 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007885/0.9502, allocations: 2.503 MB / 1.006 GB, free: 7.918 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008315/0.9586, allocations: 2.171 MB / 1.008 GB, free: 5.738 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007048/0.9657, allocations: 2.455 MB / 1.01 GB, free: 3.273 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.002232/0.968, allocations: 228 kB / 1.01 GB, free: 3.051 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00523/0.9732, allocations: 1.107 MB / 1.011 GB, free: 1.941 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003828/0.9771, allocations: 1.067 MB / 1.012 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.007601/0.9848, allocations: 1.861 MB / 1.014 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.9954, allocations: 5.065 MB / 1.019 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.9954, allocations: 0 / 1.019 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.244e-06/0.9955, allocations: 0 / 1.019 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002678/0.9957, allocations: 0 / 1.019 GB, free: 9.918 MB / 0.7794 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.01466/1.01, allocations: 4.616 MB / 1.024 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/1.01, allocations: 8.031 kB / 1.024 GB, free: 5.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01687/1.027, allocations: 3.269 MB / 1.027 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006262/1.034, allocations: 2.088 MB / 1.029 GB, free: 15.74 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005532/1.034, allocations: 466.2 kB / 1.029 GB, free: 15.23 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/1.036, allocations: 231.9 kB / 1.03 GB, free: 15 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01561/1.051, allocations: 4.818 MB / 1.034 GB, free: 10.04 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001013/1.051, allocations: 0 / 1.034 GB, free: 10.04 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001095/1.052, allocations: 104 kB / 1.034 GB, free: 9.934 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002885/1.053, allocations: 176.7 kB / 1.035 GB, free: 9.758 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01515/1.068, allocations: 5.191 MB / 1.04 GB, free: 4.551 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02856/1.097, allocations: 14.49 MB / 1.054 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/1.107, allocations: 3.394 MB / 1.057 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003938/1.111, allocations: 1.475 MB / 1.059 GB, free: 12 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002242/1.111, allocations: 21.34 kB / 1.059 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004655/1.116, allocations: 1.788 MB / 1.06 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 5.32e-06/1.116, allocations: 0 / 1.06 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.1287/1.245, allocations: 28.22 MB / 1.088 GB, free: 1.699 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002841/1.245, allocations: 496.7 kB / 1.088 GB, free: 1.102 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004303/1.249, allocations: 2.3 MB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0005581/1.25, allocations: 73.7 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001774/1.252, allocations: 1.442 MB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001598/1.253, allocations: 0.8163 MB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001878/1.255, allocations: 412.5 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001279/1.256, allocations: 309.1 kB / 1.094 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005594/1.261, allocations: 1.925 MB / 1.095 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005807/1.267, allocations: 2.239 MB / 1.098 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/1.278, allocations: 4.158 MB / 1.102 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-05/1.278, allocations: 0 / 1.102 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01986/1.298, allocations: 6.539 MB / 1.108 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/1.298, allocations: 148.8 kB / 1.108 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.381e-05/1.298, allocations: 8 kB / 1.108 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/1.309, allocations: 2.926 MB / 1.111 GB, free: 9.41 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003067/1.312, allocations: 491.2 kB / 1.112 GB, free: 8.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04179/1.354, allocations: 17.34 MB / 1.128 GB, free: 7.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004484/1.358, allocations: 327.5 kB / 1.129 GB, free: 7.039 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007183/1.359, allocations: 83.98 kB / 1.129 GB, free: 6.957 MB / 0.8887 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.002405/1.361, allocations: 0.7028 MB / 1.13 GB, free: 6.242 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/1.363, allocations: 332.1 kB / 1.13 GB, free: 5.914 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/1.364, allocations: 388 kB / 1.13 GB, free: 5.527 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.71e-05/1.364, allocations: 24 kB / 1.13 GB, free: 5.504 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-05/1.364, allocations: 12 kB / 1.13 GB, free: 5.492 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.393e-05/1.364, allocations: 15.89 kB / 1.13 GB, free: 5.477 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006911/1.371, allocations: 3.628 MB / 1.134 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.472e-05/1.371, allocations: 0 / 1.134 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002577/1.373, allocations: 419.4 kB / 1.134 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01123/1.385, allocations: 2.872 MB / 1.137 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006502/1.385, allocations: 55.91 kB / 1.137 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04162/1.427, allocations: 17.09 MB / 1.154 GB, free: 13.07 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.427, allocations: 0 / 1.154 GB, free: 13.07 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02051/1.448, allocations: 6.185 MB / 1.16 GB, free: 6.844 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002231/1.45, allocations: 0.7 MB / 1.16 GB, free: 6.121 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.451, allocations: 55.86 kB / 1.161 GB, free: 6.066 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003858/1.455, allocations: 307.6 kB / 1.161 GB, free: 5.766 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001776/1.457, allocations: 350.7 kB / 1.161 GB, free: 5.426 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003835/1.457, allocations: 75.97 kB / 1.161 GB, free: 5.352 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.003451/1.46, allocations: 1.532 MB / 1.163 GB, free: 3.82 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.61e-07/1.46, allocations: 0 / 1.163 GB, free: 3.82 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.004137/1.465, allocations: 1.047 MB / 1.164 GB, free: 2.773 MB / 0.92 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.0005647/1.465, allocations: 168.9 kB / 1.164 GB, free: 2.602 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.02311/1.488, allocations: 6.438 MB / 1.17 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.488, allocations: 4 kB / 1.17 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.01764/1.506, allocations: 4.045 MB / 1.174 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006724/1.513, allocations: 1.054 MB / 1.175 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/1.53, allocations: 8.042 MB / 1.183 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002529/1.532, allocations: 2.231 MB / 1.185 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.002703/1.535, allocations: 0.5099 MB / 1.186 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007941/1.536, allocations: 175.4 kB / 1.186 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of SimCode: time 6.61e-07/1.536, allocations: 0 / 1.186 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of Templates: time 0.6317/2.168, allocations: 72.95 MB / 1.257 GB, free: 267.2 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches