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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008692/0.0008692, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009635/0.0009635, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.568/2.568, allocations: 390.3 MB / 0.6653 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003798, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7353/0.7357, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02253/0.7583, allocations: 19.18 MB / 0.9722 GB, free: 9.645 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02606/0.7844, allocations: 16.06 MB / 0.9879 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004557/0.789, allocations: 95.38 kB / 0.988 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.003192/0.7922, allocations: 0.5432 MB / 0.9886 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01282/0.805, allocations: 2.823 MB / 0.9913 GB, free: 9.398 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004578/0.8096, allocations: 0.9375 MB / 0.9922 GB, free: 8.465 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009777/0.8194, allocations: 3.42 MB / 0.9956 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004493/0.824, allocations: 2.067 MB / 0.9976 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005272/0.8293, allocations: 1.826 MB / 0.9994 GB, free: 1.074 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005067/0.8344, allocations: 1.778 MB / 1.001 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001544/0.836, allocations: 176 kB / 1.001 GB, free: 15.12 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003083/0.8391, allocations: 495.4 kB / 1.002 GB, free: 14.63 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002009/0.8411, allocations: 0.8839 MB / 1.003 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002078/0.8432, allocations: 0.6873 MB / 1.003 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.006985/0.8502, allocations: 3.902 MB / 1.007 GB, free: 9.141 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.8503, allocations: 0 / 1.007 GB, free: 9.141 MB / 0.7637 GB Notification: Performance of FrontEnd: time 5.33e-06/0.8503, allocations: 4 kB / 1.007 GB, free: 9.137 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0003466/0.8506, allocations: 0 / 1.007 GB, free: 9.137 MB / 0.7637 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.01431/0.865, allocations: 4.107 MB / 1.011 GB, free: 4.918 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.865, allocations: 8.031 kB / 1.011 GB, free: 4.91 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01704/0.8821, allocations: 3.401 MB / 1.014 GB, free: 1.5 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00778/0.8899, allocations: 1.987 MB / 1.016 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006043/0.8906, allocations: 473.6 kB / 1.017 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001538/0.8921, allocations: 235.9 kB / 1.017 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.9085, allocations: 4.83 MB / 1.022 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.643e-05/0.9087, allocations: 4 kB / 1.022 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006521/0.9093, allocations: 108 kB / 1.022 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/0.9096, allocations: 172.8 kB / 1.022 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/0.9236, allocations: 5.3 MB / 1.027 GB, free: 4.113 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02485/0.9485, allocations: 14.58 MB / 1.041 GB, free: 4.359 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/0.9594, allocations: 3.68 MB / 1.045 GB, free: 0.668 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002522/0.9597, allocations: 25.3 kB / 1.045 GB, free: 0.6445 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004673/0.9644, allocations: 1.899 MB / 1.047 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 5.14e-06/0.9644, allocations: 3.938 kB / 1.047 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.133/1.097, allocations: 34.1 MB / 1.08 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002501/1.098, allocations: 0.4889 MB / 1.081 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003297/1.101, allocations: 2.277 MB / 1.083 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0005025/1.102, allocations: 77.7 kB / 1.083 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001238/1.103, allocations: 1.43 MB / 1.084 GB, free: 7.941 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/1.104, allocations: 0.824 MB / 1.085 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/1.104, allocations: 48 kB / 1.085 GB, free: 7.059 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001603/1.104, allocations: 398.7 kB / 1.086 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005216/1.109, allocations: 2.108 MB / 1.088 GB, free: 4.551 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005723/1.115, allocations: 2.395 MB / 1.09 GB, free: 2.07 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005491/1.121, allocations: 2.296 MB / 1.092 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/1.121, allocations: 4 kB / 1.092 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01845/1.139, allocations: 6.876 MB / 1.099 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/1.139, allocations: 149.8 kB / 1.099 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.097e-05/1.139, allocations: 4.344 kB / 1.099 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01123/1.151, allocations: 2.946 MB / 1.102 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/1.154, allocations: 0.5657 MB / 1.103 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03851/1.192, allocations: 18.16 MB / 1.12 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004753/1.197, allocations: 411.6 kB / 1.121 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005556/1.198, allocations: 87.97 kB / 1.121 GB, free: 2.172 MB / 0.8731 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,45.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.001972/1.2, allocations: 0.7069 MB / 1.121 GB, free: 1.453 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007977/1.201, allocations: 336 kB / 1.122 GB, free: 1.121 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007548/1.201, allocations: 384.1 kB / 1.122 GB, free: 0.7383 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-05/1.201, allocations: 27.95 kB / 1.122 GB, free: 0.7109 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.392e-05/1.201, allocations: 15.94 kB / 1.122 GB, free: 0.6953 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/1.201, allocations: 11.95 kB / 1.122 GB, free: 0.6836 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005065/1.206, allocations: 3.628 MB / 1.126 GB, free: 13 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/1.207, allocations: 0 / 1.126 GB, free: 13 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002594/1.209, allocations: 0.4993 MB / 1.126 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009787/1.219, allocations: 2.865 MB / 1.129 GB, free: 9.625 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005943/1.22, allocations: 47.97 kB / 1.129 GB, free: 9.578 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03677/1.256, allocations: 17.94 MB / 1.147 GB, free: 7.355 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.256, allocations: 0 / 1.147 GB, free: 7.355 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01807/1.274, allocations: 6.529 MB / 1.153 GB, free: 0.7891 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/1.277, allocations: 0.6961 MB / 1.154 GB, free: 72 kB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007669/1.277, allocations: 51.98 kB / 1.154 GB, free: 20 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/1.281, allocations: 407.6 kB / 1.154 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001239/1.282, allocations: 370.5 kB / 1.154 GB, free: 15.26 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/1.283, allocations: 75.97 kB / 1.155 GB, free: 15.18 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002243/1.285, allocations: 1.509 MB / 1.156 GB, free: 13.68 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.31e-07/1.285, allocations: 0 / 1.156 GB, free: 13.68 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003309/1.288, allocations: 1.043 MB / 1.157 GB, free: 12.63 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 62} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003989/1.289, allocations: 166.8 kB / 1.157 GB, free: 12.46 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.02295/1.311, allocations: 6.832 MB / 1.164 GB, free: 5.535 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.312, allocations: 0 / 1.164 GB, free: 5.535 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.01687/1.328, allocations: 4.234 MB / 1.168 GB, free: 1.273 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004728/1.333, allocations: 0.9996 MB / 1.169 GB, free: 292 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/1.348, allocations: 7.751 MB / 1.177 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002244/1.35, allocations: 2.293 MB / 1.179 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002997/1.353, allocations: 0.5138 MB / 1.179 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006786/1.354, allocations: 167.4 kB / 1.179 GB, free: 5.5 MB / 0.9356 GB Notification: Performance of SimCode: time 1.303e-06/1.354, allocations: 4 kB / 1.179 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of Templates: time 0.1156/1.47, allocations: 70.07 MB / 1.248 GB, free: 284 kB / 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)