Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 387.1 MB / 399.7 MB, free: 9.477 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009847/0.0009848, allocations: 192.1 kB / 492.3 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.623/1.623, allocations: 221.3 MB / 0.7871 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008348/0.0008349, allocations: 87.95 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.822e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2707, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9208/1.192, allocations: 201.3 MB / 1.409 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/1.192, allocations: 88.03 kB / 1.409 GB, free: 15.6 MB / 0.8386 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.4991/1.691, allocations: 218.6 MB / 1.623 GB, free: 0.6211 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.914e-06/1.691, allocations: 0 / 1.623 GB, free: 0.6211 MB / 1.026 GB Notification: Performance of Transformations before backend: time 0.0003755/1.691, allocations: 79.92 kB / 1.623 GB, free: 0.543 MB / 1.026 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.01026/1.702, allocations: 3.422 MB / 1.626 GB, free: 13.02 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/1.702, allocations: 8.031 kB / 1.626 GB, free: 13.01 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0174/1.719, allocations: 3.202 MB / 1.629 GB, free: 9.801 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008259/1.727, allocations: 2.299 MB / 1.631 GB, free: 7.43 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/1.728, allocations: 185.4 kB / 1.632 GB, free: 7.246 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001503/1.729, allocations: 231.9 kB / 1.632 GB, free: 7.02 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/1.741, allocations: 3.823 MB / 1.635 GB, free: 3.055 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.098e-05/1.741, allocations: 3.938 kB / 1.635 GB, free: 3.051 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004819/1.741, allocations: 104 kB / 1.636 GB, free: 2.949 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002302/1.741, allocations: 144.8 kB / 1.636 GB, free: 2.805 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007794/1.749, allocations: 3.526 MB / 1.639 GB, free: 15.27 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02659/1.776, allocations: 14.37 MB / 1.653 GB, free: 15.73 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007022/1.783, allocations: 2.831 MB / 1.656 GB, free: 12.88 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/1.785, allocations: 1.05 MB / 1.657 GB, free: 11.82 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001186/1.785, allocations: 25.3 kB / 1.657 GB, free: 11.8 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002146/1.787, allocations: 1.361 MB / 1.658 GB, free: 10.38 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 4.579e-06/1.787, allocations: 0 / 1.658 GB, free: 10.38 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.1127/1.9, allocations: 28.99 MB / 1.687 GB, free: 13.33 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004359/1.9, allocations: 0.8983 MB / 1.688 GB, free: 12.22 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003157/1.904, allocations: 1.951 MB / 1.689 GB, free: 10.26 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.0004856/1.904, allocations: 81.69 kB / 1.689 GB, free: 10.17 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.001298/1.905, allocations: 1.426 MB / 1.691 GB, free: 8.73 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008817/1.906, allocations: 0.8162 MB / 1.692 GB, free: 7.902 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/1.906, allocations: 48 kB / 1.692 GB, free: 7.855 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.0001765/1.907, allocations: 406.6 kB / 1.692 GB, free: 7.453 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002065/1.909, allocations: 1.254 MB / 1.693 GB, free: 6.195 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002318/1.911, allocations: 1.649 MB / 1.695 GB, free: 4.41 MB / 1.104 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002247/1.913, allocations: 1.477 MB / 1.696 GB, free: 2.879 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/1.913, allocations: 4 kB / 1.696 GB, free: 2.875 MB / 1.104 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.009658/1.923, allocations: 4.772 MB / 1.701 GB, free: 14.02 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009832/1.924, allocations: 2.451 MB / 1.703 GB, free: 11.29 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/1.924, allocations: 8 kB / 1.703 GB, free: 11.29 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006229/1.93, allocations: 1.766 MB / 1.705 GB, free: 9.508 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00344/1.934, allocations: 0.5852 MB / 1.706 GB, free: 8.922 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01552/1.949, allocations: 9.054 MB / 1.715 GB, free: 15.7 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004686/1.954, allocations: 415.4 kB / 1.715 GB, free: 15.29 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000647/1.955, allocations: 87.97 kB / 1.715 GB, free: 15.2 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/1.955, allocations: 4 kB / 1.715 GB, free: 15.2 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01023/1.965, allocations: 4.376 MB / 1.719 GB, free: 10.75 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.054e-05/1.965, allocations: 12.34 kB / 1.719 GB, free: 10.73 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004984/1.97, allocations: 1.759 MB / 1.721 GB, free: 8.969 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003668/1.974, allocations: 0.6124 MB / 1.722 GB, free: 8.355 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02247/1.996, allocations: 13.26 MB / 1.735 GB, free: 10.82 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004886/2.001, allocations: 411.5 kB / 1.735 GB, free: 10.42 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008294/2.002, allocations: 91.97 kB / 1.735 GB, free: 10.33 MB / 1.151 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,48.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.001323/2.003, allocations: 249.6 kB / 1.735 GB, free: 10.08 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001539/2.005, allocations: 336.1 kB / 1.736 GB, free: 9.75 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/2.006, allocations: 400.1 kB / 1.736 GB, free: 9.352 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/2.006, allocations: 24 kB / 1.736 GB, free: 9.328 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-05/2.006, allocations: 8 kB / 1.736 GB, free: 9.32 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.259e-05/2.006, allocations: 11.95 kB / 1.736 GB, free: 9.309 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005488/2.012, allocations: 3.184 MB / 1.739 GB, free: 6.074 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/2.012, allocations: 0 / 1.739 GB, free: 6.074 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002713/2.015, allocations: 0.5189 MB / 1.74 GB, free: 5.555 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005636/2.02, allocations: 1.661 MB / 1.741 GB, free: 3.887 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004063/2.021, allocations: 47.97 kB / 1.741 GB, free: 3.84 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7541/2.775, allocations: 13.74 MB / 1.755 GB, free: 278 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/2.775, allocations: 4.594 kB / 1.755 GB, free: 278 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01007/2.785, allocations: 4.402 MB / 1.759 GB, free: 277.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/2.787, allocations: 0.6766 MB / 1.76 GB, free: 277.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008353/2.788, allocations: 54.78 kB / 1.76 GB, free: 277.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003474/2.792, allocations: 408.2 kB / 1.76 GB, free: 277.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001157/2.793, allocations: 303.8 kB / 1.76 GB, free: 277.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002279/2.793, allocations: 70.78 kB / 1.761 GB, free: 277.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002824/2.796, allocations: 1.488 MB / 1.762 GB, free: 277.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.383e-06/2.796, allocations: 0 / 1.762 GB, free: 277.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006711/2.803, allocations: 1.597 MB / 1.764 GB, free: 277.5 MB / 1.151 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005829/2.803, allocations: 187.8 kB / 1.764 GB, free: 277.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01554/2.819, allocations: 7.703 MB / 1.771 GB, free: 276.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/2.819, allocations: 2.625 kB / 1.771 GB, free: 276.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.009425/2.828, allocations: 2.8 MB / 1.774 GB, free: 275.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009313/2.838, allocations: 1.007 MB / 1.775 GB, free: 275.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01934/2.857, allocations: 4.914 MB / 1.78 GB, free: 274.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004825/2.862, allocations: 2.33 MB / 1.782 GB, free: 273.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.009114/2.871, allocations: 0.7667 MB / 1.783 GB, free: 273.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/2.873, allocations: 148 kB / 1.783 GB, free: 273.8 MB / 1.151 GB Notification: Performance of SimCode: time 4.659e-06/2.873, allocations: 1.344 kB / 1.783 GB, free: 273.8 MB / 1.151 GB Notification: Performance of Templates: time 0.1209/2.994, allocations: 76.81 MB / 1.858 GB, free: 271.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)