Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 109.3 kB / 15.7 MB, free: 132 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.001729/0.001729, allocations: 197 kB / 16.63 MB, free: 6.613 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.405/1.405, allocations: 222.9 MB / 240.3 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.522/2.522, allocations: 390.3 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 62.06 kB / 0.9509 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.4077, allocations: 140.4 MB / 1.088 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.01595/0.4237, allocations: 6.281 MB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01267/0.4364, allocations: 4.542 MB / 1.099 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001134/0.4376, allocations: 23.88 kB / 1.099 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004141/0.4418, allocations: 0.9095 MB / 1.099 GB, free: 5.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004363/0.4462, allocations: 0.772 MB / 1.1 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.4478, allocations: 323.5 kB / 1.101 GB, free: 4.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002733/0.4505, allocations: 1.133 MB / 1.102 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.4524, allocations: 0.6926 MB / 1.102 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001403/0.4538, allocations: 474.3 kB / 1.103 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.4555, allocations: 0.4903 MB / 1.103 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003051/0.4558, allocations: 68 kB / 1.103 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.457, allocations: 279.5 kB / 1.104 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005225/0.4575, allocations: 243.3 kB / 1.104 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.4586, allocations: 410 kB / 1.104 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002169/0.4608, allocations: 1.075 MB / 1.105 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4608, allocations: 4 kB / 1.105 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of FrontEnd: time 6.422e-06/0.4608, allocations: 0 / 1.105 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.549e-05/0.4609, allocations: 7.875 kB / 1.105 GB, free: 15.71 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.003564/0.4644, allocations: 1.09 MB / 1.106 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.4645, allocations: 8.031 kB / 1.106 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005801/0.4703, allocations: 0.6397 MB / 1.107 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001871/0.4722, allocations: 0.5698 MB / 1.107 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.4723, allocations: 37.69 kB / 1.108 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002766/0.4726, allocations: 56.11 kB / 1.108 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003563/0.4762, allocations: 1.022 MB / 1.109 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/0.4763, allocations: 4 kB / 1.109 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.4764, allocations: 20 kB / 1.109 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.4765, allocations: 53.28 kB / 1.109 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004411/0.481, allocations: 1 MB / 1.11 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007931/0.4889, allocations: 3.482 MB / 1.113 GB, free: 7.285 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002401/0.4914, allocations: 0.4905 MB / 1.113 GB, free: 6.785 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009135/0.4923, allocations: 228.7 kB / 1.114 GB, free: 6.559 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.825e-05/0.4924, allocations: 4.531 kB / 1.114 GB, free: 6.555 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.4924, allocations: 38.56 kB / 1.114 GB, free: 6.508 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=31): time 3.346e-06/0.4925, allocations: 0 / 1.114 GB, free: 6.508 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.01177/0.5042, allocations: 2.025 MB / 1.116 GB, free: 4.438 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.5044, allocations: 55.41 kB / 1.116 GB, free: 4.371 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.5058, allocations: 0.5627 MB / 1.116 GB, free: 3.797 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.5059, allocations: 41.7 kB / 1.116 GB, free: 3.75 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004376/0.5064, allocations: 356.1 kB / 1.117 GB, free: 3.395 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000271/0.5067, allocations: 149.8 kB / 1.117 GB, free: 3.246 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003133/0.507, allocations: 94.14 kB / 1.117 GB, free: 3.148 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002638/0.5073, allocations: 374.7 kB / 1.117 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.5086, allocations: 262.9 kB / 1.118 GB, free: 2.512 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.51, allocations: 357.8 kB / 1.118 GB, free: 2.113 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/0.5126, allocations: 0.6225 MB / 1.119 GB, free: 1.449 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.5127, allocations: 0 / 1.119 GB, free: 1.449 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.004363/0.517, allocations: 0.935 MB / 1.119 GB, free: 500 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.5171, allocations: 8 kB / 1.119 GB, free: 492 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.5171, allocations: 0 / 1.119 GB, free: 492 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/0.5189, allocations: 277.1 kB / 1.12 GB, free: 196 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008885/0.5198, allocations: 115.8 kB / 1.12 GB, free: 80 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.5304, allocations: 9.113 MB / 1.129 GB, free: 6.137 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007612/0.5312, allocations: 48 kB / 1.129 GB, free: 6.09 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/0.5313, allocations: 16 kB / 1.129 GB, free: 6.074 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001033/0.5323, allocations: 437 kB / 1.129 GB, free: 5.645 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008335/0.5332, allocations: 361.4 kB / 1.13 GB, free: 5.254 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001564/0.5348, allocations: 0.6129 MB / 1.13 GB, free: 4.598 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.644e-06/0.5348, allocations: 4 kB / 1.13 GB, free: 4.594 MB / 0.8887 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002856/0.5377, allocations: 1.113 MB / 1.131 GB, free: 3.398 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.5377, allocations: 11.94 kB / 1.131 GB, free: 3.387 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.5377, allocations: 4.344 kB / 1.131 GB, free: 3.383 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008543/0.5386, allocations: 229 kB / 1.131 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006139/0.5392, allocations: 123.8 kB / 1.132 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007422/0.5466, allocations: 8.781 MB / 1.14 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007452/0.5474, allocations: 43.95 kB / 1.14 GB, free: 9.352 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.61e-05/0.5475, allocations: 12 kB / 1.14 GB, free: 9.34 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002703/0.5478, allocations: 220.1 kB / 1.14 GB, free: 9.117 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.548, allocations: 67.25 kB / 1.14 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002269/0.5482, allocations: 78.52 kB / 1.141 GB, free: 8.977 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.5482, allocations: 7.984 kB / 1.141 GB, free: 8.969 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.5482, allocations: 4 kB / 1.141 GB, free: 8.965 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.5482, allocations: 0 / 1.141 GB, free: 8.965 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009874/0.5492, allocations: 0.6455 MB / 1.141 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.5492, allocations: 4 kB / 1.141 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005177/0.5498, allocations: 91.84 kB / 1.141 GB, free: 8.176 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.5508, allocations: 256.9 kB / 1.142 GB, free: 7.906 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.599e-05/0.5509, allocations: 4 kB / 1.142 GB, free: 7.902 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007995/0.5589, allocations: 9.077 MB / 1.15 GB, free: 13.98 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5589, allocations: 0 / 1.15 GB, free: 13.98 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.5613, allocations: 0.9208 MB / 1.151 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003888/0.5618, allocations: 180.3 kB / 1.151 GB, free: 12.83 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.5619, allocations: 8 kB / 1.151 GB, free: 12.82 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006648/0.5626, allocations: 39.89 kB / 1.152 GB, free: 12.78 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.5628, allocations: 39.94 kB / 1.152 GB, free: 12.74 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.024e-05/0.5629, allocations: 16 kB / 1.152 GB, free: 12.73 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0006068/0.5635, allocations: 407 kB / 1.152 GB, free: 12.33 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5635, allocations: 0 / 1.152 GB, free: 12.33 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001366/0.5649, allocations: 300 kB / 1.152 GB, free: 12.04 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002231/0.5651, allocations: 112.3 kB / 1.152 GB, free: 11.92 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00466/0.5698, allocations: 2.352 MB / 1.155 GB, free: 9.414 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.5698, allocations: 0 / 1.155 GB, free: 9.414 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.5714, allocations: 1.015 MB / 1.156 GB, free: 8.32 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.5726, allocations: 230.5 kB / 1.156 GB, free: 8.105 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.5759, allocations: 1.281 MB / 1.157 GB, free: 6.793 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007697/0.5766, allocations: 0.9897 MB / 1.158 GB, free: 5.773 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0006197/0.5773, allocations: 153.3 kB / 1.158 GB, free: 5.621 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.5774, allocations: 39.44 kB / 1.158 GB, free: 5.582 MB / 0.92 GB Notification: Performance of SimCode: time 1.102e-06/0.5775, allocations: 3.938 kB / 1.158 GB, free: 5.578 MB / 0.92 GB Notification: Performance of Templates: time 0.02618/0.6036, allocations: 13.46 MB / 1.171 GB, free: 8.27 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches