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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001153/0.001153, allocations: 110 kB / 16.37 MB, free: 6.469 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.001082/0.001082, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.555/2.555, allocations: 442.6 MB / 0.7165 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 68.14 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.36, allocations: 153 MB / 1.027 GB, free: 2.09 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.009545/0.3696, allocations: 6.307 MB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.008305/0.3779, allocations: 4.538 MB / 1.037 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007701/0.3787, allocations: 23.88 kB / 1.037 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002706/0.3815, allocations: 0.9136 MB / 1.038 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.002586/0.384, allocations: 0.7652 MB / 1.039 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008797/0.3849, allocations: 330 kB / 1.039 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001784/0.3867, allocations: 1.137 MB / 1.04 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.3878, allocations: 0.681 MB / 1.041 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007926/0.3886, allocations: 474.3 kB / 1.042 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008631/0.3895, allocations: 0.4981 MB / 1.042 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.3896, allocations: 68 kB / 1.042 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006234/0.3903, allocations: 279.5 kB / 1.042 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002327/0.3905, allocations: 247.2 kB / 1.043 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004597/0.391, allocations: 413.9 kB / 1.043 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001227/0.3922, allocations: 1.071 MB / 1.044 GB, free: 328 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3922, allocations: 4 kB / 1.044 GB, free: 324 kB / 0.8106 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3922, allocations: 4 kB / 1.044 GB, free: 320 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.3923, allocations: 0 / 1.044 GB, free: 320 kB / 0.8106 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.00184/0.3941, allocations: 1.09 MB / 1.045 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.3942, allocations: 8.031 kB / 1.045 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003064/0.3972, allocations: 0.6319 MB / 1.046 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.3983, allocations: 0.5659 MB / 1.046 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.3983, allocations: 45.61 kB / 1.046 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.574e-05/0.3984, allocations: 56.12 kB / 1.046 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.4004, allocations: 1.01 MB / 1.047 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.4004, allocations: 3.938 kB / 1.047 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.072e-05/0.4005, allocations: 27.98 kB / 1.047 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.246e-05/0.4005, allocations: 41.3 kB / 1.047 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002204/0.4027, allocations: 1.016 MB / 1.048 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004449/0.4072, allocations: 3.47 MB / 1.052 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.4086, allocations: 0.4982 MB / 1.052 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005166/0.4092, allocations: 228.7 kB / 1.052 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.4092, allocations: 0 / 1.052 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.4092, allocations: 38.56 kB / 1.053 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=31): time 4.549e-06/0.4092, allocations: 4 kB / 1.053 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of matching and sorting (n=43): time 0.006564/0.4158, allocations: 2.013 MB / 1.055 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.4159, allocations: 63.39 kB / 1.055 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006858/0.4166, allocations: 0.5587 MB / 1.055 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.4167, allocations: 37.7 kB / 1.055 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.4169, allocations: 360.2 kB / 1.055 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.4171, allocations: 145.8 kB / 1.056 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.4172, allocations: 98.14 kB / 1.056 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.4174, allocations: 370.7 kB / 1.056 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006284/0.418, allocations: 262.9 kB / 1.056 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006955/0.4187, allocations: 361.8 kB / 1.057 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.42, allocations: 0.6225 MB / 1.057 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4201, allocations: 4 kB / 1.057 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002305/0.4224, allocations: 0.9312 MB / 1.058 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.4224, allocations: 8 kB / 1.058 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.4224, allocations: 4 kB / 1.058 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.4236, allocations: 269 kB / 1.058 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006039/0.4242, allocations: 119.7 kB / 1.059 GB, free: 0.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008223/0.4325, allocations: 9.105 MB / 1.067 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006917/0.4332, allocations: 48 kB / 1.068 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.224e-05/0.4333, allocations: 20.14 kB / 1.068 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009269/0.4342, allocations: 437 kB / 1.068 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007055/0.435, allocations: 353.4 kB / 1.068 GB, free: 5.891 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001337/0.4363, allocations: 0.6054 MB / 1.069 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.885e-06/0.4363, allocations: 0 / 1.069 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002512/0.4388, allocations: 1.128 MB / 1.07 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4389, allocations: 11.88 kB / 1.07 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.4389, allocations: 4 kB / 1.07 GB, free: 4.016 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000839/0.4397, allocations: 229.2 kB / 1.07 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006135/0.4404, allocations: 115.8 kB / 1.07 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5561/0.9965, allocations: 8.788 MB / 1.079 GB, free: 47.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000722/0.9972, allocations: 44.47 kB / 1.079 GB, free: 47.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.9973, allocations: 18.39 kB / 1.079 GB, free: 47.05 MB / 0.8419 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.0002105/0.9975, allocations: 217.3 kB / 1.079 GB, free: 46.87 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.9976, allocations: 68.47 kB / 1.079 GB, free: 46.87 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.9978, allocations: 83.62 kB / 1.079 GB, free: 46.86 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.9978, allocations: 7.219 kB / 1.079 GB, free: 46.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.9978, allocations: 5.062 kB / 1.079 GB, free: 46.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.9979, allocations: 2.297 kB / 1.079 GB, free: 46.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008902/0.9988, allocations: 0.651 MB / 1.08 GB, free: 46.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.9988, allocations: 0 / 1.08 GB, free: 46.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.9993, allocations: 85.03 kB / 1.08 GB, free: 46.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001014/1, allocations: 269 kB / 1.08 GB, free: 46.63 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/1, allocations: 11.08 kB / 1.08 GB, free: 46.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005676/1.006, allocations: 9.054 MB / 1.089 GB, free: 38.42 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/1.006, allocations: 6.062 kB / 1.089 GB, free: 38.42 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/1.008, allocations: 0.9184 MB / 1.09 GB, free: 38.04 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003306/1.009, allocations: 183.9 kB / 1.09 GB, free: 37.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.567e-05/1.009, allocations: 12.12 kB / 1.09 GB, free: 37.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/1.009, allocations: 36.89 kB / 1.09 GB, free: 37.89 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/1.01, allocations: 45.55 kB / 1.09 GB, free: 37.88 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.752e-05/1.01, allocations: 9.594 kB / 1.09 GB, free: 37.88 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005363/1.01, allocations: 410.6 kB / 1.091 GB, free: 37.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.5e-07/1.01, allocations: 1.594 kB / 1.091 GB, free: 37.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001152/1.011, allocations: 297.1 kB / 1.091 GB, free: 37.66 MB / 0.8419 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.0001451/1.011, allocations: 114.9 kB / 1.091 GB, free: 37.55 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003727/1.015, allocations: 2.343 MB / 1.093 GB, free: 35.92 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/1.015, allocations: 1.438 kB / 1.093 GB, free: 35.92 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001331/1.017, allocations: 1.009 MB / 1.094 GB, free: 35.14 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/1.018, allocations: 229.1 kB / 1.095 GB, free: 35.08 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/1.02, allocations: 1.281 MB / 1.096 GB, free: 34.48 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00068/1.021, allocations: 0.9822 MB / 1.097 GB, free: 33.75 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0007247/1.022, allocations: 155.1 kB / 1.097 GB, free: 33.74 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/1.022, allocations: 42.8 kB / 1.097 GB, free: 33.73 MB / 0.8419 GB Notification: Performance of SimCode: time 1.082e-06/1.022, allocations: 0 / 1.097 GB, free: 33.73 MB / 0.8419 GB Notification: Performance of Templates: time 0.03076/1.053, allocations: 13.46 MB / 1.11 GB, free: 33.07 MB / 0.8419 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 -s cvode -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/jenkins1/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