Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 97.88 kB / 15.36 MB, free: 0.7344 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.008636/0.008636, allocations: 171.2 kB / 16.27 MB, free: 6.648 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.423/1.423, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.757/2.757, allocations: 437.8 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0007091/0.0007091, allocations: 12 kB / 0.8728 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7562/0.7569, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02436/0.7813, allocations: 21.68 MB / 1.044 GB, free: 10.08 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02882/0.8102, allocations: 17.36 MB / 1.061 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004775/0.815, allocations: 99.44 kB / 1.061 GB, free: 8.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003105/0.8181, allocations: 0.5892 MB / 1.062 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.01152/0.8296, allocations: 3.2 MB / 1.065 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003729/0.8334, allocations: 1.179 MB / 1.066 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00955/0.843, allocations: 6.853 MB / 1.073 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0041/0.8471, allocations: 2.503 MB / 1.075 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003877/0.851, allocations: 1.957 MB / 1.077 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004605/0.8556, allocations: 2.241 MB / 1.079 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0007765/0.8564, allocations: 164 kB / 1.079 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00249/0.8589, allocations: 1.045 MB / 1.081 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.86, allocations: 0.9496 MB / 1.081 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.002617/0.8627, allocations: 1.746 MB / 1.083 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.008165/0.8708, allocations: 4.826 MB / 1.088 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.8709, allocations: 3.938 kB / 1.088 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.948e-06/0.8709, allocations: 0 / 1.088 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002521/0.8712, allocations: 0 / 1.088 GB, free: 13.14 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.01043/0.8816, allocations: 3.834 MB / 1.092 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.8817, allocations: 8.031 kB / 1.092 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01756/0.8992, allocations: 3.359 MB / 1.095 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004544/0.9038, allocations: 2.064 MB / 1.097 GB, free: 3.688 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.904, allocations: 181.1 kB / 1.097 GB, free: 3.508 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005038/0.9045, allocations: 232.1 kB / 1.097 GB, free: 3.281 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.9165, allocations: 4.74 MB / 1.102 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.773e-05/0.9166, allocations: 7.938 kB / 1.102 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003582/0.9169, allocations: 108 kB / 1.102 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001993/0.9171, allocations: 168.8 kB / 1.102 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01497/0.9321, allocations: 5.237 MB / 1.107 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02632/0.9585, allocations: 14.12 MB / 1.121 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.9701, allocations: 3.858 MB / 1.125 GB, free: 5.707 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003985/0.9741, allocations: 1.51 MB / 1.126 GB, free: 4.188 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.9742, allocations: 33.2 kB / 1.126 GB, free: 4.152 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004367/0.9786, allocations: 1.824 MB / 1.128 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=163): time 4.318e-06/0.9786, allocations: 0 / 1.128 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of matching and sorting (n=250): time 0.1319/1.111, allocations: 33.44 MB / 1.161 GB, free: 0.6055 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002807/1.111, allocations: 0.4928 MB / 1.161 GB, free: 0 / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003939/1.115, allocations: 2.292 MB / 1.164 GB, free: 13.7 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0005431/1.115, allocations: 73.7 kB / 1.164 GB, free: 13.62 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001334/1.117, allocations: 1.438 MB / 1.165 GB, free: 12.16 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001011/1.118, allocations: 0.8202 MB / 1.166 GB, free: 11.33 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003204/1.118, allocations: 186.4 kB / 1.166 GB, free: 11.14 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001356/1.118, allocations: 305.1 kB / 1.166 GB, free: 10.84 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005281/1.124, allocations: 1.933 MB / 1.168 GB, free: 8.906 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005596/1.129, allocations: 2.235 MB / 1.17 GB, free: 6.586 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/1.14, allocations: 4.208 MB / 1.174 GB, free: 2.242 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/1.14, allocations: 0 / 1.174 GB, free: 2.242 MB / 0.92 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01932/1.16, allocations: 6.2 MB / 1.181 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.000398/1.16, allocations: 403.5 kB / 1.181 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/1.16, allocations: 8 kB / 1.181 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007409/1.168, allocations: 1.856 MB / 1.183 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003706/1.171, allocations: 0.589 MB / 1.183 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02583/1.197, allocations: 14.2 MB / 1.197 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004566/1.202, allocations: 403.6 kB / 1.198 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005009/1.202, allocations: 91.97 kB / 1.198 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/1.202, allocations: 4 kB / 1.198 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01635/1.219, allocations: 5.784 MB / 1.203 GB, free: 4.184 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.87e-05/1.219, allocations: 4 kB / 1.203 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005496/1.224, allocations: 1.821 MB / 1.205 GB, free: 2.355 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003477/1.228, allocations: 0.6086 MB / 1.206 GB, free: 1.746 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02232/1.25, allocations: 13.46 MB / 1.219 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004286/1.254, allocations: 411.5 kB / 1.219 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003296/1.255, allocations: 83.98 kB / 1.219 GB, free: 3.523 MB / 0.9669 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 (172): * Single equations (assignments): 165 * 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 {(10,52)} Notification: Performance of prepare postOptimizeDAE: time 0.001808/1.257, allocations: 0.7806 MB / 1.22 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007295/1.257, allocations: 340 kB / 1.22 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009494/1.258, allocations: 392.1 kB / 1.221 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/1.258, allocations: 24 kB / 1.221 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.544e-05/1.258, allocations: 12 kB / 1.221 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/1.258, allocations: 11.95 kB / 1.221 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004605/1.263, allocations: 3.161 MB / 1.224 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/1.263, allocations: 0 / 1.224 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002769/1.266, allocations: 0.5228 MB / 1.224 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006357/1.272, allocations: 1.719 MB / 1.226 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003431/1.273, allocations: 51.97 kB / 1.226 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/1.295, allocations: 13.97 MB / 1.24 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.295, allocations: 0 / 1.24 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01678/1.311, allocations: 5.814 MB / 1.245 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001873/1.313, allocations: 0.6609 MB / 1.246 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005983/1.314, allocations: 51.98 kB / 1.246 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/1.317, allocations: 399.6 kB / 1.247 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009375/1.318, allocations: 294.6 kB / 1.247 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/1.318, allocations: 67.97 kB / 1.247 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002291/1.321, allocations: 1.54 MB / 1.248 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.6e-07/1.321, allocations: 0 / 1.248 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005008/1.326, allocations: 1.621 MB / 1.25 GB, free: 3.703 MB / 0.9981 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 (128): * Single equations (assignments): 116 * 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,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004528/1.326, allocations: 168.4 kB / 1.25 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.5543/1.881, allocations: 10.09 MB / 1.26 GB, free: 211.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.481e-05/1.881, allocations: 2.094 kB / 1.26 GB, free: 211.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01044/1.891, allocations: 3.501 MB / 1.263 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006436/1.898, allocations: 1.047 MB / 1.264 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/1.913, allocations: 7.96 MB / 1.272 GB, free: 207.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002713/1.916, allocations: 2.306 MB / 1.274 GB, free: 206.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.004115/1.92, allocations: 0.6399 MB / 1.275 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008206/1.921, allocations: 183.7 kB / 1.275 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of SimCode: time 9.22e-07/1.921, allocations: 0 / 1.275 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.1103/2.031, allocations: 76.11 MB / 1.35 GB, free: 147.4 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_DCLines.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches