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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001264/0.001265, allocations: 106 kB / 16.27 MB, free: 6.41 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.001244/0.001244, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.338/1.338, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.645/2.645, allocations: 482.4 MB / 0.7553 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.00189, allocations: 67.58 kB / 0.9245 GB, free: 15.95 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7761/0.778, allocations: 162.2 MB / 1.083 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02778/0.8058, allocations: 22.61 MB / 1.105 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02836/0.8342, allocations: 17.64 MB / 1.122 GB, free: 5.836 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004438/0.8387, allocations: 111.4 kB / 1.122 GB, free: 5.801 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01149/0.8503, allocations: 4.174 MB / 1.126 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01265/0.8629, allocations: 3.508 MB / 1.13 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004424/0.8674, allocations: 1.318 MB / 1.131 GB, free: 456 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01016/0.8776, allocations: 5.776 MB / 1.137 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006118/0.8837, allocations: 3.609 MB / 1.14 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005128/0.8889, allocations: 2.392 MB / 1.143 GB, free: 9.793 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005253/0.8942, allocations: 2.442 MB / 1.145 GB, free: 8.27 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.00119/0.8954, allocations: 368.8 kB / 1.145 GB, free: 8.27 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00361/0.899, allocations: 1.031 MB / 1.146 GB, free: 7.906 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001729/0.9008, allocations: 1.197 MB / 1.148 GB, free: 7.031 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.004068/0.9048, allocations: 1.989 MB / 1.149 GB, free: 5.672 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008022/0.9129, allocations: 5.112 MB / 1.154 GB, free: 2.078 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.9129, allocations: 4 kB / 1.154 GB, free: 2.074 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.488e-06/0.9129, allocations: 3.984 kB / 1.154 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001418/0.9131, allocations: 1.094 kB / 1.154 GB, free: 2.07 MB / 0.8731 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.01329/0.9264, allocations: 4.611 MB / 1.159 GB, free: 14.89 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.9264, allocations: 10.12 kB / 1.159 GB, free: 14.89 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0166/0.943, allocations: 3.261 MB / 1.162 GB, free: 13.39 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005465/0.9485, allocations: 2.084 MB / 1.164 GB, free: 11.24 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005044/0.9491, allocations: 466.3 kB / 1.165 GB, free: 10.72 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009221/0.95, allocations: 243.9 kB / 1.165 GB, free: 10.48 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.9625, allocations: 4.807 MB / 1.17 GB, free: 5.531 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.461e-05/0.9626, allocations: 7.984 kB / 1.17 GB, free: 5.523 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003944/0.963, allocations: 108 kB / 1.17 GB, free: 5.418 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002271/0.9632, allocations: 168.8 kB / 1.17 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01452/0.9778, allocations: 5.198 MB / 1.175 GB, free: 36 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02562/1.003, allocations: 14.47 MB / 1.189 GB, free: 408 kB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/1.014, allocations: 3.395 MB / 1.192 GB, free: 13 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004048/1.018, allocations: 1.467 MB / 1.194 GB, free: 11.53 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001288/1.018, allocations: 29.3 kB / 1.194 GB, free: 11.5 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004522/1.022, allocations: 1.79 MB / 1.196 GB, free: 9.641 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 4.218e-06/1.022, allocations: 0 / 1.196 GB, free: 9.641 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1306/1.153, allocations: 28.23 MB / 1.223 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003708/1.153, allocations: 0.4889 MB / 1.224 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003504/1.157, allocations: 2.3 MB / 1.226 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0004703/1.157, allocations: 73.7 kB / 1.226 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001456/1.159, allocations: 1.438 MB / 1.227 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001042/1.16, allocations: 0.8241 MB / 1.228 GB, free: 7.91 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000896/1.161, allocations: 412.4 kB / 1.229 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001329/1.161, allocations: 305.1 kB / 1.229 GB, free: 7.199 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005457/1.166, allocations: 1.929 MB / 1.231 GB, free: 5.266 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005657/1.172, allocations: 2.231 MB / 1.233 GB, free: 2.949 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/1.183, allocations: 4.161 MB / 1.237 GB, free: 14.65 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/1.183, allocations: 4 kB / 1.237 GB, free: 14.65 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01959/1.203, allocations: 6.543 MB / 1.243 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001408/1.203, allocations: 148.5 kB / 1.243 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/1.203, allocations: 4.344 kB / 1.243 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/1.213, allocations: 2.945 MB / 1.246 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002961/1.216, allocations: 491.2 kB / 1.247 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04208/1.258, allocations: 18.84 MB / 1.265 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004418/1.263, allocations: 319.6 kB / 1.266 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004282/1.263, allocations: 91.97 kB / 1.266 GB, free: 0.9023 MB / 0.9825 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.001763/1.265, allocations: 0.7148 MB / 1.266 GB, free: 180 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007998/1.266, allocations: 324.3 kB / 1.267 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007384/1.267, allocations: 384.1 kB / 1.267 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/1.267, allocations: 24 kB / 1.267 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.898e-05/1.267, allocations: 12 kB / 1.267 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/1.267, allocations: 12.14 kB / 1.267 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005476/1.272, allocations: 3.632 MB / 1.271 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/1.272, allocations: 3.938 kB / 1.271 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002496/1.275, allocations: 415.3 kB / 1.271 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009876/1.285, allocations: 2.888 MB / 1.274 GB, free: 8.43 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004509/1.285, allocations: 51.97 kB / 1.274 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04054/1.326, allocations: 18.64 MB / 1.292 GB, free: 5.441 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.326, allocations: 0 / 1.292 GB, free: 5.441 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01832/1.344, allocations: 6.177 MB / 1.298 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00207/1.346, allocations: 0.6922 MB / 1.299 GB, free: 14.51 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007503/1.347, allocations: 59.92 kB / 1.299 GB, free: 14.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003169/1.35, allocations: 311.6 kB / 1.299 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001173/1.351, allocations: 354.7 kB / 1.299 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002024/1.352, allocations: 71.98 kB / 1.3 GB, free: 13.73 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002366/1.354, allocations: 1.532 MB / 1.301 GB, free: 12.2 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.2e-07/1.354, allocations: 0 / 1.301 GB, free: 12.2 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003244/1.357, allocations: 1.047 MB / 1.302 GB, free: 11.16 MB / 1.029 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.0004027/1.358, allocations: 164.7 kB / 1.302 GB, free: 10.99 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02637/1.384, allocations: 7.301 MB / 1.309 GB, free: 3.594 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/1.384, allocations: 4 kB / 1.309 GB, free: 3.59 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.01739/1.401, allocations: 4.04 MB / 1.313 GB, free: 15.52 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005349/1.407, allocations: 1.142 MB / 1.314 GB, free: 14.42 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/1.423, allocations: 6.968 MB / 1.321 GB, free: 7.422 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002311/1.425, allocations: 2.231 MB / 1.323 GB, free: 5.16 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001334/1.427, allocations: 203.4 kB / 1.324 GB, free: 4.961 MB / 1.045 GB Notification: Performance of SimCode: time 1.182e-06/1.427, allocations: 0 / 1.324 GB, free: 4.961 MB / 1.045 GB Notification: Performance of Templates: time 0.1082/1.535, allocations: 79.94 MB / 1.402 GB, free: 5.336 MB / 1.123 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)