Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_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_9_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.001526/0.001526, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001879/0.001879, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.518/1.518, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.404/2.404, allocations: 390.2 MB / 0.6643 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 67.89 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7822/0.7836, allocations: 140.4 MB / 0.9491 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02355/0.8072, allocations: 22.43 MB / 0.971 GB, free: 7.844 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0298/0.8371, allocations: 17.46 MB / 0.988 GB, free: 9.949 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004976/0.8421, allocations: 103.4 kB / 0.9881 GB, free: 9.914 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01092/0.853, allocations: 3.934 MB / 0.992 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01234/0.8654, allocations: 3.19 MB / 0.9951 GB, free: 2.863 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003997/0.8694, allocations: 1.177 MB / 0.9963 GB, free: 1.691 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009392/0.8788, allocations: 5.805 MB / 1.002 GB, free: 11.87 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007947/0.8868, allocations: 4.015 MB / 1.006 GB, free: 7.781 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00567/0.8925, allocations: 2.464 MB / 1.008 GB, free: 5.309 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006043/0.8985, allocations: 2.514 MB / 1.011 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.002054/0.9006, allocations: 372 kB / 1.011 GB, free: 2.422 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004224/0.9049, allocations: 1.03 MB / 1.012 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002702/0.9076, allocations: 1.196 MB / 1.013 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.005889/0.9135, allocations: 2.01 MB / 1.015 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.9236, allocations: 5.175 MB / 1.02 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.9236, allocations: 0 / 1.02 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.337e-06/0.9236, allocations: 11.98 kB / 1.02 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002652/0.9239, allocations: 0 / 1.02 GB, free: 8.969 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.01645/0.9404, allocations: 4.613 MB / 1.025 GB, free: 4.242 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.9404, allocations: 15.97 kB / 1.025 GB, free: 4.227 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01639/0.9568, allocations: 3.261 MB / 1.028 GB, free: 0.957 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006499/0.9634, allocations: 2.088 MB / 1.03 GB, free: 14.8 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004969/0.9639, allocations: 466.3 kB / 1.03 GB, free: 14.28 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008688/0.9648, allocations: 235.9 kB / 1.031 GB, free: 14.05 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.9772, allocations: 4.818 MB / 1.035 GB, free: 9.086 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.069e-05/0.9773, allocations: 0 / 1.035 GB, free: 9.086 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003834/0.9776, allocations: 104 kB / 1.035 GB, free: 8.984 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002151/0.9779, allocations: 172.8 kB / 1.036 GB, free: 8.812 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01397/0.9919, allocations: 5.198 MB / 1.041 GB, free: 3.598 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02605/1.018, allocations: 14.48 MB / 1.055 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009971/1.028, allocations: 3.396 MB / 1.058 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003832/1.032, allocations: 1.471 MB / 1.06 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001547/1.032, allocations: 21.22 kB / 1.06 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004459/1.036, allocations: 1.788 MB / 1.061 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 4.719e-06/1.037, allocations: 3.938 kB / 1.061 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.1189/1.155, allocations: 28.21 MB / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002715/1.156, allocations: 0.4928 MB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/1.159, allocations: 2.3 MB / 1.092 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.000593/1.16, allocations: 77.7 kB / 1.092 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00152/1.161, allocations: 1.426 MB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0012/1.163, allocations: 0.8279 MB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001042/1.164, allocations: 416.5 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000156/1.164, allocations: 309.1 kB / 1.095 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005483/1.169, allocations: 1.929 MB / 1.097 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006145/1.175, allocations: 2.231 MB / 1.099 GB, free: 6.508 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/1.187, allocations: 4.154 MB / 1.103 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.655e-05/1.187, allocations: 4 kB / 1.103 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01982/1.207, allocations: 6.535 MB / 1.109 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001334/1.207, allocations: 152.5 kB / 1.109 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/1.207, allocations: 4 kB / 1.109 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01052/1.217, allocations: 2.95 MB / 1.112 GB, free: 8.441 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003272/1.221, allocations: 491.2 kB / 1.113 GB, free: 7.961 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04577/1.266, allocations: 18.87 MB / 1.131 GB, free: 4.848 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004757/1.271, allocations: 319.6 kB / 1.131 GB, free: 4.535 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006708/1.272, allocations: 87.97 kB / 1.131 GB, free: 4.449 MB / 0.8887 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.002577/1.275, allocations: 0.7105 MB / 1.132 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/1.276, allocations: 332.1 kB / 1.132 GB, free: 3.402 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009269/1.277, allocations: 384.1 kB / 1.133 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.05e-05/1.277, allocations: 24 kB / 1.133 GB, free: 2.996 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.455e-05/1.277, allocations: 8 kB / 1.133 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/1.277, allocations: 11.95 kB / 1.133 GB, free: 2.977 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005513/1.282, allocations: 3.624 MB / 1.136 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/1.282, allocations: 11.92 kB / 1.136 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002626/1.285, allocations: 407.4 kB / 1.137 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0106/1.296, allocations: 2.896 MB / 1.14 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005083/1.296, allocations: 51.97 kB / 1.14 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04191/1.338, allocations: 18.63 MB / 1.158 GB, free: 8.996 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.338, allocations: 0 / 1.158 GB, free: 8.996 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01915/1.357, allocations: 6.181 MB / 1.164 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002197/1.36, allocations: 0.6922 MB / 1.165 GB, free: 2.066 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.361, allocations: 55.92 kB / 1.165 GB, free: 2.012 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003745/1.364, allocations: 311.6 kB / 1.165 GB, free: 1.707 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001383/1.366, allocations: 351.3 kB / 1.165 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003113/1.366, allocations: 71.97 kB / 1.165 GB, free: 1.297 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.00301/1.369, allocations: 1.536 MB / 1.167 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.31e-07/1.369, allocations: 0 / 1.167 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003499/1.373, allocations: 1.047 MB / 1.168 GB, free: 14.71 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 (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.0005034/1.373, allocations: 171.5 kB / 1.168 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02613/1.399, allocations: 7.305 MB / 1.175 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/1.399, allocations: 8.062 kB / 1.175 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.01819/1.418, allocations: 4.048 MB / 1.179 GB, free: 3.051 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006937/1.425, allocations: 1.134 MB / 1.18 GB, free: 1.961 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01988/1.445, allocations: 8.041 MB / 1.188 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003379/1.448, allocations: 2.231 MB / 1.19 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.004325/1.452, allocations: 0.5021 MB / 1.191 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/1.453, allocations: 191.4 kB / 1.191 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of SimCode: time 1.583e-06/1.454, allocations: 4 kB / 1.191 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of Templates: time 0.6953/2.149, allocations: 76.27 MB / 1.265 GB, free: 251.9 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches