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.001228/0.001228, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001197/0.001197, allocations: 187.9 kB / 17.19 MB, free: 5.688 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.382/1.382, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.278/2.278, allocations: 390.3 MB / 0.6653 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 62.41 kB / 0.8132 GB, free: 33.18 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2746, allocations: 140.4 MB / 0.9503 GB, free: 8.93 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.009155/0.2838, allocations: 6.29 MB / 0.9564 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.006964/0.2908, allocations: 4.549 MB / 0.9608 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000727/0.2915, allocations: 23.88 kB / 0.9609 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002655/0.2943, allocations: 0.9103 MB / 0.9618 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.002379/0.2966, allocations: 0.7777 MB / 0.9625 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008378/0.2975, allocations: 311.5 kB / 0.9628 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00162/0.2991, allocations: 1.136 MB / 0.9639 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001011/0.3002, allocations: 0.6929 MB / 0.9646 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007795/0.3009, allocations: 466.4 kB / 0.965 GB, free: 9.738 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009358/0.3019, allocations: 0.4981 MB / 0.9655 GB, free: 9.238 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0002115/0.3021, allocations: 72 kB / 0.9656 GB, free: 9.168 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006865/0.3028, allocations: 275.5 kB / 0.9659 GB, free: 8.898 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003153/0.3031, allocations: 255.2 kB / 0.9661 GB, free: 8.648 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0006332/0.3038, allocations: 413.9 kB / 0.9665 GB, free: 8.242 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.3053, allocations: 1.059 MB / 0.9675 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3053, allocations: 0 / 0.9675 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3053, allocations: 0 / 0.9675 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.617e-05/0.3054, allocations: 0 / 0.9675 GB, free: 7.18 MB / 0.7481 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.002312/0.3077, allocations: 1.096 MB / 0.9686 GB, free: 6.031 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.3078, allocations: 8.031 kB / 0.9686 GB, free: 6.023 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003406/0.3112, allocations: 0.6319 MB / 0.9692 GB, free: 5.391 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009091/0.3121, allocations: 0.5385 MB / 0.9698 GB, free: 4.812 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.804e-05/0.3122, allocations: 41.67 kB / 0.9698 GB, free: 4.773 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.3123, allocations: 52.12 kB / 0.9698 GB, free: 4.723 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/0.3144, allocations: 1.018 MB / 0.9708 GB, free: 3.66 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.3144, allocations: 0 / 0.9708 GB, free: 3.66 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.3145, allocations: 31.92 kB / 0.9709 GB, free: 3.629 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.931e-05/0.3146, allocations: 53.22 kB / 0.9709 GB, free: 3.574 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002493/0.3171, allocations: 1 MB / 0.9719 GB, free: 2.574 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00452/0.3216, allocations: 3.494 MB / 0.9753 GB, free: 14.77 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.3231, allocations: 499.4 kB / 0.9758 GB, free: 14.28 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005661/0.3237, allocations: 237.1 kB / 0.976 GB, free: 14.05 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.3237, allocations: 7.984 kB / 0.976 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.3238, allocations: 38.56 kB / 0.9761 GB, free: 13.99 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=31): time 2.605e-06/0.3238, allocations: 0 / 0.9761 GB, free: 13.99 MB / 0.7637 GB Notification: Performance of matching and sorting (n=43): time 0.007153/0.331, allocations: 2.015 MB / 0.978 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.331, allocations: 55.41 kB / 0.9781 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007309/0.3318, allocations: 0.5704 MB / 0.9786 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.3318, allocations: 37.7 kB / 0.9787 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.3321, allocations: 348.2 kB / 0.979 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.3322, allocations: 149.8 kB / 0.9791 GB, free: 10.74 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.3324, allocations: 94.16 kB / 0.9792 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.3326, allocations: 378.6 kB / 0.9796 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007121/0.3333, allocations: 262.9 kB / 0.9798 GB, free: 10 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007642/0.3341, allocations: 361.8 kB / 0.9802 GB, free: 9.602 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.3355, allocations: 0.6186 MB / 0.9808 GB, free: 8.941 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3355, allocations: 4 kB / 0.9808 GB, free: 8.938 MB / 0.7637 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002497/0.338, allocations: 0.9235 MB / 0.9817 GB, free: 7.988 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.338, allocations: 8 kB / 0.9817 GB, free: 7.98 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3381, allocations: 4.344 kB / 0.9817 GB, free: 7.977 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.3392, allocations: 276.8 kB / 0.982 GB, free: 7.688 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006326/0.3399, allocations: 115.8 kB / 0.9821 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007857/0.3478, allocations: 9.122 MB / 0.991 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006926/0.3485, allocations: 44.02 kB / 0.991 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.6e-05/0.3486, allocations: 16 kB / 0.9911 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001012/0.3496, allocations: 437 kB / 0.9915 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007426/0.3503, allocations: 361.4 kB / 0.9918 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001385/0.3517, allocations: 0.6012 MB / 0.9924 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.525e-06/0.3517, allocations: 0 / 0.9924 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002623/0.3544, allocations: 1.125 MB / 0.9935 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3544, allocations: 10.44 kB / 0.9935 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3544, allocations: 8.344 kB / 0.9935 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000818/0.3552, allocations: 217.1 kB / 0.9937 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006181/0.3559, allocations: 127.8 kB / 0.9939 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006748/0.3626, allocations: 8.792 MB / 1.002 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006571/0.3633, allocations: 39.95 kB / 1.002 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.07e-05/0.3634, allocations: 24.05 kB / 1.002 GB, free: 0.8164 MB / 0.7794 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.0002252/0.3636, allocations: 215.3 kB / 1.003 GB, free: 0.6016 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.3638, allocations: 67.16 kB / 1.003 GB, free: 0.5352 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001756/0.364, allocations: 78.38 kB / 1.003 GB, free: 472 kB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.364, allocations: 4 kB / 1.003 GB, free: 468 kB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.364, allocations: 8.141 kB / 1.003 GB, free: 460 kB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.364, allocations: 11.97 kB / 1.003 GB, free: 448 kB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008726/0.3649, allocations: 0.6416 MB / 1.003 GB, free: 15.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.3649, allocations: 3.938 kB / 1.003 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005069/0.3654, allocations: 91.84 kB / 1.004 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009779/0.3664, allocations: 264.8 kB / 1.004 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.3665, allocations: 8 kB / 1.004 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007188/0.3737, allocations: 9.074 MB / 1.013 GB, free: 5.453 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3737, allocations: 3.984 kB / 1.013 GB, free: 5.449 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.3761, allocations: 0.9131 MB / 1.014 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003345/0.3764, allocations: 184.2 kB / 1.014 GB, free: 4.301 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.3766, allocations: 12 kB / 1.014 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005327/0.3771, allocations: 35.95 kB / 1.014 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.3773, allocations: 43.88 kB / 1.014 GB, free: 4.211 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.3773, allocations: 12 kB / 1.014 GB, free: 4.199 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005038/0.3778, allocations: 403.1 kB / 1.014 GB, free: 3.809 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.01e-07/0.3778, allocations: 0 / 1.014 GB, free: 3.809 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001128/0.3789, allocations: 304 kB / 1.015 GB, free: 3.512 MB / 0.795 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.0001719/0.3791, allocations: 111.2 kB / 1.015 GB, free: 3.395 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.004054/0.3832, allocations: 2.404 MB / 1.017 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3832, allocations: 0 / 1.017 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.3847, allocations: 1.004 MB / 1.018 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.3858, allocations: 226.9 kB / 1.018 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.3886, allocations: 1.378 MB / 1.02 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000632/0.3893, allocations: 0.9743 MB / 1.02 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.3895, allocations: 51.42 kB / 1.021 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of SimCode: time 4.31e-07/0.3895, allocations: 0 / 1.021 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.03015/0.4197, allocations: 26.96 MB / 1.047 GB, free: 2.152 MB / 0.8262 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)