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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001321/0.001321, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.442/1.442, allocations: 222.9 MB / 240.2 MB, free: 4.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.787/2.787, allocations: 472.6 MB / 0.7452 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 62.91 kB / 0.9121 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3726, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02426/0.3969, allocations: 22.62 MB / 1.09 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02722/0.4242, allocations: 17.63 MB / 1.108 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004097/0.4284, allocations: 115.4 kB / 1.108 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0122/0.4407, allocations: 4.172 MB / 1.112 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.01243/0.4531, allocations: 3.513 MB / 1.115 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004197/0.4573, allocations: 1.313 MB / 1.116 GB, free: 8.918 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.009374/0.4667, allocations: 5.766 MB / 1.122 GB, free: 3.129 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006435/0.4732, allocations: 3.596 MB / 1.126 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004871/0.4781, allocations: 2.406 MB / 1.128 GB, free: 13.05 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00532/0.4835, allocations: 2.444 MB / 1.13 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001891/0.4854, allocations: 368 kB / 1.131 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003653/0.489, allocations: 1.037 MB / 1.132 GB, free: 9.195 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002304/0.4914, allocations: 1.196 MB / 1.133 GB, free: 7.996 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.005435/0.4968, allocations: 1.994 MB / 1.135 GB, free: 5.992 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.008012/0.5049, allocations: 5.109 MB / 1.14 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.5049, allocations: 0 / 1.14 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.054e-06/0.5049, allocations: 0 / 1.14 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001366/0.5051, allocations: 0 / 1.14 GB, free: 0.8672 MB / 0.8887 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.01065/0.5157, allocations: 4.616 MB / 1.144 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.5158, allocations: 12.03 kB / 1.144 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0161/0.5319, allocations: 3.254 MB / 1.147 GB, free: 8.863 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004573/0.5365, allocations: 2.088 MB / 1.15 GB, free: 6.707 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003788/0.5369, allocations: 474.2 kB / 1.15 GB, free: 6.18 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006339/0.5375, allocations: 235.9 kB / 1.15 GB, free: 5.949 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01083/0.5484, allocations: 4.815 MB / 1.155 GB, free: 0.9883 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.592e-05/0.5485, allocations: 0 / 1.155 GB, free: 0.9883 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003232/0.5488, allocations: 115.9 kB / 1.155 GB, free: 0.875 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001873/0.549, allocations: 168.8 kB / 1.155 GB, free: 0.707 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.5628, allocations: 5.191 MB / 1.16 GB, free: 11.5 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02294/0.5857, allocations: 14.47 MB / 1.174 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009987/0.5957, allocations: 3.398 MB / 1.178 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003753/0.5995, allocations: 1.471 MB / 1.179 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.5997, allocations: 25.28 kB / 1.179 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004151/0.6038, allocations: 1.796 MB / 1.181 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=163): time 4.95e-06/0.6038, allocations: 0 / 1.181 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of matching and sorting (n=250): time 0.1342/0.738, allocations: 28.22 MB / 1.208 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003139/0.7384, allocations: 0.4889 MB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0032/0.7416, allocations: 2.3 MB / 1.211 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0004431/0.742, allocations: 73.7 kB / 1.211 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.7432, allocations: 1.434 MB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009023/0.7441, allocations: 0.8201 MB / 1.213 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009051/0.745, allocations: 416.4 kB / 1.214 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.726e-05/0.7451, allocations: 305.1 kB / 1.214 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005427/0.7506, allocations: 1.929 MB / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005777/0.7564, allocations: 2.231 MB / 1.218 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/0.7676, allocations: 4.165 MB / 1.222 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.7677, allocations: 0 / 1.222 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01945/0.7871, allocations: 6.539 MB / 1.229 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.7873, allocations: 148.5 kB / 1.229 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.7873, allocations: 4 kB / 1.229 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/0.7974, allocations: 2.95 MB / 1.232 GB, free: 352 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003024/0.8004, allocations: 483.2 kB / 1.232 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5823/1.383, allocations: 18.86 MB / 1.251 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004571/1.387, allocations: 321.8 kB / 1.251 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000437/1.388, allocations: 88.45 kB / 1.251 GB, free: 163.8 MB / 0.9981 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.001865/1.39, allocations: 0.7081 MB / 1.252 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008243/1.391, allocations: 331.5 kB / 1.252 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008041/1.391, allocations: 381.6 kB / 1.252 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.863e-05/1.391, allocations: 24.38 kB / 1.252 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.093e-05/1.391, allocations: 12.09 kB / 1.252 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.642e-05/1.391, allocations: 12.8 kB / 1.252 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004635/1.396, allocations: 3.63 MB / 1.256 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/1.396, allocations: 0 / 1.256 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002494/1.399, allocations: 419.6 kB / 1.256 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009557/1.408, allocations: 2.888 MB / 1.259 GB, free: 163.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004303/1.409, allocations: 58.06 kB / 1.259 GB, free: 163.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04229/1.451, allocations: 18.63 MB / 1.277 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.451, allocations: 0 / 1.277 GB, free: 155.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01929/1.47, allocations: 6.173 MB / 1.283 GB, free: 153.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/1.472, allocations: 0.6985 MB / 1.284 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006592/1.473, allocations: 48.97 kB / 1.284 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003252/1.476, allocations: 312.9 kB / 1.284 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/1.477, allocations: 353 kB / 1.285 GB, free: 152.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/1.478, allocations: 68.66 kB / 1.285 GB, free: 152.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002116/1.48, allocations: 1.534 MB / 1.286 GB, free: 152.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.3e-07/1.48, allocations: 0 / 1.286 GB, free: 152.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00323/1.483, allocations: 1.048 MB / 1.287 GB, free: 152 MB / 0.9981 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.0003479/1.483, allocations: 168.7 kB / 1.288 GB, free: 151.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0253/1.509, allocations: 7.308 MB / 1.295 GB, free: 149.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/1.509, allocations: 3.969 kB / 1.295 GB, free: 149.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0172/1.526, allocations: 4.06 MB / 1.299 GB, free: 148.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005013/1.531, allocations: 1.145 MB / 1.3 GB, free: 147.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/1.544, allocations: 6.768 MB / 1.306 GB, free: 144.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/1.546, allocations: 2.231 MB / 1.309 GB, free: 143.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002477/1.548, allocations: 0.5082 MB / 1.309 GB, free: 142.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006136/1.549, allocations: 190.8 kB / 1.309 GB, free: 142.8 MB / 0.9981 GB Notification: Performance of SimCode: time 2.786e-06/1.549, allocations: 0 / 1.309 GB, free: 142.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.1063/1.655, allocations: 77.57 MB / 1.385 GB, free: 67.34 MB / 0.9981 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