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.001147/0.001147, allocations: 104.3 kB / 16.35 MB, free: 5.875 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.001077/0.001078, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.468/2.468, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 79.25 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.267, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008063/0.2751, allocations: 6.306 MB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.006304/0.2815, allocations: 4.53 MB / 1.037 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005054/0.282, allocations: 27.81 kB / 1.037 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.2844, allocations: 0.9103 MB / 1.038 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.002189/0.2866, allocations: 0.7803 MB / 1.039 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007444/0.2873, allocations: 315.5 kB / 1.039 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001383/0.2887, allocations: 1.133 MB / 1.04 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008376/0.2896, allocations: 0.6849 MB / 1.041 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005548/0.2902, allocations: 474.3 kB / 1.042 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006747/0.2908, allocations: 0.4942 MB / 1.042 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.458e-05/0.2909, allocations: 68 kB / 1.042 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000555/0.2915, allocations: 287.5 kB / 1.042 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.2917, allocations: 243.3 kB / 1.043 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003707/0.2921, allocations: 409.9 kB / 1.043 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009914/0.2931, allocations: 1.071 MB / 1.044 GB, free: 312 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2931, allocations: 0 / 1.044 GB, free: 312 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.684e-06/0.2931, allocations: 4 kB / 1.044 GB, free: 308 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.2932, allocations: 0 / 1.044 GB, free: 308 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.001755/0.2949, allocations: 1.094 MB / 1.045 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.295, allocations: 15.97 kB / 1.045 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003003/0.298, allocations: 0.6241 MB / 1.046 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009157/0.2989, allocations: 0.5659 MB / 1.046 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.299, allocations: 37.69 kB / 1.046 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.17e-05/0.2991, allocations: 60.12 kB / 1.046 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001959/0.301, allocations: 1.018 MB / 1.047 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.3011, allocations: 0 / 1.047 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.04e-05/0.3011, allocations: 31.97 kB / 1.047 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.143e-05/0.3012, allocations: 45.28 kB / 1.047 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002199/0.3034, allocations: 1.004 MB / 1.048 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004199/0.3076, allocations: 3.474 MB / 1.052 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.309, allocations: 0.4982 MB / 1.052 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.3095, allocations: 228.7 kB / 1.052 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/0.3096, allocations: 4 kB / 1.052 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.3096, allocations: 38.56 kB / 1.053 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=31): time 1.944e-06/0.3096, allocations: 0 / 1.053 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of matching and sorting (n=43): time 0.006411/0.316, allocations: 2.017 MB / 1.054 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.3161, allocations: 55.41 kB / 1.055 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006391/0.3167, allocations: 0.5665 MB / 1.055 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.3168, allocations: 37.7 kB / 1.055 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.317, allocations: 356.2 kB / 1.055 GB, free: 4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.3171, allocations: 145.8 kB / 1.056 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.3173, allocations: 98.09 kB / 1.056 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3174, allocations: 374.7 kB / 1.056 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006265/0.3181, allocations: 266.8 kB / 1.056 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006662/0.3187, allocations: 353.8 kB / 1.057 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.32, allocations: 0.6264 MB / 1.057 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.32, allocations: 4 kB / 1.057 GB, free: 2.055 MB / 0.8262 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002324/0.3224, allocations: 0.9271 MB / 1.058 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3224, allocations: 11.94 kB / 1.058 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3224, allocations: 4 kB / 1.058 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.3235, allocations: 277.2 kB / 1.058 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/0.3241, allocations: 119.8 kB / 1.059 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007879/0.332, allocations: 9.114 MB / 1.067 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007146/0.3328, allocations: 39.95 kB / 1.068 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.3328, allocations: 20 kB / 1.068 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008666/0.3337, allocations: 437 kB / 1.068 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007016/0.3344, allocations: 361.4 kB / 1.068 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001361/0.3358, allocations: 0.6054 MB / 1.069 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-06/0.3358, allocations: 0 / 1.069 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002654/0.3385, allocations: 1.121 MB / 1.07 GB, free: 4.004 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.3385, allocations: 11.92 kB / 1.07 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3385, allocations: 4 kB / 1.07 GB, free: 3.988 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008451/0.3394, allocations: 217.1 kB / 1.07 GB, free: 3.758 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006179/0.34, allocations: 123.8 kB / 1.07 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5218/0.8618, allocations: 8.786 MB / 1.079 GB, free: 47.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006804/0.8625, allocations: 44.27 kB / 1.079 GB, free: 47.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/0.8626, allocations: 19.02 kB / 1.079 GB, free: 47.02 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.000186/0.8628, allocations: 217.8 kB / 1.079 GB, free: 46.84 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.8629, allocations: 68.25 kB / 1.079 GB, free: 46.84 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.8631, allocations: 81.64 kB / 1.079 GB, free: 46.83 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.8631, allocations: 5.344 kB / 1.079 GB, free: 46.83 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.8631, allocations: 0.6875 kB / 1.079 GB, free: 46.83 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.8631, allocations: 3.125 kB / 1.079 GB, free: 46.83 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008332/0.864, allocations: 0.6508 MB / 1.08 GB, free: 46.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.864, allocations: 3.469 kB / 1.08 GB, free: 46.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/0.8645, allocations: 83.44 kB / 1.08 GB, free: 46.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009563/0.8655, allocations: 264.1 kB / 1.08 GB, free: 46.6 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.8655, allocations: 11.81 kB / 1.08 GB, free: 46.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005269/0.8708, allocations: 9.061 MB / 1.089 GB, free: 38.37 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.8709, allocations: 0 / 1.089 GB, free: 38.37 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.8731, allocations: 0.923 MB / 1.09 GB, free: 38 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/0.8734, allocations: 186.4 kB / 1.09 GB, free: 37.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.75e-05/0.8735, allocations: 14.91 kB / 1.09 GB, free: 37.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000475/0.874, allocations: 36.16 kB / 1.09 GB, free: 37.84 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.8741, allocations: 38.83 kB / 1.09 GB, free: 37.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.8742, allocations: 12.7 kB / 1.09 GB, free: 37.83 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000563/0.8747, allocations: 411.2 kB / 1.091 GB, free: 37.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8747, allocations: 0 / 1.091 GB, free: 37.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001142/0.8759, allocations: 298.7 kB / 1.091 GB, free: 37.61 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.0001463/0.8761, allocations: 110.6 kB / 1.091 GB, free: 37.51 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003769/0.8798, allocations: 2.347 MB / 1.093 GB, free: 35.87 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.8799, allocations: 0 / 1.093 GB, free: 35.87 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.8812, allocations: 1.005 MB / 1.094 GB, free: 35.09 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.8823, allocations: 228.6 kB / 1.095 GB, free: 35.04 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.8848, allocations: 1.285 MB / 1.096 GB, free: 34.44 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/0.8854, allocations: 0.9841 MB / 1.097 GB, free: 33.71 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005914/0.886, allocations: 155.3 kB / 1.097 GB, free: 33.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.8862, allocations: 43.47 kB / 1.097 GB, free: 33.69 MB / 0.8419 GB Notification: Performance of SimCode: time 7.51e-07/0.8862, allocations: 0 / 1.097 GB, free: 33.69 MB / 0.8419 GB Notification: Performance of Templates: time 0.02783/0.914, allocations: 13.46 MB / 1.11 GB, free: 33.01 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 gbode -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