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.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.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.001317/0.001317, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 197.2 kB / 16.79 MB, free: 6.809 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.417/1.417, allocations: 222.9 MB / 240.5 MB, free: 4.602 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.464/2.464, allocations: 390.2 MB / 0.6649 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 59.91 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6751/0.6769, allocations: 140.3 MB / 0.9496 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.006333/0.6833, allocations: 6.294 MB / 0.9557 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005416/0.6888, allocations: 4.53 MB / 0.9601 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006647/0.6895, allocations: 23.44 kB / 0.9602 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002021/0.6915, allocations: 0.8454 MB / 0.961 GB, free: 144 kB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002202/0.6938, allocations: 0.7162 MB / 0.9617 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007836/0.6946, allocations: 285.6 kB / 0.962 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001735/0.6963, allocations: 1.448 MB / 0.9634 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006948/0.697, allocations: 483.4 kB / 0.9638 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007021/0.6977, allocations: 425.4 kB / 0.9642 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000766/0.6985, allocations: 0.4961 MB / 0.9647 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.6986, allocations: 43.62 kB / 0.9648 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006622/0.6993, allocations: 319.5 kB / 0.9651 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.6995, allocations: 222 kB / 0.9653 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004389/0.7, allocations: 381.8 kB / 0.9656 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009142/0.7009, allocations: 0.8379 MB / 0.9665 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.7009, allocations: 4 kB / 0.9665 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of FrontEnd: time 7.62e-07/0.7009, allocations: 0.8438 kB / 0.9665 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.232e-05/0.7009, allocations: 0 / 0.9665 GB, free: 12.67 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.002055/0.703, allocations: 1.091 MB / 0.9675 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.7031, allocations: 8.656 kB / 0.9675 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003222/0.7063, allocations: 0.6306 MB / 0.9682 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009266/0.7072, allocations: 0.5374 MB / 0.9687 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.7073, allocations: 51.3 kB / 0.9687 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.583e-05/0.7074, allocations: 52.5 kB / 0.9688 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.7094, allocations: 1.02 MB / 0.9698 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.7095, allocations: 0 / 0.9698 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.515e-05/0.7095, allocations: 26.61 kB / 0.9698 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-05/0.7096, allocations: 48.56 kB / 0.9699 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.7119, allocations: 1.007 MB / 0.9708 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004526/0.7165, allocations: 3.499 MB / 0.9743 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.7179, allocations: 493.2 kB / 0.9747 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/0.7185, allocations: 226 kB / 0.9749 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.7186, allocations: 8.016 kB / 0.9749 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.7186, allocations: 37.5 kB / 0.975 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=31): time 3.527e-06/0.7186, allocations: 0 / 0.975 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.006939/0.7256, allocations: 2.025 MB / 0.977 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.7257, allocations: 55.69 kB / 0.977 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007502/0.7264, allocations: 0.5699 MB / 0.9776 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.429e-05/0.7265, allocations: 35.98 kB / 0.9776 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.7267, allocations: 352.1 kB / 0.9779 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.7269, allocations: 152.4 kB / 0.9781 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.727, allocations: 90.62 kB / 0.9782 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.7272, allocations: 373.2 kB / 0.9785 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006564/0.7279, allocations: 262.3 kB / 0.9788 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000714/0.7286, allocations: 365.8 kB / 0.9791 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.7299, allocations: 0.6264 MB / 0.9797 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.73, allocations: 0 / 0.9797 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002485/0.7325, allocations: 0.9312 MB / 0.9806 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.7325, allocations: 6.031 kB / 0.9807 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.7325, allocations: 4 kB / 0.9807 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.7337, allocations: 269.2 kB / 0.9809 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006474/0.7344, allocations: 127.8 kB / 0.981 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007217/0.7416, allocations: 8.456 MB / 0.9893 GB, free: 7.898 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008022/0.7424, allocations: 39.95 kB / 0.9893 GB, free: 7.859 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.7425, allocations: 24 kB / 0.9894 GB, free: 7.836 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009326/0.7434, allocations: 437.1 kB / 0.9898 GB, free: 7.406 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006748/0.7441, allocations: 357.4 kB / 0.9901 GB, free: 7.02 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001286/0.7454, allocations: 0.609 MB / 0.9907 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.314e-06/0.7454, allocations: 0 / 0.9907 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002491/0.7479, allocations: 1.121 MB / 0.9918 GB, free: 5.164 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.7479, allocations: 4 kB / 0.9918 GB, free: 5.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.7479, allocations: 7.984 kB / 0.9918 GB, free: 5.152 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008369/0.7488, allocations: 217.1 kB / 0.992 GB, free: 4.922 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006048/0.7494, allocations: 127.8 kB / 0.9921 GB, free: 4.797 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006269/0.7557, allocations: 8.157 MB / 1 GB, free: 11.84 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007269/0.7564, allocations: 39.95 kB / 1 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.313e-05/0.7565, allocations: 23.98 kB / 1 GB, free: 11.77 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.0002243/0.7567, allocations: 214.1 kB / 1 GB, free: 11.56 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.7569, allocations: 67.16 kB / 1 GB, free: 11.49 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.7571, allocations: 82.38 kB / 1.001 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.7571, allocations: 7.938 kB / 1.001 GB, free: 11.4 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.7571, allocations: 0 / 1.001 GB, free: 11.4 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.7572, allocations: 3.984 kB / 1.001 GB, free: 11.4 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000957/0.7581, allocations: 0.6494 MB / 1.001 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.7581, allocations: 0 / 1.001 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000518/0.7587, allocations: 87.84 kB / 1.001 GB, free: 10.61 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/0.7597, allocations: 260.8 kB / 1.001 GB, free: 10.34 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.382e-05/0.7597, allocations: 16 kB / 1.002 GB, free: 10.32 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006616/0.7664, allocations: 8.392 MB / 1.01 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.7664, allocations: 4.031 kB / 1.01 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.7687, allocations: 0.9131 MB / 1.011 GB, free: 184 kB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003679/0.7691, allocations: 188.1 kB / 1.011 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.704e-05/0.7692, allocations: 12 kB / 1.011 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.7696, allocations: 35.95 kB / 1.011 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.7698, allocations: 39.94 kB / 1.011 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.7698, allocations: 12 kB / 1.011 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004942/0.7703, allocations: 403.1 kB / 1.011 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7703, allocations: 4 kB / 1.011 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001112/0.7714, allocations: 300 kB / 1.012 GB, free: 15.2 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.0001511/0.7716, allocations: 111.2 kB / 1.012 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003986/0.7756, allocations: 2.34 MB / 1.014 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.7756, allocations: 7.938 kB / 1.014 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.777, allocations: 0.992 MB / 1.015 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.7782, allocations: 221.1 kB / 1.015 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002836/0.7811, allocations: 1.616 MB / 1.017 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006587/0.7817, allocations: 0.9821 MB / 1.018 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.7819, allocations: 51.36 kB / 1.018 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of SimCode: time 4.71e-07/0.7819, allocations: 0 / 1.018 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of Templates: time 0.0303/0.8122, allocations: 26.95 MB / 1.044 GB, free: 13.67 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)