Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_10_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_10_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.001597/0.001597, allocations: 115.1 kB / 16.37 MB, free: 5.984 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.001595/0.001595, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.546/2.546, allocations: 437.1 MB / 0.7112 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 60.89 kB / 0.8707 GB, free: 1.449 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3304, allocations: 151.6 MB / 1.019 GB, free: 9.848 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.0236/0.354, allocations: 22.63 MB / 1.041 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02435/0.3784, allocations: 17.63 MB / 1.058 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003151/0.3816, allocations: 115.4 kB / 1.058 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.01079/0.3924, allocations: 4.16 MB / 1.062 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.4035, allocations: 3.518 MB / 1.066 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003953/0.4075, allocations: 1.313 MB / 1.067 GB, free: 8.32 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01074/0.4182, allocations: 5.784 MB / 1.073 GB, free: 2.52 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.531/0.9493, allocations: 3.581 MB / 1.076 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00529/0.9546, allocations: 2.407 MB / 1.078 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005357/0.96, allocations: 2.451 MB / 1.081 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001094/0.9611, allocations: 369.3 kB / 1.081 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002923/0.9641, allocations: 1.033 MB / 1.082 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001532/0.9656, allocations: 1.199 MB / 1.083 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.003309/0.9689, allocations: 1.994 MB / 1.085 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.007897/0.9768, allocations: 5.168 MB / 1.09 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.9769, allocations: 1.812 kB / 1.09 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9769, allocations: 0 / 1.09 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001647/0.977, allocations: 0 / 1.09 GB, free: 12.93 MB / 0.8419 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.01287/0.9899, allocations: 4.61 MB / 1.095 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.99, allocations: 10.86 kB / 1.095 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01715/1.007, allocations: 3.267 MB / 1.098 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007322/1.015, allocations: 2.233 MB / 1.1 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000477/1.015, allocations: 466.1 kB / 1.101 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001248/1.016, allocations: 231.9 kB / 1.101 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/1.029, allocations: 4.814 MB / 1.106 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.109e-05/1.029, allocations: 1.125 kB / 1.106 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003557/1.029, allocations: 107.5 kB / 1.106 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002181/1.03, allocations: 170.5 kB / 1.106 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01355/1.043, allocations: 5.198 MB / 1.111 GB, free: 9.078 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02514/1.068, allocations: 14.38 MB / 1.125 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/1.079, allocations: 3.386 MB / 1.128 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0041/1.083, allocations: 1.469 MB / 1.13 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/1.083, allocations: 27.09 kB / 1.13 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004565/1.088, allocations: 1.791 MB / 1.132 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=163): time 9.808e-06/1.088, allocations: 1.25 kB / 1.132 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=250): time 0.1169/1.205, allocations: 28.24 MB / 1.159 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003384/1.205, allocations: 0.4928 MB / 1.16 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004384/1.21, allocations: 2.3 MB / 1.162 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.000506/1.21, allocations: 77.7 kB / 1.162 GB, free: 9.395 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001378/1.212, allocations: 1.434 MB / 1.163 GB, free: 7.949 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009862/1.213, allocations: 0.8168 MB / 1.164 GB, free: 7.141 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001135/1.214, allocations: 416.5 kB / 1.165 GB, free: 6.727 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001027/1.214, allocations: 305.1 kB / 1.165 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004956/1.219, allocations: 1.929 MB / 1.167 GB, free: 4.492 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005239/1.224, allocations: 2.231 MB / 1.169 GB, free: 2.18 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009722/1.234, allocations: 4.161 MB / 1.173 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/1.234, allocations: 0 / 1.173 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01779/1.252, allocations: 6.533 MB / 1.179 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/1.252, allocations: 152.5 kB / 1.179 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/1.252, allocations: 8 kB / 1.179 GB, free: 7.199 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0103/1.262, allocations: 2.929 MB / 1.182 GB, free: 4.266 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003085/1.265, allocations: 491.6 kB / 1.183 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04068/1.306, allocations: 18.84 MB / 1.201 GB, free: 0.7695 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004585/1.311, allocations: 319.6 kB / 1.202 GB, free: 468 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005906/1.311, allocations: 87.97 kB / 1.202 GB, free: 380 kB / 0.9044 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.002124/1.313, allocations: 0.7081 MB / 1.202 GB, free: 15.67 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009292/1.314, allocations: 336.1 kB / 1.203 GB, free: 15.34 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009669/1.315, allocations: 380.1 kB / 1.203 GB, free: 14.96 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/1.315, allocations: 24 kB / 1.203 GB, free: 14.94 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.774e-05/1.315, allocations: 8 kB / 1.203 GB, free: 14.93 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.452e-05/1.315, allocations: 15.95 kB / 1.203 GB, free: 14.91 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005929/1.321, allocations: 3.624 MB / 1.207 GB, free: 11.27 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/1.321, allocations: 3.984 kB / 1.207 GB, free: 11.27 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002487/1.324, allocations: 421.3 kB / 1.207 GB, free: 10.87 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009943/1.334, allocations: 2.871 MB / 1.21 GB, free: 8 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004959/1.334, allocations: 55.97 kB / 1.21 GB, free: 7.945 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04042/1.375, allocations: 18.61 MB / 1.228 GB, free: 5.086 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.375, allocations: 160 / 1.228 GB, free: 5.086 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01834/1.393, allocations: 6.179 MB / 1.234 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002483/1.396, allocations: 0.6961 MB / 1.235 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001058/1.397, allocations: 51.98 kB / 1.235 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003614/1.4, allocations: 307.6 kB / 1.235 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001302/1.402, allocations: 358.7 kB / 1.235 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002901/1.402, allocations: 67.97 kB / 1.235 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002902/1.405, allocations: 1.536 MB / 1.237 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/1.405, allocations: 0 / 1.237 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003924/1.409, allocations: 1.047 MB / 1.238 GB, free: 10.88 MB / 0.9512 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.0004938/1.409, allocations: 169.8 kB / 1.238 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.02341/1.433, allocations: 6.477 MB / 1.244 GB, free: 4.168 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/1.433, allocations: 4 kB / 1.244 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0181/1.451, allocations: 4.056 MB / 1.248 GB, free: 112 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005923/1.457, allocations: 1.133 MB / 1.25 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/1.472, allocations: 6.698 MB / 1.256 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002511/1.475, allocations: 2.227 MB / 1.258 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002538/1.477, allocations: 0.5138 MB / 1.259 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008484/1.478, allocations: 187.4 kB / 1.259 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of SimCode: time 1.162e-06/1.478, allocations: 0 / 1.259 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of Templates: time 0.1272/1.605, allocations: 74.83 MB / 1.332 GB, free: 11.7 MB / 1.045 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches