Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.0008655/0.0008656, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.007965/0.007965, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.415/1.415, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.766/2.766, allocations: 462.7 MB / 0.7364 GB, free: 244 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0005304/0.0005305, allocations: 10.75 kB / 0.9028 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3565, allocations: 159.6 MB / 1.059 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.00814/0.3647, allocations: 5.896 MB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00743/0.3722, allocations: 4.456 MB / 1.069 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009501/0.3732, allocations: 19.88 kB / 1.069 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008364/0.374, allocations: 154.9 kB / 1.069 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002624/0.3767, allocations: 0.7011 MB / 1.07 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009575/0.3777, allocations: 298.7 kB / 1.07 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.002123/0.3798, allocations: 1.448 MB / 1.071 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009591/0.3808, allocations: 0.5302 MB / 1.072 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009226/0.3817, allocations: 394.3 kB / 1.072 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001078/0.3828, allocations: 470.1 kB / 1.073 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001851/0.383, allocations: 39.94 kB / 1.073 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008489/0.3839, allocations: 303.4 kB / 1.073 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0003338/0.3842, allocations: 207.2 kB / 1.073 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0006896/0.3849, allocations: 391.7 kB / 1.074 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001402/0.3863, allocations: 1.031 MB / 1.075 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3863, allocations: 0 / 1.075 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.885e-06/0.3863, allocations: 0 / 1.075 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.812e-05/0.3864, allocations: 3.938 kB / 1.075 GB, free: 5.078 MB / 0.8262 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.002295/0.3887, allocations: 0.9673 MB / 1.076 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.3888, allocations: 15.97 kB / 1.076 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003549/0.3923, allocations: 0.6475 MB / 1.076 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009163/0.3932, allocations: 0.5386 MB / 1.077 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.3933, allocations: 37.69 kB / 1.077 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.231e-05/0.3934, allocations: 56.12 kB / 1.077 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.3954, allocations: 1.029 MB / 1.078 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.3954, allocations: 3.938 kB / 1.078 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.51e-05/0.3955, allocations: 24 kB / 1.078 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.191e-05/0.3956, allocations: 49.28 kB / 1.078 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.3981, allocations: 1.012 MB / 1.079 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00445/0.4026, allocations: 3.525 MB / 1.082 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.4041, allocations: 0.5191 MB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006039/0.4047, allocations: 248.7 kB / 1.083 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.4048, allocations: 12 kB / 1.083 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.4048, allocations: 30.56 kB / 1.083 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 3.216e-06/0.4048, allocations: 3.984 kB / 1.083 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.007346/0.4122, allocations: 2.228 MB / 1.085 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.4123, allocations: 59.41 kB / 1.085 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007485/0.413, allocations: 0.5704 MB / 1.086 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.25e-05/0.4131, allocations: 29.7 kB / 1.086 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.4133, allocations: 356.2 kB / 1.086 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.4135, allocations: 149.8 kB / 1.086 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.684e-05/0.4136, allocations: 45.64 kB / 1.086 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4138, allocations: 378.7 kB / 1.087 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007339/0.4145, allocations: 284.9 kB / 1.087 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007782/0.4153, allocations: 381.8 kB / 1.087 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.4168, allocations: 0.6694 MB / 1.088 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4168, allocations: 0 / 1.088 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002594/0.4194, allocations: 0.9781 MB / 1.089 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.4196, allocations: 176.9 kB / 1.089 GB, free: 5.391 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4196, allocations: 4 kB / 1.089 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.4207, allocations: 272.8 kB / 1.089 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006314/0.4214, allocations: 139.8 kB / 1.09 GB, free: 4.965 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0078/0.4292, allocations: 8.482 MB / 1.098 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007834/0.43, allocations: 56.02 kB / 1.098 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.4301, allocations: 20 kB / 1.098 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.716e-06/0.4301, allocations: 4 kB / 1.098 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002615/0.4328, allocations: 1.089 MB / 1.099 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4328, allocations: 4 kB / 1.099 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000832/0.4336, allocations: 225.2 kB / 1.099 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000656/0.4343, allocations: 127.8 kB / 1.099 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007372/0.4417, allocations: 8.164 MB / 1.107 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008632/0.4426, allocations: 52.05 kB / 1.107 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.287e-05/0.4427, allocations: 24 kB / 1.107 GB, free: 1.043 MB / 0.8575 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.0005532/0.4432, allocations: 318.5 kB / 1.108 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.4434, allocations: 67.16 kB / 1.108 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.4436, allocations: 82.38 kB / 1.108 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.4436, allocations: 4 kB / 1.108 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.4436, allocations: 4 kB / 1.108 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.4436, allocations: 3.984 kB / 1.108 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008633/0.4445, allocations: 0.6494 MB / 1.108 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4445, allocations: 4 kB / 1.108 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.445, allocations: 95.91 kB / 1.109 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.446, allocations: 260.8 kB / 1.109 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.214e-05/0.4461, allocations: 19.92 kB / 1.109 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006932/0.453, allocations: 8.427 MB / 1.117 GB, free: 6.242 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4531, allocations: 0 / 1.117 GB, free: 6.242 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.4555, allocations: 0.9599 MB / 1.118 GB, free: 5.246 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003061/0.4558, allocations: 184.2 kB / 1.118 GB, free: 5.047 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.467e-05/0.4559, allocations: 11.94 kB / 1.118 GB, free: 5.035 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.4565, allocations: 55.94 kB / 1.118 GB, free: 4.98 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.4566, allocations: 35.95 kB / 1.118 GB, free: 4.945 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.4567, allocations: 15.92 kB / 1.118 GB, free: 4.93 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005289/0.4572, allocations: 403.1 kB / 1.119 GB, free: 4.543 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4572, allocations: 0 / 1.119 GB, free: 4.543 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001208/0.4584, allocations: 300 kB / 1.119 GB, free: 4.25 MB / 0.8731 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.0001773/0.4586, allocations: 109.7 kB / 1.119 GB, free: 4.137 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004112/0.4627, allocations: 2.419 MB / 1.121 GB, free: 1.562 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.4627, allocations: 4 kB / 1.121 GB, free: 1.559 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.4642, allocations: 1.027 MB / 1.122 GB, free: 464 kB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.4653, allocations: 202.8 kB / 1.123 GB, free: 260 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.4679, allocations: 1.607 MB / 1.124 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006339/0.4685, allocations: 0.9897 MB / 1.125 GB, free: 13.6 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0005876/0.4691, allocations: 153.4 kB / 1.125 GB, free: 13.45 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.4693, allocations: 43.42 kB / 1.125 GB, free: 13.41 MB / 0.8887 GB Notification: Performance of SimCode: time 8.82e-07/0.4693, allocations: 0 / 1.125 GB, free: 13.41 MB / 0.8887 GB Notification: Performance of Templates: time 0.02323/0.4925, allocations: 12.85 MB / 1.138 GB, free: 0.6914 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches