Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001038/0.001038, allocations: 98.27 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.01017/0.01017, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.417/1.417, 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 9.1.3-maint.9.1.x/package.mo): time 2.53/2.53, allocations: 390.9 MB / 0.6663 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0006234/0.0006236, allocations: 11.98 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8633/0.864, allocations: 142.4 MB / 0.955 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02459/0.8886, allocations: 21.67 MB / 0.9762 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02811/0.9168, allocations: 17.38 MB / 0.9932 GB, free: 8.332 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00387/0.9207, allocations: 95.44 kB / 0.9933 GB, free: 8.238 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002952/0.9237, allocations: 0.5892 MB / 0.9938 GB, free: 7.645 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01285/0.9366, allocations: 3.202 MB / 0.997 GB, free: 4.441 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00481/0.9414, allocations: 1.185 MB / 0.9981 GB, free: 3.262 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01271/0.9541, allocations: 6.857 MB / 1.005 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005316/0.9595, allocations: 2.515 MB / 1.007 GB, free: 9.773 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005689/0.9652, allocations: 1.949 MB / 1.009 GB, free: 7.816 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00548/0.9707, allocations: 2.241 MB / 1.011 GB, free: 5.566 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0007985/0.9715, allocations: 164 kB / 1.012 GB, free: 5.406 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002891/0.9744, allocations: 1.041 MB / 1.013 GB, free: 4.363 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001159/0.9756, allocations: 0.9534 MB / 1.013 GB, free: 3.406 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002885/0.9785, allocations: 1.746 MB / 1.015 GB, free: 1.645 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.006029/0.9845, allocations: 4.838 MB / 1.02 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.9846, allocations: 4 kB / 1.02 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.564e-06/0.9846, allocations: 0 / 1.02 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001362/0.9847, allocations: 4 kB / 1.02 GB, free: 12.78 MB / 0.7794 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.008589/0.9933, allocations: 3.838 MB / 1.024 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.9934, allocations: 8.031 kB / 1.024 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01707/1.01, allocations: 3.359 MB / 1.027 GB, free: 5.457 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0045/1.015, allocations: 2.064 MB / 1.029 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/1.015, allocations: 177.1 kB / 1.029 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005877/1.016, allocations: 240.1 kB / 1.029 GB, free: 2.914 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/1.027, allocations: 4.736 MB / 1.034 GB, free: 14.03 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.333e-05/1.027, allocations: 3.984 kB / 1.034 GB, free: 14.03 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003444/1.028, allocations: 112 kB / 1.034 GB, free: 13.92 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002413/1.028, allocations: 172.8 kB / 1.034 GB, free: 13.75 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01426/1.042, allocations: 5.237 MB / 1.039 GB, free: 8.492 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02201/1.064, allocations: 14.12 MB / 1.053 GB, free: 9.199 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/1.076, allocations: 3.858 MB / 1.057 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003986/1.08, allocations: 1.51 MB / 1.058 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/1.08, allocations: 33.22 kB / 1.058 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004423/1.085, allocations: 1.828 MB / 1.06 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 4.619e-06/1.085, allocations: 4 kB / 1.06 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.1338/1.219, allocations: 33.42 MB / 1.093 GB, free: 260 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003843/1.219, allocations: 0.4928 MB / 1.093 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004836/1.224, allocations: 2.296 MB / 1.096 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0005297/1.225, allocations: 73.7 kB / 1.096 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001544/1.226, allocations: 1.446 MB / 1.097 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001188/1.227, allocations: 0.8124 MB / 1.098 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005356/1.228, allocations: 182.4 kB / 1.098 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001226/1.228, allocations: 317 kB / 1.098 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005605/1.234, allocations: 1.929 MB / 1.1 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0056/1.239, allocations: 2.233 MB / 1.102 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01096/1.25, allocations: 4.208 MB / 1.107 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/1.25, allocations: 0 / 1.107 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01768/1.268, allocations: 6.204 MB / 1.113 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003229/1.268, allocations: 404.8 kB / 1.113 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/1.268, allocations: 4 kB / 1.113 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007125/1.275, allocations: 1.852 MB / 1.115 GB, free: 9.215 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003232/1.279, allocations: 0.589 MB / 1.115 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02626/1.305, allocations: 14.2 MB / 1.129 GB, free: 10.2 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004592/1.31, allocations: 403.6 kB / 1.13 GB, free: 9.801 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005958/1.31, allocations: 87.97 kB / 1.13 GB, free: 9.715 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/1.31, allocations: 4 kB / 1.13 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01695/1.327, allocations: 5.785 MB / 1.135 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/1.327, allocations: 15.97 kB / 1.135 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005668/1.333, allocations: 1.817 MB / 1.137 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003427/1.337, allocations: 0.6124 MB / 1.138 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02364/1.36, allocations: 13.47 MB / 1.151 GB, free: 3.648 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.365, allocations: 411.7 kB / 1.151 GB, free: 3.246 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006458/1.366, allocations: 87.97 kB / 1.151 GB, free: 3.16 MB / 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 (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.002611/1.368, allocations: 0.777 MB / 1.152 GB, free: 2.375 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.37, allocations: 340 kB / 1.152 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/1.371, allocations: 392.1 kB / 1.153 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4e-05/1.371, allocations: 24 kB / 1.153 GB, free: 1.625 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.371e-05/1.371, allocations: 12 kB / 1.153 GB, free: 1.613 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.494e-05/1.371, allocations: 11.95 kB / 1.153 GB, free: 1.602 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007961/1.379, allocations: 3.173 MB / 1.156 GB, free: 14.37 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.264e-05/1.379, allocations: 0 / 1.156 GB, free: 14.37 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002925/1.382, allocations: 0.515 MB / 1.156 GB, free: 13.86 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006729/1.389, allocations: 1.723 MB / 1.158 GB, free: 12.12 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004666/1.39, allocations: 51.97 kB / 1.158 GB, free: 12.07 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02413/1.414, allocations: 13.97 MB / 1.172 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.414, allocations: 4 kB / 1.172 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01822/1.432, allocations: 5.814 MB / 1.178 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002608/1.435, allocations: 0.6571 MB / 1.178 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001287/1.436, allocations: 44 kB / 1.178 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003764/1.44, allocations: 403.5 kB / 1.179 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001234/1.441, allocations: 298.6 kB / 1.179 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/1.441, allocations: 71.97 kB / 1.179 GB, free: 6.492 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.003764/1.445, allocations: 1.532 MB / 1.18 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of sort global known variables: time 5.11e-07/1.445, allocations: 4 kB / 1.18 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0068/1.452, allocations: 1.621 MB / 1.182 GB, free: 3.336 MB / 0.9356 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.0005592/1.453, allocations: 167 kB / 1.182 GB, free: 3.164 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02567/1.478, allocations: 10.1 MB / 1.192 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.478, allocations: 4.125 kB / 1.192 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.009489/1.488, allocations: 3.513 MB / 1.195 GB, free: 5.328 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007032/1.495, allocations: 1.052 MB / 1.196 GB, free: 4.289 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02138/1.516, allocations: 7.947 MB / 1.204 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003651/1.52, allocations: 2.312 MB / 1.207 GB, free: 9.977 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.003995/1.524, allocations: 0.627 MB / 1.207 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000894/1.525, allocations: 179.4 kB / 1.207 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of SimCode: time 1.473e-06/1.525, allocations: 4 kB / 1.207 GB, free: 9.164 MB / 0.9669 GB Notification: Performance of Templates: time 0.6812/2.206, allocations: 76.13 MB / 1.282 GB, free: 251.3 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_DCLines.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches