Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_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_latest_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.001367/0.001367, allocations: 106.2 kB / 16.36 MB, free: 6.34 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.001334/0.001334, allocations: 198.2 kB / 17.3 MB, free: 5.879 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.492/2.492, allocations: 442.6 MB / 0.7165 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 68.03 kB / 0.8773 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3384, allocations: 153 MB / 1.027 GB, free: 2.113 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02488/0.3633, allocations: 22.64 MB / 1.049 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02614/0.3895, allocations: 17.63 MB / 1.066 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003962/0.3935, allocations: 111.4 kB / 1.066 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01139/0.4049, allocations: 4.169 MB / 1.07 GB, free: 5.426 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01512/0.4201, allocations: 3.516 MB / 1.074 GB, free: 1.902 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00485/0.4249, allocations: 1.314 MB / 1.075 GB, free: 0.5898 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.6415/1.066, allocations: 5.77 MB / 1.081 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006055/1.073, allocations: 3.585 MB / 1.084 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006721/1.079, allocations: 2.413 MB / 1.086 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007738/1.087, allocations: 2.447 MB / 1.089 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.003046/1.09, allocations: 369.4 kB / 1.089 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005725/1.096, allocations: 1.036 MB / 1.09 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003081/1.099, allocations: 1.193 MB / 1.091 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004773/1.104, allocations: 1.993 MB / 1.093 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.008848/1.113, allocations: 5.172 MB / 1.098 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/1.113, allocations: 2.188 kB / 1.098 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.325e-06/1.113, allocations: 0 / 1.098 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001954/1.113, allocations: 0 / 1.098 GB, free: 11.36 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.01554/1.128, allocations: 4.603 MB / 1.103 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/1.129, allocations: 13.72 kB / 1.103 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01615/1.145, allocations: 3.263 MB / 1.106 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006304/1.151, allocations: 2.232 MB / 1.108 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004296/1.152, allocations: 464.7 kB / 1.109 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/1.153, allocations: 238.4 kB / 1.109 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/1.167, allocations: 4.808 MB / 1.114 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001167/1.167, allocations: 7.656 kB / 1.114 GB, free: 6.305 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001102/1.168, allocations: 109.4 kB / 1.114 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002634/1.169, allocations: 170.5 kB / 1.114 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/1.183, allocations: 5.195 MB / 1.119 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02841/1.211, allocations: 14.39 MB / 1.133 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01162/1.223, allocations: 3.387 MB / 1.136 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006283/1.229, allocations: 1.466 MB / 1.138 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003298/1.23, allocations: 21.28 kB / 1.138 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006721/1.236, allocations: 1.797 MB / 1.139 GB, free: 6.902 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=163): time 1.107e-05/1.236, allocations: 0 / 1.139 GB, free: 6.902 MB / 0.8575 GB Notification: Performance of matching and sorting (n=250): time 0.1379/1.374, allocations: 28.23 MB / 1.167 GB, free: 2.172 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002873/1.375, allocations: 0.4966 MB / 1.168 GB, free: 1.562 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00377/1.378, allocations: 2.294 MB / 1.17 GB, free: 15.26 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0006068/1.379, allocations: 77.7 kB / 1.17 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.00171/1.381, allocations: 1.434 MB / 1.171 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001627/1.382, allocations: 0.8187 MB / 1.172 GB, free: 12.92 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001655/1.384, allocations: 416 kB / 1.172 GB, free: 12.51 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001546/1.384, allocations: 309.1 kB / 1.173 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00668/1.391, allocations: 1.921 MB / 1.175 GB, free: 10.28 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006084/1.397, allocations: 2.239 MB / 1.177 GB, free: 7.957 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/1.408, allocations: 4.161 MB / 1.181 GB, free: 3.684 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.639e-05/1.408, allocations: 0 / 1.181 GB, free: 3.684 MB / 0.8887 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0203/1.428, allocations: 6.536 MB / 1.187 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/1.429, allocations: 152.6 kB / 1.187 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/1.429, allocations: 4.938 kB / 1.187 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01075/1.439, allocations: 2.931 MB / 1.19 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/1.442, allocations: 484 kB / 1.191 GB, free: 9.586 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04236/1.485, allocations: 18.85 MB / 1.209 GB, free: 6.547 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005091/1.49, allocations: 319.6 kB / 1.209 GB, free: 6.234 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009089/1.491, allocations: 87.97 kB / 1.21 GB, free: 6.148 MB / 0.92 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.002712/1.494, allocations: 0.7119 MB / 1.21 GB, free: 5.445 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/1.495, allocations: 336 kB / 1.211 GB, free: 5.113 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/1.496, allocations: 380.1 kB / 1.211 GB, free: 4.734 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.639e-05/1.496, allocations: 24 kB / 1.211 GB, free: 4.711 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.783e-05/1.496, allocations: 8 kB / 1.211 GB, free: 4.703 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.876e-05/1.496, allocations: 11.95 kB / 1.211 GB, free: 4.691 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00745/1.504, allocations: 3.619 MB / 1.214 GB, free: 1.055 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.12e-05/1.504, allocations: 4 kB / 1.214 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002624/1.506, allocations: 405.8 kB / 1.215 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01011/1.516, allocations: 2.881 MB / 1.218 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005382/1.517, allocations: 51.97 kB / 1.218 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03829/1.555, allocations: 18.61 MB / 1.236 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.555, allocations: 0 / 1.236 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01748/1.573, allocations: 6.178 MB / 1.242 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002564/1.575, allocations: 0.6922 MB / 1.243 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/1.577, allocations: 44 kB / 1.243 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004156/1.581, allocations: 319.5 kB / 1.243 GB, free: 3.652 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0014/1.582, allocations: 356.6 kB / 1.243 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003701/1.583, allocations: 67.97 kB / 1.243 GB, free: 3.238 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.003033/1.586, allocations: 1.54 MB / 1.245 GB, free: 1.699 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.3e-07/1.586, allocations: 0 / 1.245 GB, free: 1.699 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.004753/1.591, allocations: 1.043 MB / 1.246 GB, free: 0.6562 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.0005632/1.591, allocations: 165.9 kB / 1.246 GB, free: 0.4961 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.02358/1.615, allocations: 6.476 MB / 1.252 GB, free: 9.957 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.615, allocations: 4.25 kB / 1.252 GB, free: 9.953 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.01749/1.632, allocations: 4.052 MB / 1.256 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008297/1.641, allocations: 1.142 MB / 1.257 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01801/1.659, allocations: 6.697 MB / 1.264 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003783/1.663, allocations: 2.231 MB / 1.266 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003644/1.666, allocations: 0.506 MB / 1.267 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/1.667, allocations: 191.4 kB / 1.267 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of SimCode: time 1.182e-06/1.667, allocations: 0 / 1.267 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of Templates: time 0.1209/1.788, allocations: 74.85 MB / 1.34 GB, free: 1.426 MB / 1.045 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches