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.007804/0.007804, allocations: 103 kB / 15.88 MB, free: 6.328 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.002007/0.002007, allocations: 196.5 kB / 16.79 MB, free: 6.254 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.383/1.383, allocations: 222.9 MB / 240.5 MB, free: 4.441 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.386/2.386, allocations: 390.2 MB / 0.6649 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 68.05 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5723/0.5738, allocations: 140.4 MB / 0.9496 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02078/0.5946, allocations: 22.43 MB / 0.9715 GB, free: 7.949 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02491/0.6196, allocations: 17.6 MB / 0.9887 GB, free: 10 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003432/0.623, allocations: 107 kB / 0.9888 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01004/0.6331, allocations: 3.912 MB / 0.9926 GB, free: 6.062 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01123/0.6443, allocations: 3.203 MB / 0.9957 GB, free: 2.859 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003606/0.648, allocations: 1.189 MB / 0.9969 GB, free: 1.672 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008785/0.6568, allocations: 7.067 MB / 1.004 GB, free: 10.59 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003976/0.6608, allocations: 2.499 MB / 1.006 GB, free: 8.012 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004059/0.6649, allocations: 2.171 MB / 1.008 GB, free: 5.832 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00429/0.6692, allocations: 2.459 MB / 1.011 GB, free: 3.363 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.000933/0.6701, allocations: 232 kB / 1.011 GB, free: 3.137 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002607/0.6727, allocations: 1.104 MB / 1.012 GB, free: 2.031 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001158/0.6739, allocations: 1.063 MB / 1.013 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002673/0.6766, allocations: 1.857 MB / 1.015 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.005186/0.6818, allocations: 4.045 MB / 1.019 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.6818, allocations: 0 / 1.019 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6818, allocations: 0 / 1.019 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001672/0.682, allocations: 0 / 1.019 GB, free: 11.04 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.01069/0.6927, allocations: 4.624 MB / 1.023 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.6928, allocations: 8.031 kB / 1.023 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01587/0.7086, allocations: 3.265 MB / 1.027 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004326/0.713, allocations: 2.088 MB / 1.029 GB, free: 0.8672 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004079/0.7134, allocations: 470.3 kB / 1.029 GB, free: 352 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006263/0.7141, allocations: 235.9 kB / 1.029 GB, free: 116 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.7251, allocations: 4.806 MB / 1.034 GB, free: 11.16 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.858e-05/0.7252, allocations: 7.938 kB / 1.034 GB, free: 11.15 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003545/0.7256, allocations: 104 kB / 1.034 GB, free: 11.05 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002145/0.7258, allocations: 176.8 kB / 1.034 GB, free: 10.88 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01342/0.7392, allocations: 5.191 MB / 1.039 GB, free: 5.668 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02242/0.7617, allocations: 14.48 MB / 1.053 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009545/0.7713, allocations: 3.389 MB / 1.057 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003625/0.775, allocations: 1.471 MB / 1.058 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/0.7751, allocations: 29.27 kB / 1.058 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004372/0.7795, allocations: 1.792 MB / 1.06 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 4.378e-06/0.7796, allocations: 3.938 kB / 1.06 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.1246/0.9041, allocations: 28.2 MB / 1.088 GB, free: 2.828 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002636/0.9044, allocations: 0.5006 MB / 1.088 GB, free: 2.215 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.9082, allocations: 2.293 MB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0004274/0.9086, allocations: 81.69 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.9099, allocations: 1.434 MB / 1.092 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009201/0.9108, allocations: 0.8201 MB / 1.093 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001017/0.9118, allocations: 416.5 kB / 1.093 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.538e-05/0.912, allocations: 301.1 kB / 1.093 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005252/0.9172, allocations: 1.933 MB / 1.095 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005563/0.9228, allocations: 2.227 MB / 1.097 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/0.9333, allocations: 4.165 MB / 1.101 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.9334, allocations: 3.938 kB / 1.101 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02053/0.9539, allocations: 6.535 MB / 1.108 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.954, allocations: 146.7 kB / 1.108 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.9541, allocations: 8 kB / 1.108 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01078/0.9649, allocations: 2.922 MB / 1.111 GB, free: 10.54 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002928/0.9678, allocations: 499.1 kB / 1.111 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03972/1.008, allocations: 17.33 MB / 1.128 GB, free: 8.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004073/1.012, allocations: 327.5 kB / 1.128 GB, free: 8.16 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004919/1.012, allocations: 87.97 kB / 1.129 GB, free: 8.074 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.00183/1.014, allocations: 0.7028 MB / 1.129 GB, free: 7.359 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009242/1.015, allocations: 332.1 kB / 1.13 GB, free: 7.031 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009531/1.016, allocations: 392 kB / 1.13 GB, free: 6.641 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.067e-05/1.016, allocations: 24 kB / 1.13 GB, free: 6.617 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.899e-05/1.016, allocations: 11.98 kB / 1.13 GB, free: 6.605 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-05/1.016, allocations: 15.95 kB / 1.13 GB, free: 6.59 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005649/1.022, allocations: 3.624 MB / 1.133 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.538e-05/1.022, allocations: 0 / 1.133 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/1.024, allocations: 419.4 kB / 1.134 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01034/1.035, allocations: 2.865 MB / 1.137 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005219/1.035, allocations: 55.91 kB / 1.137 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03854/1.074, allocations: 17.11 MB / 1.153 GB, free: 14.17 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.074, allocations: 4.031 kB / 1.153 GB, free: 14.17 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01821/1.092, allocations: 6.173 MB / 1.159 GB, free: 7.957 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/1.094, allocations: 0.6961 MB / 1.16 GB, free: 7.238 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009375/1.095, allocations: 47.94 kB / 1.16 GB, free: 7.191 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003615/1.099, allocations: 319.6 kB / 1.161 GB, free: 6.879 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001351/1.1, allocations: 346.7 kB / 1.161 GB, free: 6.543 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003492/1.1, allocations: 71.97 kB / 1.161 GB, free: 6.473 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002755/1.103, allocations: 1.532 MB / 1.162 GB, free: 4.941 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.41e-07/1.103, allocations: 0 / 1.162 GB, free: 4.941 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003539/1.107, allocations: 1.047 MB / 1.163 GB, free: 3.895 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 (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.0005122/1.107, allocations: 163.6 kB / 1.164 GB, free: 3.727 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.02291/1.13, allocations: 6.446 MB / 1.17 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.13, allocations: 0.5625 kB / 1.17 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.01683/1.147, allocations: 4.04 MB / 1.174 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005628/1.153, allocations: 1.056 MB / 1.175 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/1.169, allocations: 8.224 MB / 1.183 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/1.172, allocations: 2.235 MB / 1.185 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/1.173, allocations: 191.4 kB / 1.185 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of SimCode: time 1.042e-06/1.173, allocations: 0 / 1.185 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of Templates: time 0.5269/1.7, allocations: 79.95 MB / 1.263 GB, free: 264.4 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)