Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001678, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001893/0.001894, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.404/1.404, allocations: 222.9 MB / 240.6 MB, free: 4.551 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.402/2.402, allocations: 390.2 MB / 0.665 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 59.91 kB / 0.8127 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6142/0.6158, allocations: 140.3 MB / 0.9498 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.006498/0.6223, allocations: 6.302 MB / 0.9559 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005411/0.6277, allocations: 4.485 MB / 0.9603 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005963/0.6284, allocations: 22 kB / 0.9603 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002155/0.6305, allocations: 0.8673 MB / 0.9612 GB, free: 220 kB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002206/0.6328, allocations: 0.7048 MB / 0.9618 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007251/0.6335, allocations: 284.3 kB / 0.9621 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001511/0.635, allocations: 1.131 MB / 0.9632 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/0.6362, allocations: 0.7918 MB / 0.964 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007026/0.6369, allocations: 483.8 kB / 0.9645 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006973/0.6376, allocations: 0.5034 MB / 0.965 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.6377, allocations: 69.88 kB / 0.965 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005757/0.6383, allocations: 277.2 kB / 0.9653 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.6386, allocations: 250.6 kB / 0.9655 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004231/0.639, allocations: 413.1 kB / 0.9659 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009608/0.64, allocations: 0.8513 MB / 0.9667 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.64, allocations: 0 / 0.9667 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.764e-06/0.64, allocations: 0 / 0.9667 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.265e-05/0.64, allocations: 1.094 kB / 0.9667 GB, free: 12.66 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002066/0.6421, allocations: 1.086 MB / 0.9678 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.6421, allocations: 12.84 kB / 0.9678 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003392/0.6455, allocations: 0.63 MB / 0.9684 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.6466, allocations: 0.5491 MB / 0.969 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.6467, allocations: 47.36 kB / 0.969 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.45e-05/0.6468, allocations: 49.97 kB / 0.9691 GB, free: 11 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.6489, allocations: 1.014 MB / 0.9701 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.6489, allocations: 1.469 kB / 0.9701 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.35e-05/0.649, allocations: 22.38 kB / 0.9701 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-05/0.6491, allocations: 47.41 kB / 0.9701 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00253/0.6516, allocations: 1.003 MB / 0.9711 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004554/0.6562, allocations: 3.499 MB / 0.9745 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.6577, allocations: 498.8 kB / 0.975 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005538/0.6583, allocations: 230.7 kB / 0.9752 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.345e-05/0.6583, allocations: 8.25 kB / 0.9752 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/0.6584, allocations: 37.02 kB / 0.9753 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=31): time 3.156e-06/0.6584, allocations: 4 kB / 0.9753 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.008265/0.6667, allocations: 2.013 MB / 0.9772 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.6668, allocations: 59.44 kB / 0.9773 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.6679, allocations: 0.5708 MB / 0.9778 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.999e-05/0.668, allocations: 40.06 kB / 0.9779 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.6683, allocations: 358.5 kB / 0.9782 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.6685, allocations: 144.4 kB / 0.9784 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.6687, allocations: 91 kB / 0.9784 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002746/0.669, allocations: 378 kB / 0.9788 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000937/0.67, allocations: 262.1 kB / 0.9791 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.671, allocations: 361.8 kB / 0.9794 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/0.6729, allocations: 0.6264 MB / 0.98 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.6729, allocations: 0 / 0.98 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.003467/0.6764, allocations: 0.9351 MB / 0.9809 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.6764, allocations: 4 kB / 0.9809 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.6764, allocations: 4 kB / 0.9809 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001506/0.6779, allocations: 277 kB / 0.9812 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008682/0.6788, allocations: 119.8 kB / 0.9813 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.6894, allocations: 9.114 MB / 0.9902 GB, free: 7.227 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.6904, allocations: 39.95 kB / 0.9903 GB, free: 7.188 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.6906, allocations: 20 kB / 0.9903 GB, free: 7.168 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00131/0.6919, allocations: 445 kB / 0.9907 GB, free: 6.73 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009756/0.6929, allocations: 361.4 kB / 0.991 GB, free: 6.34 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001805/0.6947, allocations: 0.609 MB / 0.9916 GB, free: 5.688 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.868e-06/0.6947, allocations: 0 / 0.9916 GB, free: 5.688 MB / 0.7481 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.003497/0.6982, allocations: 1.117 MB / 0.9927 GB, free: 4.488 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.6982, allocations: 13.34 kB / 0.9927 GB, free: 4.477 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.6983, allocations: 0 / 0.9927 GB, free: 4.477 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.6994, allocations: 233.1 kB / 0.993 GB, free: 4.23 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009449/0.7004, allocations: 115.8 kB / 0.9931 GB, free: 4.117 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00944/0.7098, allocations: 8.8 MB / 1.002 GB, free: 10.47 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009676/0.7108, allocations: 44.02 kB / 1.002 GB, free: 10.43 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/0.7109, allocations: 20 kB / 1.002 GB, free: 10.41 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004022/0.7114, allocations: 218 kB / 1.002 GB, free: 10.19 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002531/0.7116, allocations: 71.16 kB / 1.002 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.7118, allocations: 74.38 kB / 1.002 GB, free: 10.05 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.7119, allocations: 8 kB / 1.002 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.7119, allocations: 0 / 1.002 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.7119, allocations: 3.984 kB / 1.002 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.7132, allocations: 0.6455 MB / 1.003 GB, free: 9.344 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.7132, allocations: 4 kB / 1.003 GB, free: 9.34 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006991/0.7139, allocations: 87.84 kB / 1.003 GB, free: 9.254 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00138/0.7153, allocations: 265 kB / 1.003 GB, free: 8.977 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.76e-05/0.7154, allocations: 11.94 kB / 1.003 GB, free: 8.965 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009684/0.7251, allocations: 9.05 MB / 1.012 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.7251, allocations: 0 / 1.012 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003312/0.7285, allocations: 0.9249 MB / 1.013 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005492/0.729, allocations: 180.3 kB / 1.013 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.7293, allocations: 11.98 kB / 1.013 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008415/0.7301, allocations: 39.95 kB / 1.013 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.7303, allocations: 39.94 kB / 1.013 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-05/0.7304, allocations: 16 kB / 1.013 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0007859/0.7312, allocations: 403 kB / 1.013 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7312, allocations: 0 / 1.013 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001864/0.7331, allocations: 304 kB / 1.014 GB, free: 13.12 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002114/0.7333, allocations: 111.2 kB / 1.014 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.005468/0.7388, allocations: 2.407 MB / 1.016 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.7388, allocations: 3.938 kB / 1.016 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.7408, allocations: 0.9999 MB / 1.017 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/0.7425, allocations: 230.6 kB / 1.017 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/0.7465, allocations: 1.622 MB / 1.019 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.7476, allocations: 0.9821 MB / 1.02 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.7479, allocations: 47.42 kB / 1.02 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of SimCode: time 8.31e-07/0.7479, allocations: 0 / 1.02 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of Templates: time 0.03124/0.7792, allocations: 26.95 MB / 1.046 GB, free: 11.54 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)